How to boot from the detached mirror disk of zfs boot environment

  • Follow


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
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 ???
0
Reply aixguard 3/23/2009 12:17:51 PM

On Mar 23, 6:17 am, aixguard <aixgu...@yahoo.com.cn> wrote:
> 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
> 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
1
Reply cindy 3/23/2009 3:08:48 PM


Did you run the installboot command after you mirrored?

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.
0
Reply darkoth 3/23/2009 3:10:06 PM

On Mar 23, 9:08 am, cindy.swearin...@sun.com wrote:
> On Mar 23, 6:17 am, aixguard <aixgu...@yahoo.com.cn> wrote:
>
>
>
> > 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
> > 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

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.
0
Reply cindy 3/23/2009 4:59:33 PM

i think this will not support for solaris10 but possible for solaris11
0
Reply abhi.unixofficial (1) 3/5/2013 7:28:08 PM

abhi.unixofficial@gmail.com wrote:
> i think this will not support for solaris10 but possible for solaris11

What will?

You are replying to a 4 year old post long gone form most servers.

-- 
Ian Collins
0
Reply ian-news (9912) 3/5/2013 8:16:07 PM

On Mar 5, 1:16=A0pm, Ian Collins <ian-n...@hotmail.com> wrote:
> abhi.unixoffic...@gmail.com wrote:
> > i think this will not support for solaris10 but possible for solaris11
>
> What will?
>
> You are replying to a 4 year old post long gone form most servers.
>
> --
> Ian Collins

Yes, but we're still listening...

You still can't boot from a detached root pool disk in either release.

Thanks, Cindy
0
Reply cindy.swearingen3 (80) 3/5/2013 8:28:19 PM

On a mirrored zpool, install the boot block, shutdown and unplug the disk, =
or ldm remove-vdisk from LDOM control domain would do.

I just tried in my ldom, it works.

I am tasked to create a test environment in Solaris 10, and make something =
similar to meta attach/detach with zpool. And i googled into this page. Tha=
nks for the tips and steps =3D)

On Wednesday, March 6, 2013 4:28:19 AM UTC+8, cindy swearingen wrote:
> On Mar 5, 1:16=A0pm, Ian Collins <ian-n...@hotmail.com> wrote:
>=20
> > abhi.unixoffic...@gmail.com wrote:
>=20
> > > i think this will not support for solaris10 but possible for solaris1=
1
>=20
> >
>=20
> > What will?
>=20
> >
>=20
> > You are replying to a 4 year old post long gone form most servers.
>=20
> >
>=20
> > --
>=20
> > Ian Collins
>=20
>=20
>=20
> Yes, but we're still listening...
>=20
>=20
>=20
> You still can't boot from a detached root pool disk in either release.
>=20
>=20
>=20
> Thanks, Cindy

0
Reply puishing.ngai (1) 3/22/2013 8:43:36 AM

On Mar 22, 2:43=A0am, puishing.n...@gmail.com wrote:
> On a mirrored zpool, install the boot block, shutdown and unplug the disk=
, or ldm remove-vdisk from LDOM control domain would do.
>
> I just tried in my ldom, it works.
>
> I am tasked to create a test environment in Solaris 10, and make somethin=
g similar to meta attach/detach with zpool. And i googled into this page. T=
hanks for the tips and steps =3D)
>
>
>
>
>
>
>
> On Wednesday, March 6, 2013 4:28:19 AM UTC+8, cindy swearingen wrote:
> > On Mar 5, 1:16=A0pm, Ian Collins <ian-n...@hotmail.com> wrote:
>
> > > abhi.unixoffic...@gmail.com wrote:
>
> > > > i think this will not support for solaris10 but possible for solari=
s11
>
> > > What will?
>
> > > You are replying to a 4 year old post long gone form most servers.
>
> > > --
>
> > > Ian Collins
>
> > Yes, but we're still listening...
>
> > You still can't boot from a detached root pool disk in either release.
>
> > Thanks, Cindy

Just unplugging the disk and moving it should work, but I'm unfamiliar
with LDOM behavior. Detaching a disk from a pool makes the disk's pool
info inaccessible so you won't be able to boot from a rpool disk that
is detached ( with zpool detach). In theory, you should be able to
unplug a root pool disk, reconnect it to another system and do a force
import (zpool import -f) but this is untested and if something
unforeseen goes wrong (like the device is not recognized or is going
bad), is not something that you should depend on. Plus, the original
rpool won't be too happy about the removed disk.

We're working on better/simpler root pool recovery. Another option is
to use zpool split to split a mirrored root pool. You'll have to do a
few more
steps to make the split off root pool bootable, like boot from media
to rename it.

Thanks, Cindy
0
Reply cindy.swearingen3 (80) 3/22/2013 3:10:22 PM

8 Replies
591 Views

(page loaded in 0.115 seconds)

Similiar Articles:













7/22/2012 3:26:49 PM


Reply: