root@test # uname -a
SunOS test 5.10 Generic_138888-03 sun4u sparc SUNW
root@test # cat /etc/release
Solaris 10 10/08 s10s_u6wos_07b SPARC
Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 27 October 2008
root@test # zpool status
pool: rpool
state: ONLINE
scrub: none requested
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
mirror ONLINE 0 0 0
c0t0d0s0 ONLINE 0 0 0
c1t0d0s0 ONLINE 0 0 0
errors: No known data errors
My question is if I detached the c1t0d0s0 from the zpool,may i have
ways to boot from the c1t0d0s0 ???
No, you can't do this yet. An existing bug prevents this scenario
from
working as described here:
http://docs.sun.com/app/docs/doc/819-5461/ggpco?a=view
Cindy
installboot -F zfs /usr/platform/`uname -i`/lib/fs/zfs/bootblk /dev/
rdsk/c1t0d0s0
Also, to allow OpenBoot PROM to boot from the first and the second
disk, you need to update the bootdevice variable. In the following
example, we consider disk1 and disk2 to be device aliases of c0t0d0s2
and c1t0d0s2, respectively.
To update the OpenBoot PROM boot-device variable from the Solaris
environment, type:
eeprom "boot-device=disk1 disk2"
To update the OpenBoot PROM boot-device variable from OpenBoot PROM ok
prompt, type:
ok> setenv boot-device disk1 disk2
If so you can now yank out the primary drive, go to the ok prompt and
boot disk2 and it should boot up just fine.
If you did actually detach the root pool disk c1t0d0s0, you would
need to recover by using the following steps.
1. Boot from the network or install media.
2. Exit out of the install or if using boot -s, wait for the shell
prompt.
3. Import your pool, like this:
# zpool import rpool
(Ignore the mount error messages)
4. Attach the c1t0d0s0 disk, like this:
# zpool attach rpool c0t0d0s0 c1t0d0s0
5. Wait for the disk to resilver to complete by using zpool status
command.
6. Add the boot blocks:
# installboot -F zfs /usr/platform/`uname -i`/lib/fs/zfs/bootblk /dev/
rdsk/c1t0d0s0
7. Shutdown the system.
8. Confirm that you can boot from both root pool disks.
> Hi,Experts
> I installed the solaris 10 u6 using zfs boot environment,the
> following was the detail info;
>
>
> root@test # uname -a
> SunOS test 5.10 Generic_138888-03 sun4u sparc SUNW,Sun-Fire-15000
> root@test # cat /etc/release
> Solaris 10 10/08 s10s_u6wos_07b SPARC
> Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
[...]
> NAME STATE READ WRITE CKSUM
> rpool ONLINE 0 0 0
> mirror ONLINE 0 0 0
> c0t0d0s0 ONLINE 0 0 0
> c1t0d0s0 ONLINE 0 0 0
>
> errors: No known data errors
>
>
>
> My question is if I detached the c1t0d0s0 from the zpool,may i have
> ways to boot from the c1t0d0s0 ???
I don't know if you could (or would need to) be able to boot from a detached
mirror since the info on the disk that describes the zfs configuration would
reflect the way things were before you detached it (or worse, the way things
were _after_ you detached it, if it updates zpool.cache before doing the actual
detach).
The reason I say that I don't know why you'd _need_ to do that is that you
should be able to take snapshots and clones (or let LiveUpgrade do that for
you when the time comes for upgrading). Only if you wanted to
physically remove
that disk and put it in a fireproof vault or something can I see a really good
reason for wanting to boot off of a _detached_ disk.
However, I can see a reason for wanting to boot off of either side of a mirror:
so you can boot if a disk fails. That means making both disks bootable. I
think the instructions for how to do that are at
http://docs.sun.com/app/docs/doc/819-5461/ggtia?a=view