One of our customers is going to add additional storage and extend an existing zfs pool. I couldn’t find any official documentation on this, so can anyone help me with the recommended steps to follow ?
Page 1 / 1
Hi Gaurav,
If there is a zpool already configured and it is to be extended with a newly added disk, please follow these steps.
1. Set all the disks label to GPT:
parted /dev/sdX mklabel gpt
2. Add disk to zpool using following command:
zpool add <existing_pool_name> /dev/sdX (X stands for the disk character usually its a,b,c,d,e,f,g,h...)
If disks are to be added in raidz mode:
zpool add <existing_pool_name> raidz /dev/sdX1 /dev/sdX2 /dev/sdX3
If disks are in mirror mode:
zpool add <existing_pool_name> mirror /dev/sdX1 /dev/sdX2
If an entire disk is in zpool and it is expanded from VM, following command can be used to extend the pool with the expanded space.
zpool online -e <pool_name> /dev/sdX
If only a partition of a disk is in zpool and it is expanded in VM, a new partition should be created from the expanded portion and added to the zpool.
zpool add <pool_name> /dev/sdXn
I hope this will answer your query.
Reply
Sign up
Already have an account? Login
Already a Partner or Customer? Login with your LogPoint Support credentials. Don‘t have a LogPoint Support account? Ask your local LogPoint Representative. Only visiting? Login with LinkedIn to gain read–access.
LOGIN AS PARTNER OR CUSTOMER Login with LinkedInLogin to the community
Already a Partner or Customer? Login with your LogPoint Support credentials. Don‘t have a LogPoint Support account? Ask your local LogPoint Representative. Only visiting? Login with LinkedIn to gain read–access.
LOGIN AS PARTNER OR CUSTOMER Login with LinkedInEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.