OpenSolaris

Discussions Communities Projects Download Source Browser

Home » OpenSolaris Forums » indiana » discuss

Thread: Is it possible to move root FSs from rpool to another pool?

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 3 - Last Post: Jun 9, 2009 9:59 AM by: row
row

Posts: 5
From:

Registered: 6/16/08
Is it possible to move root FSs from rpool to another pool?
Posted: Jun 16, 2008 4:24 AM
To: Projects » indiana » discuss
Cc: OpenSolaris » help
  Click to reply to this thread Reply

I've attached another (whole not slice) disk to rpool after installation to mirror the original primary one, but it get EFI label witch I guess was wrong from me. After hard reset caused by power outage I got cycling reboots with zfs_page_fault panic.
Then I booted from liveCD and I messed up my rpool (when swapping physically HDDs) and ended with just the disk with EFI label in rpool. I was unable to attach the original primary disk to mirror the data back, because even both HDDs are same the layout was different (EFI label vs. Partition0 100% of HDD type Solaris2). The nonEFI disk had at least swap partition still defined and I've been attaching just slice 0.

1. Then I created zpool named bootpool from slice 0 of original installation rpool disk leaving the orignal partition(solraris2) and VTOC.
2. I replicated all rpool filesets to bootpool using zfs send and zfs receive pipe
3. modified bootpool/boot/grub/menu.lst bootfs entry to point it to bootpool/ROOT/opensolaris
4. set bootpool/ROOT/opensolaris as legacy mountpoint and tried to mount it, all other original FSs are mounted OK to non-legacy mountpoint under /bootpool/...

With this I can load kernel and boot archive manualy from grub or using the modified menu entry start the boot process, but system panics in early phase with:
cannot mount root on /ramdisk:a

I tried to
1. removed /mnt/etc/zfs/zpool.cache
2. bootadm update-archive -R /mnt when booted from liveCD and had bootpool/ROOT/opensolaris mounted on /mnt
3. verified there is no zpool.cache file in boot archive

but still a get panic on:
cannot mount root on /ramdisk:a

This behavior is similar to the situation when booted liveCD you mount the boot zpool (rpool) and export it after umount, but I never exported bootpool.

Any idea what to set/check?
Is here a way how to fix this installation somehow?

Thanks&Regards

row

Posts: 5
From:

Registered: 6/16/08
Re: Is it possible to move root FSs from rpool to another pool?
Posted: Jun 23, 2008 1:47 PM   in response to: row
To: Projects » indiana » discuss
  Click to reply to this thread Reply

The problem was non-existing /etc/zfs/zpool.cache file on the rootFS and in the boot-archive (removed as recovery procedure seen on ZFS admin guide). I've recreated it using step #2 "2. Export the root pool you just created" posted here: http://mail.opensolaris.org/pipermail/zfs-discuss/2007-July/041609.html
The only difference was I need to copy/save the created/modified zpool.cache before umounting /tmp/root.

I believe I could use /etc/zfs/zpool.cache from liveCD root (ramdisk) same way too.

Than I mounted bootpool/ROOT/opensolaris to /tmp/mnt.
copied saved zpool.cache to /tmp/mnt/etc/zfs/
and run
bootadm update-archive -v -R /tmp/mnt

System boots fine now.

row

Posts: 5
From:

Registered: 6/16/08
Re: Is it possible to move root FSs from rpool to another pool?
Posted: Jun 2, 2009 11:43 PM   in response to: row
To: Projects » indiana » discuss
  Click to reply to this thread Reply

Complete description of the migration process can be found on the blog: http://blogs.sun.com/arrowaver from date Jun 2nd 2009.

row

Posts: 5
From:

Registered: 6/16/08
Re: Is it possible to move root FSs from rpool to another pool?
Posted: Jun 9, 2009 9:59 AM   in response to: row
To: Projects » indiana » discuss
  Click to reply to this thread Reply

Direct URL is: http://blogs.sun.com/arrowaver/entry/error_booting_opensolaris_2008_05




Terms of Use | Privacy | Trademarks | Copyright Policy | Site Guidelines
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Use.
© 2010, Oracle Corporation and/or its affiliates

Oracle