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

Enda O'Connor wrote:
> Hi Coudl I see debug from luactivate, I cannot see anything obvious in
> lucreate, but this time cut and paste to a text file and attach it, as
> it easier to work with after.

OK. I pasted it inline for Google benefice, and because a lot of mailing
lists strip attachments. Pasting 1 MB of text in small chunks was a bit
time consuming :).

Studying the debug info carefully for a couple of hours (ugh!) I see this:

"""
[...]
DEBUG(16511/create_abe_vfstab): CLI: mount point preserved </dev/fd>:
block <fd> char <-> not valid
DEBUG(16511/create_abe_vfstab): CLI: mount point preserved </proc>:
block </proc> char <-> not valid
DEBUG(16511/create_abe_vfstab): CLI: swap device preserved
</dev/zvol/dsk/datos/swap>: used in both boot environments
DEBUG(16511/create_abe_vfstab): CLI: mount point preserved </devices>:
block </devices> char <-> not valid
DEBUG(16511/create_abe_vfstab): CLI: mount point preserved
</etc/dfs/sharetab>: block <sharefs> char <-> not valid
DEBUG(16511/create_abe_vfstab): CLI: mount point preserved
</system/contract>: block <ctfs> char <-> not valid
DEBUG(16511/create_abe_vfstab): CLI: mount point preserved
</system/object>: block <objfs> char <-> not valid
DEBUG(16511/create_abe_vfstab): CLI: mount point preserved </tmp>: block
<swap> char <-> not valid
DEBUG(16511/create_abe_vfstab): UTL: execute command: </sbin/zfs zfs get
- -Ho value mountpoint datos/ROOT/Solaris10u7-20090924>
DEBUG(16511/create_abe_vfstab): UTL: command </sbin/zfs> executed: pid
<16513> errno <0x0000> status <0x0000> final status <0x0000> output <legacy
>
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.
[...]
"""

The "char <-> not valid" is suspicious. Also, reading the warning
message carefully, it seems to indicate that the filesystem is of ZFS
type, but the parent filesystem is of type "-". Type "-"???????.
Uhmmmmm... That seems to indicate some kind of issue with "/etc/vfstab".

In fact, some lines later I read:

"""
+ gettext Differences between old and new vfstab
files:\n**********************************\n%R\n**********************************
+ /etc/lib/lu/luprintf -lp2D - Differences between old and new vfstab files:
**********************************
%R
**********************************
luedvfstab: DEBUG(*): Differences between old and new vfstab files:
**********************************
0a1
> #live-upgrade:<Thu Sep 24 12:45:48 CEST 2009> updated boot environment
<Solaris10u7-20090924>
11a13,14
> datos/ROOT/Solaris10u7-20090924       -       /       zfs     1
no      -
> datos/ROOT/Solaris10u7-20090924/var   -       /var    zfs     1
no      -
**********************************
"""

My current "/etc/vfstab" doesn't contain any reference to "/" or "/var",
because they are managed by ZFS infraestructure:

"""
[r...@stargate-host tmp]# 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     -
"""

If I change the "/etc/vfstab" by hand to add the references to "/" and
"/var", I can create the new BE and mount it without any warning/error!!!:

"""
[r...@stargate-host tmp]# cat /etc/vfstab
#device         device          mount           FS      fsck    mount
mount
#to mount       to fsck         point           type    pass    at boot
options
#
datos/ROOT/Solaris10u7       -       /       zfs     1       no      -
datos/ROOT/Solaris10u7/var   -       /var    zfs     1       no      -
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     -
"""

Now I create the new BE:

"""
[r...@stargate-host tmp]# lucreate -n Solaris10u7-20090924
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-20090924>.
Source boot environment is <Solaris10u7>.
Creating boot environment <Solaris10u7-20090924>.
Cloning file systems from boot environment <Solaris10u7> to create boot
environment <Solaris10u7-20090924>.
Creating snapshot for <datos/ROOT/Solaris10u7> on
<datos/ROOT/solaris1...@solaris10u7-20090924>.
Creating clone for <datos/ROOT/solaris1...@solaris10u7-20090924> on
<datos/ROOT/Solaris10u7-20090924>.
Setting canmount=noauto for </> in zone <global> on
<datos/ROOT/Solaris10u7-20090924>.
Creating snapshot for <datos/ROOT/Solaris10u7/var> on
<datos/ROOT/Solaris10u7/v...@solaris10u7-20090924>.
Creating clone for <datos/ROOT/Solaris10u7/v...@solaris10u7-20090924> on
<datos/ROOT/Solaris10u7-20090924/var>.
Setting canmount=noauto for </var> in zone <global> on
<datos/ROOT/Solaris10u7-20090924/var>.
Creating snapshot for <datos/zones/stargate> on
<datos/zones/starg...@solaris10u7-20090924>.
Creating clone for <datos/zones/starg...@solaris10u7-20090924> on
<datos/zones/stargate-Solaris10u7-20090924>.
Saving existing file </boot/grub/menu.lst> in top level dataset for BE
<Solaris10u7-20090924> 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-20090924> in GRUB menu
Population of boot environment <Solaris10u7-20090924> successful.
Creation of boot environment <Solaris10u7-20090924> successful.
"""

I can mount the BE without problems, but trying to unmounting it has
some issues:

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

[r...@stargate-host tmp]# lumount Solaris10u7-20090924
/.alt.Solaris10u7-20090924

[r...@stargate-host tmp]# luumount Solaris10u7-20090924
ERROR: cannot unmount '/.alt.Solaris10u7-20090924': Device busy
ERROR: cannot unmount <datos/ROOT/Solaris10u7-20090924>
ERROR: failed to unmount </.alt.Solaris10u7-20090924>
ERROR: cannot fully unmount boot environment - <1>: file systems remain
mounted
ERROR: Device busy: cannot remove temporary/automatic mount point
</.alt.Solaris10u7-20090924>

[r...@stargate-host tmp]# mount
[...]
/.alt.Solaris10u7-20090924 on datos/ROOT/Solaris10u7-20090924
read/write/setuid/devices/nonbmand/exec/xattr/atime/dev=2d5006a on Thu
Sep 24 17:59:10 2009
/datos/zones/stargate-Solaris10u7-20090924 on
datos/zones/stargate-Solaris10u7-20090924
read/write/setuid/devices/nonbmand/exec/xattr/atime/dev=2d5006c on Thu
Sep 24 17:59:11 2009
/datos/zones/stargate/root/.alt.Solaris10u7-20090924 on
/datos/zones/stargate-Solaris10u7-20090924/root
read/write/setuid/devices/dev=2d5006c on Thu Sep 24 17:59:11 2009
/datos/zones/stargate/root/.alt.Solaris10u7-20090924/usr on
/.alt.Solaris10u7-20090924/usr read
only/setuid/nodevices/nosub/dev=2d5006a on Thu Sep 24 17:59:11 2009
/datos/zones/stargate/root/.alt.Solaris10u7-20090924/usr/local on
/usr/local read only/setuid/nodevices/dev=2d50009 on Thu Sep 24 17:59:11
2009
"""

I can "umount" the datasets by hand.

Trying to do the "luactivate":

"""
[r...@stargate-host tmp]# luactivate Solaris10u7-20090924
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-20090924>.

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

I will clean up the spurious mounts and will post the debug log in the
next message.

- --
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/

iQCVAwUBSruZiZlgi5GaxT1NAQL9rwQAoeSHRW4wr2ZiC4fsm93PbJGU0kv4i7fl
CCNeLSAiCBNnZgR9I23BMt0LDsmmwNrO4X17VcvA6AfMx3lcUJqGQlPamx+o0p2q
VAV2Q6ZpRWZaAGFD1PBpxsJVEOWtfI3CJgNn+g53HTEcu+D41ZG3rVzyUNNMag++
D6Fe3V71NsQ=
=yG76
-----END PGP SIGNATURE-----
_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org

Reply via email to