Solved

Zpool configurations in logpoint

  • 5 May 2021
  • 1 reply
  • 167 views

Userlevel 1
Badge +3

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 ?

icon

Best answer by Prabesh Bhatta 5 May 2021, 07:35

View original

1 reply

Badge +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