Right now I have a machine with a mirrored boot setup. The SAS drives are 43Gs and the root pool is getting full. I do a backup of the pool nightly, so I feel confident that I don''t need to mirror the drive and can break the mirror and expand the pool with the detached drive. I understand how to do this on a normal pool, but is there any restrictions for doing this on the root pool? Are there any grub issues? Thanks, Gary -- This message posted from opensolaris.org
On Wed, 28 Jul 2010, Gary Gendel wrote:> Right now I have a machine with a mirrored boot setup. The SAS drives are 43Gs and the root pool is getting full. > > I do a backup of the pool nightly, so I feel confident that I don''t need to mirror the drive and can break the mirror and expand the pool with the detached drive. > > I understand how to do this on a normal pool, but is there any restrictions for doing this on the root pool? Are there any grub issues?You cannot stripe a root pool. Best you could do in this instance is to create a new pool from the detached mirror. You may want to consider keepting the redundancy of the mirror config so that zfs can automatically repair any corruption it detects.
> From: zfs-discuss-bounces at opensolaris.org [mailto:zfs-discuss- > bounces at opensolaris.org] On Behalf Of Gary Gendel > > I do a backup of the pool nightly, so I feel confident that I don''t > need to mirror the drive and can break the mirror and expand the pool > with the detached drive. > > I understand how to do this on a normal pool, but is there any > restrictions for doing this on the root pool? Are there any grub > issues?Yes. There are positively grub issues. Have a look here: Actually, I couldn''t find something *specifically* for your case, so I''ll refer to what I know. The "bare metal" backup/recovery process has all the details you need, plus more. http://www.solarisinternals.com/wiki/index.php/ZFS_Troubleshooting_Guide#Com plete_Solaris_ZFS_Root_Pool_Recovery Here''s what I think is of interest to you: format & partition your new disk. Mirror slice0 of your first disk to slice0 of the new disk. This should take care of the "bootfs" property for you. But you''ll still need to "installgrub" on the new device. And I believe that''s all there is to it. According to the ZFS Troubleshooting Guide, the "autoexpand" property was created in b117, not available in 2009.06 or sol10 yet. There is no mention of how to expand your disk in older versions. So ... Obviously if you can afford downtime, it''s possible to do via zfs send/receive. But I don''t know how to do it without downtime.
> From: zfs-discuss-bounces at opensolaris.org [mailto:zfs-discuss- > bounces at opensolaris.org] On Behalf Of Mark J Musante > > > I do a backup of the pool nightly, so I feel confident that I don''t > need to mirror the drive and can break the mirror and expand the pool > with the detached drive. > > > > I understand how to do this on a normal pool, but is there any > restrictions for doing this on the root pool? Are there any grub > issues? > > You cannot stripe a root pool. Best you could do in this instance is > to > create a new pool from the detached mirror. You may want to consider > keepting the redundancy of the mirror config so that zfs can > automatically > repair any corruption it detects.Oh. I thought he meant he will detach a drive, replace it with a larger drive, resilver, then detach the first drive, replace it with a larger drive, and resilver. This would certainly be the desirable way to expand the pool. Or create another pool, and migrate some of the data out of rpool. To me, 40G rpool sounds kind of large.
Hi Gary, If your root pool is getting full, you can replace the root pool disk with a larger disk. My recommendation is to attach the replacement disk, let the replacement disk resilver, install the boot blocks, and then detach the smaller disk. The system will see the expanded space automatically. A mirrored root pool configuration is a good suggestion too. You need to follow the steps in the ZFS troubleshooting wiki (as suggested) to label and partition the replacement disk. http://www.solarisinternals.com/wiki/index.php/ZFS_Troubleshooting_Guide Replacing/Relabeling the Root Pool Disk Thanks, Cindy On 07/28/10 07:32, Gary Gendel wrote:> Right now I have a machine with a mirrored boot setup. The SAS drives are 43Gs and the root pool is getting full. > > I do a backup of the pool nightly, so I feel confident that I don''t need to mirror the drive and can break the mirror and expand the pool with the detached drive. > > I understand how to do this on a normal pool, but is there any restrictions for doing this on the root pool? Are there any grub issues? > > Thanks, > Gary