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 -- This message posted from opensolaris.org
Cindy.Swearingen at Sun.COM
2009-Aug-05 15:17 UTC
[zfs-discuss] clone rpool to smaller disk
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
cindy, You are brilliant. I can successfully boot os after follow the steps below. But I got some small problem 1. when I "zpool list", I saw two pools (altrpool & rpool) I want to delete altrpool using "zpool destroy altrpool" but after I reboot it panic 2. I got this error message ERROR MSG: /usr/sbin/pmconfig: "/etc/power.conf" line 16, ufs statefile with zfs root is no t supported BUG ID: http://bugs.opensolaris.org/bugdatabase/view_bug.do;jsessionid=5da34891a4f40f33f6d0b14870e3?bug_id=6844540 thanks STEPS TAKEN # zpool create -f altrpool c1t1d0s0 # 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 # zfs destroy rpool/ROOT@$SNAPNAME # 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 -f altrpool rpool # zpool set bootfs=rpool/ROOT/s10s_u7wos_08 rpool # init 6 -- This message posted from opensolaris.org