Re: [zones-discuss] Strange error with ZFS Live Upgrade and Zones

2009-09-24 Thread Enda O'Connor

Hi
This one is unclear to me, you have latest x86 LU patch.

coudl you run the luactivate in debug mode

export LU_DEBUG_OVERRIDE=20

for a start and send the output on, should have some data of interest to 
indicate the issue.


Enda


Jesus Cea wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mark J Musante wrote:

PS: If the zones datasets must be children of the current BE dataset,
that SHOULD be documented clearly in the manual!.

The u7 version of LU should support zones outside of the BE dataset
hierarchy.  The latest doc pointer I have is this:
http://docs.sun.com/app/docs/doc/819-5461/gigek?a=view


So... What can I do?. Do you want me to check/test anything?.

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

iQCVAwUBSrpNcJlgi5GaxT1NAQK8rQP8CpkOYTmzLwg2HDehLyw+0Yj1hxvkoJdp
mdajxD1Ux/rRscQEzy/wAC162b1zoHLLlDnrKTZP3nrWwYFbcVqZXaRIbojoyQO8
xtCsXXgvonozIWrfTU10m9PNkAjJH0PkWx8iDwGgR8fmQ5gwoLdGrHbrykoV32JU
wxGFIGGCZwo=
=BvTc
-END PGP SIGNATURE-


___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] Strange error with ZFS Live Upgrade and Zones

2009-09-24 Thread Enda O'Connor
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.


Enda
Jesus Cea wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I have a warning when creating the BE. Maybe it is a hint:


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


I don't understand the warning. Any pointer




[r...@stargate-host /]# zfs get all datos/zones/stargate
NAME  PROPERTY VALUE  SOURCE
datos/zones/stargate  type filesystem -
datos/zones/stargate  creation Tue Jul 28  1:01 2009  -
datos/zones/stargate  used 12.4G  -
datos/zones/stargate  available618G   -
datos/zones/stargate  referenced   606M   -
datos/zones/stargate  compressratio1.74x  -
datos/zones/stargate  mounted  yes-
datos/zones/stargate  quotanone   default
datos/zones/stargate  reservation  none   default
datos/zones/stargate  recordsize   128K   default
datos/zones/stargate  mountpoint   /datos/zones/stargate  inherited
from datos
datos/zones/stargate  sharenfs offlocal
datos/zones/stargate  checksum on default
datos/zones/stargate  compression  gzip-9 inherited
from datos/zones
datos/zones/stargate  atimeon default
datos/zones/stargate  devices  on default
datos/zones/stargate  exec on default
datos/zones/stargate  setuid   on default
datos/zones/stargate  readonly offdefault
datos/zones/stargate  zonedoffdefault
datos/zones/stargate  snapdir  hidden default
datos/zones/stargate  aclmode  groupmask  default
datos/zones/stargate  aclinherit   restricted default
datos/zones/stargate  canmount on default
datos/zones/stargate  shareiscsi   offdefault
datos/zones/stargate  xattron default
datos/zones/stargate  copies   1  default
datos/zones/stargate  version  3  -
datos/zones/stargate  utf8only off-
datos/zones/stargate  normalizationnone   -
datos/zones/stargate  casesensitivity  sensitive  -
datos/zones/stargate  vscanoffdefault
datos/zones/stargate  nbmand   offdefault
datos/zones/stargate  sharesmb offdefault
datos/zones/stargate  refquota none   default
datos/zones/stargate  refreservation   none   default

Re: [zones-discuss] Strange error with ZFS Live Upgrade and Zones

2009-09-24 Thread Jesus Cea
-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 0x status 0x final status 0x 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 -???.
Uhm... 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   -   /varzfs 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  fsckmount
mount
#to mount   to fsck point   typepassat boot
options
#
fd  -   /dev/fd fd  -   no  -
/proc   -   /proc   proc-   no  -
/dev/zvol/dsk/datos/swap-   -   swap-   no  -
/devices-   /devicesdevfs   -   no  -
sharefs -   /etc/dfs/sharetab   sharefs -   no  -
ctfs-   /system/contractctfs-   no  -
objfs   -   /system/object  objfs   -   no  -
swap-   /tmptmpfs   -   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  fsckmount
mount
#to mount   to fsck point   typepassat boot
options
#
datos/ROOT/Solaris10u7   -   /   zfs 1   no  -
datos/ROOT/Solaris10u7/var   -   /varzfs 1   no  -
fd  -   /dev/fd fd  -   no  -
/proc   -   /proc   proc-   no  -
/dev/zvol/dsk/datos/swap-   -   swap-   no  -
/devices-   /devicesdevfs   -   no  -
sharefs -   /etc/dfs/sharetab   sharefs -   no  -
ctfs-   /system/contractctfs-   no  -
objfs   -   /system/object  objfs   -   no  -
swap-   /tmptmpfs   -   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

Re: [zones-discuss] Strange error with ZFS Live Upgrade and Zones

2009-09-24 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I have added a new zone (babylon5) to the machine. So, the machine now
have two non-global zones.


sriman wrote:
 Hi,
 
 We need to few details to arrive at exact root cause. Could you please
 send us the following.
 
 1. Contents of ICF files
 
#cat /etc/lu/ICF.*

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

 2. Contents of  /etc/vfstab
 
  #cat /etc/vfstab

[r...@stargate-host zones]# cat /etc/vfstab
#device device  mount   FS  fsckmount
mount
#to mount   to fsck point   typepassat boot
options
#
fd  -   /dev/fd fd  -   no  -
/proc   -   /proc   proc-   no  -
/dev/zvol/dsk/datos/swap-   -   swap-   no  -
/devices-   /devicesdevfs   -   no  -
sharefs -   /etc/dfs/sharetab   sharefs -   no  -
ctfs-   /system/contractctfs-   no  -
objfs   -   /system/object  objfs   -   no  -
swap-   /tmptmpfs   -   yes -

 3. Output of following zfs command
 
 #zfs list -Ho name,mountpoint,canmount,zpdata:rbe,zpdata:zn

[r...@stargate-host zones]# 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/Solaris10u7/var  /varnoauto  -   -
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/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/zonesnoauto  -   -
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/babylon5/dataset/datos  on  Solaris10u7 babylon5
datos/zones/babylon5/dataset/home   /home   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-instanceon  Solaris10u7 babylon5
datos/zones/babylon5/dataset/home/zope/zope-instance/log
/home/zope/zope-instance/logon  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/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 noneon  Solaris10u7
stargate
datos/zones/stargate/dataset/cor...@20090801-00:50  -   -

[zones-discuss] Can't set up AutoInstall in a non-global zone with exclusive IP

2009-09-24 Thread Gordon Marler
Trying to segregate an AutoInstall server onto a Zone with an exclusive IP set 
up on the onboard igb NIC of an x4270, but not having success.  Works fine on 
the global zone.

Running build 123, and have got past the issue of specifying the -s option to 
installadm create-service ... (I copied the target directory from the global 
zone into the non-global zone's dataset).  installadm fails to create the 
service, I think because multicast DNS isn't running in the non-global zone.

Any reason why multicast DNS wouldn't start in a non-global zone?

I've made sure to copy nsswitch.dns to nsswitch.conf, and have configured 
regular DNS and confirmed that it works by NAT'ing a separate VNIC across an 
etherstub to the global zone.

Trying to start mdsnd -debug isn't very helpful - it just start Starting,  
then immediately Stopping.  No clue what's missing there.

On a related topic, is there a reason you can't snoop -d /dev/igb1 in the 
non-global zone, where igb1 is the NIC dedicated to the zone?

Gordon
-- 
This message posted from opensolaris.org
___
zones-discuss mailing list
zones-discuss@opensolaris.org