5 Aug 21:59
Re: Shrinking a zpool?
Kyle McDonald <KMcDonald <at> Egenera.COM>
2009-08-05 19:59:50 GMT
2009-08-05 19:59:50 GMT
Kyle McDonald wrote: > Jacob Ritorto wrote: >> Is this implemented in OpenSolaris 2008.11? I'm moving move my >> filer's rpool to an ssd mirror to free up bigdisk slots currently >> used by the os and need to shrink rpool from 40GB to 15GB. (only >> using 2.7GB for the install). >> >> > Your best bet would be to install the new ssd drives, create a new > pool, snapshot the exisitng pool and use ZFS send/recv to migrate the > data to the new pool. There are docs around about how install grub and > the boot blocks on the new devices also. After that remove (export!, > don't destroy yet!) > the old drives, and reboot to see how it works. > > If you have no problems, (and I don't think there's anything technical > that would keep this from working,) then you're good. Otherwise put > the old pool back in. :) > This thread dicusses basically this same thing - he had a problem along the way, but Cindy answered it. > Hi Nawir, > > I haven't tested these steps myself, but the error message > means that you need to set this property: > > # zpool set bootfs=rpool/ROOT/BE-name rpool > > Cindy > > On 08/05/09 03:14, nawir wrote: > Hi, > > I have sol10u7 OS with 73GB HD in c1t0d0. > I want to clone it to 36GB HD > > These steps below is what come in my mind > STEPS TAKEN > # zpool create -f altrpool c1t1d0s0 > # zpool set listsnapshots=on rpool > # SNAPNAME=`date +%Y%m%d` > # zfs snapshot -r rpool/ROOT@$SNAPNAME > # zfs list -t snapshot > # zfs send -R rpool@$SNAPNAME | zfs recv -vFd altrpool > # installboot -F zfs /usr/platform/`uname -i`/lib/fs/zfs/bootblk > /dev/rdsk/c1t1d0s0 > for x86 do > # installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c1t1d0s0 > # zpool export altrpool > # init 5 > remove source disk (c1t0d0s0) and move target disk (c1t1d0s0) to slot0 > -insert solaris10 dvd > ok boot cdrom -s > # zpool import altrpool rpool > # init 0 > ok boot disk1 > > ERROR: > Rebooting with command: boot disk1 > Boot device: /pci <at> 1c,600000/scsi <at> 2/disk <at> 1,0 File and args: > no pool_props > Evaluating: > The file just loaded does not appear to be executable. > ok > > QUESTIONS: > 1. what's wrong what my steps > 2. any better idea > > thanks -Kyle > > -Kyle > >> thx >> jake >> > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss <at> opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
RSS Feed