-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

sriman narayana bhavanam - Sun Microsystems - Bangalore India wrote:
> It looks like you provided me the data after deleting the newly created
> BE. None of the clones created during lucreate are showing up in 'zfs
> list' output. Even /etc/lu/ICF.2 file is missing.

Yes, Sorry. I deleted the BE because it didn't work.

I recreate it now:

"""
[r...@stargate-host etc]# lustatus
Boot Environment           Is       Active Active    Can    Copy
Name                       Complete Now    On Reboot Delete Status
- -------------------------- -------- ------ --------- ------ ----------
Solaris10u7                yes      yes    yes       no     -

[r...@stargate-host etc]# lucreate -n Solaris10u7-20090926
Checking GRUB menu...
System has findroot enabled GRUB
Analyzing system configuration.
Comparing source boot environment <Solaris10u7> file systems with the file
system(s) you specified for the new boot environment. Determining which
file systems should be in the new boot environment.
Updating boot environment description database on all BEs.
Updating system configuration files.
Creating configuration for boot environment <Solaris10u7-20090926>.
Source boot environment is <Solaris10u7>.
Creating boot environment <Solaris10u7-20090926>.
Cloning file systems from boot environment <Solaris10u7> to create boot
environment <Solaris10u7-20090926>.
Creating snapshot for <datos/ROOT/Solaris10u7> on
<datos/ROOT/solaris1...@solaris10u7-20090926>.
Creating clone for <datos/ROOT/solaris1...@solaris10u7-20090926> on
<datos/ROOT/Solaris10u7-20090926>.
Setting canmount=noauto for </> in zone <global> on
<datos/ROOT/Solaris10u7-20090926>.
Creating snapshot for <datos/ROOT/Solaris10u7/var> on
<datos/ROOT/Solaris10u7/v...@solaris10u7-20090926>.
Creating clone for <datos/ROOT/Solaris10u7/v...@solaris10u7-20090926> on
<datos/ROOT/Solaris10u7-20090926/var>.
Setting canmount=noauto for </var> in zone <global> on
<datos/ROOT/Solaris10u7-20090926/var>.
Creating snapshot for <datos/zones/stargate> on
<datos/zones/starg...@solaris10u7-20090926>.
Creating clone for <datos/zones/starg...@solaris10u7-20090926> on
<datos/zones/stargate-Solaris10u7-20090926>.
Creating snapshot for <datos/zones/babylon5> on
<datos/zones/babyl...@solaris10u7-20090926>.
Creating clone for <datos/zones/babyl...@solaris10u7-20090926> on
<datos/zones/babylon5-Solaris10u7-20090926>.
WARNING: split filesystem </> file system type <zfs> cannot inherit
mount point options <-> from parent filesystem </> file
type <-> because the two file systems have different types.
Saving existing file </boot/grub/menu.lst> in top level dataset for BE
<Solaris10u7-20090926> as <mount-point>//boot/grub/menu.lst.prev.
File </boot/grub/menu.lst> propagation successful
Copied GRUB menu from PBE to ABE
No entry for BE <Solaris10u7-20090926> in GRUB menu
Population of boot environment <Solaris10u7-20090926> successful.
Creation of boot environment <Solaris10u7-20090926> successful.

[r...@stargate-host etc]# lustatus
Boot Environment           Is       Active Active    Can    Copy
Name                       Complete Now    On Reboot Delete Status
- -------------------------- -------- ------ --------- ------ ----------
Solaris10u7                yes      yes    yes       no     -
Solaris10u7-20090926       yes      no     no        yes    -

[r...@stargate-host etc]# luactivate Solaris10u7-20090926
System has findroot enabled GRUB
Generating boot-sign, partition and slice information for PBE <Solaris10u7>
A Live Upgrade Sync operation will be performed on startup of boot
environment <Solaris10u7-20090926>.

ERROR: unable to mount zones:
zoneadm: zone 'stargate': zone root
/datos/zones/stargate-Solaris10u7-20090926/root is reachable through
/datos/zones/stargate/root/.alt.tmp.b-IRc.mnt
zoneadm: zone 'stargate': call to zoneadmd failed
ERROR: unable to mount zone <stargate> in </.alt.Solaris10u7-20090926>
ERROR: unmounting partially mounted boot environment file systems
ERROR: No such file or directory: error unmounting
<datos/ROOT/Solaris10u7-20090926>
ERROR: cannot mount boot environment by name <Solaris10u7-20090926>
ERROR: Unable to determine the configuration of the target boot
environment <Solaris10u7-20090926>.
"""


"""
# cat /etc/lu/ICF.*
[r...@stargate-host etc]# cat /etc/lu/ICF.*
Solaris10u7:-:/dev/zvol/dsk/datos/swap:swap:67108864
Solaris10u7:/:datos/ROOT/Solaris10u7:zfs:0
Solaris10u7:/var:datos/ROOT/Solaris10u7/var:zfs:0
Solaris10u7:/home:datos/home:zfs:0
Solaris10u7:/datos:datos:zfs:0
Solaris10u7:/usr/local:datos/usr_local:zfs:0
Solaris10u7-20090926:-:/dev/zvol/dsk/datos/swap:swap:67108864
Solaris10u7-20090926:/:datos/ROOT/Solaris10u7-20090926:zfs:0
Solaris10u7-20090926:/datos:datos:zfs:0
Solaris10u7-20090926:/home:datos/home:zfs:0
Solaris10u7-20090926:/usr/local:datos/usr_local:zfs:0
Solaris10u7-20090926:/var:datos/ROOT/Solaris10u7-20090926/var:zfs:0
"""

"""
# cat /etc/vfstab
#device         device          mount           FS      fsck    mount
mount
#to mount       to fsck         point           type    pass    at boot
options
#
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/zvol/dsk/datos/swap        -       -       swap    -       no      -
/devices        -       /devices        devfs   -       no      -
sharefs -       /etc/dfs/sharetab       sharefs -       no      -
ctfs    -       /system/contract        ctfs    -       no      -
objfs   -       /system/object  objfs   -       no      -
swap    -       /tmp    tmpfs   -       yes     -
"""

"""
# zfs list -Ho name,mountpoint,canmount,zpdata:rbe,zpdata:zn
datos   /datos  on      -       -
da...@20090716-18:57    -       -       -       -
da...@20090716-23:57    -       -       -       -
da...@20090801-00:50    -       -       -       -
da...@20090826-01:58    -       -       -       -
da...@20090922-21:16    -       -       -       -
datos/ROOT      legacy  on      -       -
datos/r...@20090716-18:57       -       -       -       -
datos/r...@20090716-23:57       -       -       -       -
datos/r...@20090801-00:50       -       -       -       -
datos/r...@20090826-01:58       -       -       -       -
datos/r...@20090922-21:16       -       -       -       -
datos/ROOT/Solaris10u7  /       noauto  -       -
datos/ROOT/solaris1...@20090716-18:57   -       -       -       -
datos/ROOT/solaris1...@20090716-23:57   -       -       -       -
datos/ROOT/solaris1...@20090801-00:50   -       -       -       -
datos/ROOT/solaris1...@20090826-01:58   -       -       -       -
datos/ROOT/solaris1...@20090922-21:16   -       -       -       -
datos/ROOT/solaris1...@solaris10u7-20090926     -       -       -       -
datos/ROOT/Solaris10u7-20090926 /       noauto  -       -
datos/ROOT/Solaris10u7-20090926/var     /var    noauto  -       -
datos/ROOT/Solaris10u7/var      /var    noauto  -       -
datos/ROOT/Solaris10u7/v...@20090716-18:57       -       -       -       -
datos/ROOT/Solaris10u7/v...@20090716-23:57       -       -       -       -
datos/ROOT/Solaris10u7/v...@20090801-00:50       -       -       -       -
datos/ROOT/Solaris10u7/v...@20090826-01:58       -       -       -       -
datos/ROOT/Solaris10u7/v...@20090922-21:16       -       -       -       -
datos/ROOT/Solaris10u7/v...@solaris10u7-20090926 -       -       -       -
datos/dump      -       -       -       -
datos/home      /home   on      -       -
datos/h...@20090922-21:16       -       -       -       -
datos/swap      -       -       -       -
datos/usr_local /usr/local      on      -       -
datos/usr_lo...@20090716-23:57  -       -       -       -
datos/usr_lo...@20090801-00:50  -       -       -       -
datos/usr_lo...@20090826-01:58  -       -       -       -
datos/usr_lo...@20090922-21:16  -       -       -       -
datos/zones     /datos/zones    noauto  -       -
datos/zo...@20090801-00:50      -       -       -       -
datos/zo...@20090826-01:58      -       -       -       -
datos/zo...@20090922-21:16      -       -       -       -
datos/zones/babylon5    /datos/zones/babylon5   on      Solaris10u7
babylon5
datos/zones/babyl...@solaris10u7-20090926       -       -
Solaris10u7     babylon5
datos/zones/babylon5-Solaris10u7-20090926
/datos/zones/babylon5-Solaris10u7-20090926      off
Solaris10u7-20090926    babylon5
datos/zones/babylon5/dataset    /datos  on      Solaris10u7     babylon5
datos/zones/babylon5/dataset/home       /home   on      Solaris10u7
babylon5
datos/zones/babylon5/dataset/home/apache2       /home/apache2   on
Solaris10u7     babylon5
datos/zones/babylon5/dataset/home/apache2/logs  /home/apache2/logs
on      Solaris10u7     babylon5
datos/zones/babylon5/dataset/home/zope  /home/zope      on
Solaris10u7     babylon5
datos/zones/babylon5/dataset/home/zope/zope-instance
/home/zope/zope-instance        on      Solaris10u7     babylon5
datos/zones/babylon5/dataset/home/zope/zope-instance/log
/home/zope/zope-instance/log    on      Solaris10u7     babylon5
datos/zones/babylon5/dataset/rfc        /datos/rfc      on
Solaris10u7     babylon5
datos/zones/babylon5/dataset/sources    /datos/sources  on
Solaris10u7     babylon5
datos/zones/babylon5/dataset/sources/sources    /datos/sources/sources
on      Solaris10u7     babylon5
datos/zones/babylon5/dataset/sources/sources/externos
/datos/sources/sources/externos on      Solaris10u7     babylon5
datos/zones/babylon5/dataset/sources/sources/exter...@20090925  -
- -       Solaris10u7     babylon5
datos/zones/babylon5/dataset/sources/sources/externos/fuentes_externas
/datos/sources/sources/externos/fuentes_externas        on
Solaris10u7     babylon5
datos/zones/babylon5/dataset/sources/sources/externos/linux
/datos/sources/sources/externos/linux   on      Solaris10u7     babylon5
datos/zones/babylon5/dataset/sources/sources/externos/li...@20090925
- -       -       Solaris10u7     babylon5
datos/zones/babylon5/dataset/sources/sources/externos/mercurial
/datos/sources/sources/externos/mercurial       on      Solaris10u7
babylon5
datos/zones/babylon5/dataset/sources/sources/externos/mercur...@20090925
       -       -       Solaris10u7     babylon5
datos/zones/babylon5/dataset/sources/sources/externos/mozilla
/datos/sources/sources/externos/mozilla on      Solaris10u7     babylon5
datos/zones/babylon5/dataset/sources/sources/externos/mozi...@20090925
- -       -       Solaris10u7     babylon5
datos/zones/babylon5/dataset/sources/sources/externos/sun
/datos/sources/sources/externos/sun     on      Solaris10u7     babylon5
datos/zones/babylon5/dataset/sources/sources/externos/s...@20090925
- -       -       Solaris10u7     babylon5
datos/zones/babylon5/dataset/sources/sources/externos/sun/jdk
/datos/sources/sources/externos/sun/jdk on      Solaris10u7     babylon5
datos/zones/babylon5/dataset/sources/sources/externos/sun/j...@20090925
- -       -       Solaris10u7     babylon5
datos/zones/babylon5/dataset/sources/sources/externos/sun/opensolaris
/datos/sources/sources/externos/sun/opensolaris on      Solaris10u7
babylon5
datos/zones/babylon5/dataset/sources/sources/externos/sun/opensola...@20090925
 -       -       Solaris10u7     babylon5
datos/zones/babylon5/dataset/sources/sources/externos/xen
/datos/sources/sources/externos/xen     on      Solaris10u7     babylon5
datos/zones/babylon5/dataset/sources/sources/externos/x...@20090925
- -       -       Solaris10u7     babylon5
datos/zones/babylon5/dataset/sources/sources/externos/zfs-fuse
/datos/sources/sources/externos/zfs-fuse        on      Solaris10u7
babylon5
datos/zones/babylon5/dataset/sources/sources/externos/zfs-f...@20090925
- -       -       Solaris10u7     babylon5
datos/zones/stargate    /datos/zones/stargate   on      Solaris10u7
stargate
datos/zones/starg...@20090801-00:50     -       -       Solaris10u7
stargate
datos/zones/starg...@20090826-01:58     -       -       Solaris10u7
stargate
datos/zones/starg...@20090922-21:16     -       -       Solaris10u7
stargate
datos/zones/starg...@solaris10u7-20090926       -       -
Solaris10u7     stargate
datos/zones/stargate-Solaris10u7-20090926
/datos/zones/stargate-Solaris10u7-20090926      off
Solaris10u7-20090926    stargate
datos/zones/stargate/dataset    /datos  on      Solaris10u7     stargate
datos/zones/stargate/data...@20090801-00:50     -       -
Solaris10u7     stargate
datos/zones/stargate/data...@20090826-01:58     -       -
Solaris10u7     stargate
datos/zones/stargate/data...@20090922-21:16     -       -
Solaris10u7     stargate
datos/zones/stargate/dataset/correo     none    on      Solaris10u7
stargate
datos/zones/stargate/dataset/cor...@20090801-00:50      -       -
Solaris10u7     stargate
datos/zones/stargate/dataset/cor...@20090826-01:58      -       -
Solaris10u7     stargate
datos/zones/stargate/dataset/cor...@20090922-21:16      -       -
Solaris10u7     stargate
datos/zones/stargate/dataset/correo/buzones     /var/correo_electronico
on      Solaris10u7     stargate
datos/zones/stargate/dataset/correo/spool       /var/spool/postfix
on      Solaris10u7     stargate
datos/zones/stargate/dataset/home       /home   on      Solaris10u7
stargate
datos/zones/stargate/dataset/h...@20090801-00:50        -       -
Solaris10u7     stargate
datos/zones/stargate/dataset/h...@20090826-01:58        -       -
Solaris10u7     stargate
datos/zones/stargate/dataset/h...@20090922-21:16        -       -
Solaris10u7     stargate
datos/zones/stargate/dataset/home/apache2       /home/apache2   on
Solaris10u7     stargate
datos/zones/stargate/dataset/home/apac...@20090922-21:16        -
- -       Solaris10u7     stargate
datos/zones/stargate/dataset/home/apache2/logs  /home/apache2/logs
on      Solaris10u7     stargate
datos/zones/stargate/dataset/mailman    /home/mailman   on
Solaris10u7     stargate
datos/zones/stargate/dataset/mail...@20090922-21:16     -       -
Solaris10u7     stargate
datos/zones/stargate/dataset/mailman/var        /home/mailman/var
on      Solaris10u7     stargate
datos/zones/stargate/dataset/mailman/v...@20090922-21:16 -       -
Solaris10u7     stargate
datos/zones/stargate/dataset/mailman/var/archives
/home/mailman/var/archives      on      Solaris10u7     stargate
datos/zones/stargate/dataset/mailman/var/archi...@20090922-21:16
- -       -       Solaris10u7     stargate
datos/zones/stargate/dataset/mysql      /home/mysql/var on
Solaris10u7     stargate
datos/zones/stargate/dataset/my...@20090922-21:16       -       -
Solaris10u7     stargate
"""

> I am able to see a problem with your 'zfs list' output. <zpdata:rbe,
> zpdata:zn> properties are set to <Solaris10u7, stargate> for several
> datasets. It is wrong. I am not sure how it happened.

I think you are wrong. The attributes you see are inherited from the
parent zone. For instance

[r...@stargate-host etc]# zfs get all datos/zones/stargate/dataset/mysql
[...]
datos/zones/stargate/dataset/mysql  zpdata:zn        stargate
    inherited from datos/zones/stargate
datos/zones/stargate/dataset/mysql  zpdata:rbe       Solaris10u7
    inherited from datos/zones/stargate

Remember, I have quite a few children datasets under each zone.

>     zfs list -Ho zpdata:rbe,zpdata:zn,name | awk '$1=="Solaris10u7" &&
> $2=="stargate" && $3!= "datos/zones/stargate" {print $3}' | xargs zfs
> set zpdata:rbe="",zpdata:zn=""

Please, confirm I must set those properties to "" for every children
dataset under each zone, instead of inheriting it from the parent
dataset (the root of the zone).

Note that now I have two zones: "stargate" and "babylon5".

Note also my previous mail about my suspicious that the problem is the
inability to unmount the zone datasets, so the live upgrade system
detects that the the BE zones are reachable via two different paths,
because the first one was not correctly unmounted. That was showed in
the DEBUG execution I mailed yesterday.

I have a trip next monday. I will be unavailable until tuesday or wednesday.

PS: I have an "strange" configuration in my datasets, nevertheless. I
don't know if it is related or not. It is a configuration detail I could
change:

My ZFS pool is called "datos". Every zone, under "/datos/zones/ZONE",
has a child dataset called "/datos/zones/ZONE/dataset" (and multiple
datasets under it). In every zone, the dataset
"/datos/zones/ZONE/dataset" is set a "mountpoint" of "/datos".

For instance, in the zone "stargate", I have this:

[r...@stargate mail]# zfs list
NAME                                                               USED
 AVAIL  REFER  MOUNTPOINT
datos                                                             71.1G
  606G    50K  /datos
datos/zones                                                       24.5G
  476G    24K  /datos/zones
datos/zones/stargate                                              12.4G
  476G   640M  /datos/zones/stargate
datos/zones/stargate/dataset                                      11.8G
  476G  30.5K  /datos
[...]

The "datos" dataset (pool) has a mountpoint of "/datos", but is not
mounted, so the "/datos" mountpoint of "datos/zones/stargate/dataset"
should not be a problem.

I don't know if this is relevant or not, but is the only personal
configuration I could think being "risky".

Another point... I map "/datos/zones/ZONE/dataset" into the ZONE using "
 <dataset name="datos/zones/ZONE/dataset"/>" (zonecfg), but I am
thinking this is not necessary because the dataset is already a child of
the ZONE "root". So...

Do I actually need to map the dataset into the zone, if the dataset is
already a child of the ZONE root dataset?.

- --
Jesus Cea Avion                         _/_/      _/_/_/        _/_/_/
j...@jcea.es - http://www.jcea.es/     _/_/    _/_/  _/_/    _/_/  _/_/
jabber / xmpp:j...@jabber.org         _/_/    _/_/          _/_/_/_/_/
.                              _/_/  _/_/    _/_/          _/_/  _/_/
"Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQCVAwUBSr1KeZlgi5GaxT1NAQIUgQQAiivdPefdI87QE1hRZDzkWzgBsSdqqGRz
BiFx8oG3bPlp4NO5wPDDGmLiw10iU/6YG6DNVZ2FPrVROP9DPv1vQl7UXBOsNc5I
9MKfuGGr/Pkble4cpwmARnm8TA0yg7urFP0Edey99rcQDXI5RQwSSmkoySi685RO
NmZYxqnjCT0=
=HWse
-----END PGP SIGNATURE-----
_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org

Reply via email to