Folks, I am trying to understand if there is a way to increase the capacity of a root-vdev. After reading zpool man pages, the following is what I understand: 1. If you add a new disk by using "zpool add," this disk gets added as a new root-vdev. The existing root-vdevs are not changed. 2. You can also add a new disk by using "zpool attach" on any existing disk of the pool. However, the existing disk cannot be part of a raidz vdev. Also, if the existing disk is part of a mirror, all we are doing is increasing redundancy but not growing the capacity of the vdev. The only option to grow a root-vdev seems to be to use "zpool replace" and replace an existing disk with a bigger disk. Is my understanding correct? Thank you in advance for your help. Regards, Peter -- This message posted from opensolaris.org
On 11/10/10 04:11 PM, Peter Taps wrote:> Folks, > > I am trying to understand if there is a way to increase the capacity of a root-vdev. After reading zpool man pages, the following is what I understand: > > 1. If you add a new disk by using "zpool add," this disk gets added as a new root-vdev. The existing root-vdevs are not changed. >The root device can only be a single drive or a mirror.> 2. You can also add a new disk by using "zpool attach" on any existing disk of the pool. However, the existing disk cannot be part of a raidz vdev. Also, if the existing disk is part of a mirror, all we are doing is increasing redundancy but not growing the capacity of the vdev. > > The only option to grow a root-vdev seems to be to use "zpool replace" and replace an existing disk with a bigger disk.\ >The easiest way to grow the root pool is to mirror to a bigger drive and then detach the original. Don''t forget to install grub on the new drive. -- Ian.