Re: [zones-discuss] Solaris 10 U8 Zone Problem with LU and PCA

2009-10-20 Thread Trevor Pretty





Check the permissions on the non-global zone directory. They have to be
very specific and

must not be group readable.
must not be group executable.
must not be world readable.
must not be world executable.


This is know
to trip up LU.




deniz rende wrote:

  Hi Folks,

I've been regularly patching my Solaris 10 U8 with Liveupgrade and PCA. I had a zone running on the system which I ended up changing its name. Then I wanted to create a new LU ABE and got the following error:

# lustatus

Boot Environment   Is   Active ActiveCanCopy
Name   Complete NowOn Reboot Delete Status
--  -- - -- --
Solaris10U8PCA yes  yesyes   no -
# lucreate -n Solaris10U8PCA01
Checking GRUB menu...
System has findroot enabled GRUB
Analyzing system configuration.
Comparing source boot environment  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 .
Source boot environment is .
Creating boot environment .
Cloning file systems from boot environment  to create boot environment .
Creating snapshot for  on .
Creating clone for  on .
Setting canmount=noauto for  in zone  on .
zperl: Miscellaneous file system error
Configuration not saved.
ERROR: Unable to set zonepath to  for zone 
Saving existing file  in top level dataset for BE  as //boot/grub/menu.lst.prev.
File  propagation successful
Copied GRUB menu from PBE to ABE
No entry for BE  in GRUB menu
Population of boot environment  successful.
Creation of boot environment  successful.

Although it created the LU environmet, It's got some errors mentioned above. The name of the zone originally was and I changed it to zperl by using zfs rename, and editing zonepath files (index and zperl.xml)

I tried to mount this into a temp directory called /b:

r...@solix# lustatus
Boot Environment   Is   Active ActiveCanCopy
Name   Complete NowOn Reboot Delete Status
--  -- - -- --
Solaris10U8PCA yes  yesyes   no -
Solaris10U8PCA01   yes  no noyes-
r...@solix# lumount Solaris10U8PCA01 /b
ERROR: unable to mount zones:
/b/zonepool/zperl must not be group readable.
/b/zonepool/zperl must not be group executable.
/b/zonepool/zperl must not be world readable.
/b/zonepool/zperl must not be world executable.
could not verify zonepath /b/zonepool/zperl because of the above errors.
zoneadm: zone zperl failed to verify
ERROR: unable to mount zone  in 
ERROR: unmounting partially mounted boot environment file systems
ERROR: No such file or directory: error unmounting ERROR: cannot mount boot environment by name 

Also I have a strange error in df -h as well.
# df -h
Filesystem size   used  avail capacity  Mounted on
rpool/ROOT/Solaris10U8PCA
67G   7.5G56G12%/
/devices 0K 0K 0K 0%/devices
ctfs 0K 0K 0K 0%/system/contract
proc 0K 0K 0K 0%/proc
mnttab   0K 0K 0K 0%/etc/mnttab
swap   1.9G   412K   1.9G 1%/etc/svc/volatile
objfs0K 0K 0K 0%/system/object
sharefs  0K 0K 0K 0%/etc/dfs/sharetab
/usr/lib/libc/libc_hwcap2.so.1
64G   7.5G56G12%/lib/libc.so.1
fd   0K 0K 0K 0%/dev/fd
swap   1.9G   100K   1.9G 1%/tmp
swap   1.9G32K   1.9G 1%/var/run
rpool/export67G21K56G 1%/export
rpool/export/home   67G18K56G 1%/export/home
rpool   67G43K56G 1%/rpool
zonepool67G21K63G 1%/zonepool
/vol/dev/dsk/c0t0d0/unnamed_rmdisk:c
   1.9G   767M   1.1G41%/rmdisk/unnamed_rmdisk
rpool/iscsi_luns67G21K56G 1%/rpool/iscsi_luns
df: cannot statvfs /zonepool/zruby: No such file or directory
rpool/ROOT/Solaris10U8PCA01/zoneds
67G21K56G 1%/.alt.Solaris10U8PCA01/zoneds

The name of the zone was originally zruby and now it is zperl.

Could you guys please tell me how to get rid of these messages and get the system back to its feet on this so that I can go ahead and patch it?

Best Regards...
  




www.eagle.co.nz 
This email is confidential and may be legally 
privileged. If received in error please destroy and immediately notify 
us.


___
zones-discuss mailing list
zones-discuss@opensol

Re: [zones-discuss] Solaris 10 U8 Zone Problem with LU and PCA

2009-10-20 Thread Enda O'Connor

deniz rende wrote:

Hi Folks,

I've been regularly patching my Solaris 10 U8 with Liveupgrade and PCA. I had a 
zone running on the system which I ended up changing its name. Then I wanted to 
create a new LU ABE and got the following error:

# lustatus

Boot Environment   Is   Active ActiveCanCopy
Name   Complete NowOn Reboot Delete Status
--  -- - -- --
Solaris10U8PCA yes  yesyes   no -
# lucreate -n Solaris10U8PCA01
Checking GRUB menu...
System has findroot enabled GRUB
Analyzing system configuration.
Comparing source boot environment  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 .
Source boot environment is .
Creating boot environment .
Cloning file systems from boot environment  to create boot 
environment .
Creating snapshot for  on 
.
Creating clone for  on 
.
Setting canmount=noauto for  in zone  on 
.
zperl: Miscellaneous file system error
Configuration not saved.
ERROR: Unable to set zonepath to  
for zone 
Saving existing file  in top level dataset for BE 
 as //boot/grub/menu.lst.prev.
File  propagation successful
Copied GRUB menu from PBE to ABE
No entry for BE  in GRUB menu
Population of boot environment  successful.
Creation of boot environment  successful.

Although it created the LU environmet, It's got some errors mentioned above. 
The name of the zone originally was and I changed it to zperl by using zfs 
rename, and editing zonepath files (index and zperl.xml)

I tried to mount this into a temp directory called /b:

r...@solix# lustatus
Boot Environment   Is   Active ActiveCanCopy
Name   Complete NowOn Reboot Delete Status
--  -- - -- --
Solaris10U8PCA yes  yesyes   no -
Solaris10U8PCA01   yes  no noyes-
r...@solix# lumount Solaris10U8PCA01 /b
ERROR: unable to mount zones:
/b/zonepool/zperl must not be group readable.
/b/zonepool/zperl must not be group executable.
/b/zonepool/zperl must not be world readable.
/b/zonepool/zperl must not be world executable.
could not verify zonepath /b/zonepool/zperl because of the above errors.
zoneadm: zone zperl failed to verify
ERROR: unable to mount zone  in 
ERROR: unmounting partially mounted boot environment file systems
ERROR: No such file or directory: error unmounting 
ERROR: cannot mount boot environment by name 


Also I have a strange error in df -h as well.
# df -h
Filesystem size   used  avail capacity  Mounted on
rpool/ROOT/Solaris10U8PCA
67G   7.5G56G12%/
/devices 0K 0K 0K 0%/devices
ctfs 0K 0K 0K 0%/system/contract
proc 0K 0K 0K 0%/proc
mnttab   0K 0K 0K 0%/etc/mnttab
swap   1.9G   412K   1.9G 1%/etc/svc/volatile
objfs0K 0K 0K 0%/system/object
sharefs  0K 0K 0K 0%/etc/dfs/sharetab
/usr/lib/libc/libc_hwcap2.so.1
64G   7.5G56G12%/lib/libc.so.1
fd   0K 0K 0K 0%/dev/fd
swap   1.9G   100K   1.9G 1%/tmp
swap   1.9G32K   1.9G 1%/var/run
rpool/export67G21K56G 1%/export
rpool/export/home   67G18K56G 1%/export/home
rpool   67G43K56G 1%/rpool
zonepool67G21K63G 1%/zonepool
/vol/dev/dsk/c0t0d0/unnamed_rmdisk:c
   1.9G   767M   1.1G41%/rmdisk/unnamed_rmdisk
rpool/iscsi_luns67G21K56G 1%/rpool/iscsi_luns
df: cannot statvfs /zonepool/zruby: No such file or directory
rpool/ROOT/Solaris10U8PCA01/zoneds
67G21K56G 1%
/.alt.Solaris10U8PCA01/zoneds

The name of the zone was originally zruby and now it is zperl.

Could you guys please tell me how to get rid of these messages and get the 
system back to its feet on this so that I can go ahead and patch it?

Best Regards...
can I see zfs list, I take it that zruby was renamed to zperl, or is 
there a second zone?


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