It is cool.
Many thanks.
It seems the installer of Solaris 10 U8 is more flexible in this aspect which 
can realize my goal directly.

Thanks.

Fred

-----Original Message-----
From: Brandon High [mailto:bh...@freaks.com] 
Sent: Wednesday, June 02, 2010 3:40 AM
To: Fred Liu
Cc: Frank Cusack; zfs-discuss@opensolaris.org
Subject: Re: [zfs-discuss] SMI lable and EFI label in one disk?

On Tue, Jun 1, 2010 at 11:54 AM, Fred Liu <fred_...@issi.com> wrote:
> That is true. Any internals about this limitation? How can I realize my goal?

You can't do it using the Caiman installer that comes with the osol dev builds.

There are a few ways that you can do it now that the system is
installed. If you have a second drive, you can do a bit of a monte to
make it work. You basically create a mirror of your boot disk onto
another drive, remove the original drive and repartition, add it back
as a mirror, then detach the second mirror. You can do it all while
the system is up without rebooting.

On the second drive (call is c0t1d0):
 - Run format -e, you'll need to be able to specify the label type.
 - Create an fdisk partition of type SOLARIS2 that uses the entire disk
 - Create a 100g slice in c0t1d0s0. Label the disk as SMI. Make sure
that this is the same size as your existing c0t0d0s0. If it's too
small, it won't work, and if it's too large it'll grow the pool size.

# zpool attach rpool c0t0d0s0 c0t1d0s0
... wait for resilver ...
# installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c0t1d0s0
# bootadm update-archive
# zpool detach rpool c0t0d0s0

(installgrub and bootadm here are just in case there's a problem and
you have to reboot.)

On your original boot drive:
- Run format and change the fdisk partition to use 100% of c0t0d0
- Create a 100g slice in c0t0d0s0
- Create a slice in c0t0d0s1 that uses the remaining space

# zpool attach rpool c0t1d0s0 c0t0d0s0
# installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c0t0d0s0
# bootadm update-archive
# zpool detach rpool c0t1d0s0
# zpool add rpool cache c0t0d0s1

-B

-- 
Brandon High : bh...@freaks.com

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to