[zones-discuss] zoneadm install fails with legacy mounted ZFS filesystem

2008-03-05 Thread Danilo Poccia
Hi,

I'm having trouble in SXCE b84 with the issue in subject, discussed in  
this 2006 mailing list:

http://osdir.com/ml/solaris.opensolaris.zones/2006-07/msg00027.html

The workaround is easy (remove the add fs with type=zfs prior to  
install and add it again just after that) but does anyone know if a  
bug has been filed for that?

Thks  Rgdrs,
Danilo.

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


[zones-discuss] zoneadm install help message gives wrong man page info about brands

2007-11-09 Thread William D. Hathaway
Using S10u4 with 127111-03 and the S8MA pkgs.

I ran zoneadm install with invalid arguments and the help message that was 
printed seemed inaccurate.  A brand(4) man-page was mentioned, but I think it 
should be brands(5) which is mentioned in the man page of zoneadm.

[EMAIL PROTECTED]  zoneadm install  solaris8 -u -a /mnt/cvstest.flar
usage:  install [brand-specific args]
Install the configuration on to the system.  All arguments are passed 
to the brand installation function;
see brand(4) for more information.
 
 
This message posted from opensolaris.org
___
zones-discuss mailing list
zones-discuss@opensolaris.org


[zones-discuss] zoneadm install

2007-06-04 Thread F.V.(Phil)Porcella
***Im getting some strange errors from zoneadmin install
bash-3.00# zoneadm -z CIS2 install
Preparing to install zone CIS2.
Creating list of files to copy from the global zone.
Copying 213 files to the zone.
Initializing zone product registry.
ERROR: Read-only file system: cannot create zone product registry text database 
file /zones/CIS2/root/var/sadm/install/contents
ERROR: cannot initialize zone product registry at /zones/CIS2/root
ERROR: cannot copy and initialize packages from global zone to local zone 
CIS2 path /zones/CIS2/root
ERROR: cannot create zone boot environment CIS2
zoneadm: zone 'CIS2': '/usr/lib/lu/lucreatezone' failed with exit code 74.
*** my configuration file looks like this:
bash-3.00# zonecfg -z CIS2
zonecfg:CIS2 export
create -b
set zonepath=/zones/CIS2
set autoboot=true
add inherit-pkg-dir
set dir=/lib
end
add inherit-pkg-dir
set dir=/platform
end
add inherit-pkg-dir
set dir=/sbin
end
add inherit-pkg-dir
set dir=/usr
end
add inherit-pkg-dir
set dir=/opt
end
add inherit-pkg-dir
set dir=/var
end
add net
set address=156.12.1.129
set physical=eri0
end
zonecfg:CIS2 exit
bash-3.00#
*** Im patched up to the solaris cluster that came out last week, so
*** Any ideas?
 
 
This message posted from opensolaris.org
___
zones-discuss mailing list
zones-discuss@opensolaris.org


[zones-discuss] zoneadm install

2007-06-04 Thread F.V.(Phil)Porcella
***Im getting some strange errors from zoneadmin install
bash-3.00# zoneadm -z CIS2 install
Preparing to install zone CIS2.
Creating list of files to copy from the global zone.
Copying 213 files to the zone.
Initializing zone product registry.
ERROR: Read-only file system: cannot create zone product registry text database 
file /zones/CIS2/root/var/sadm/install/contents
ERROR: cannot initialize zone product registry at /zones/CIS2/root
ERROR: cannot copy and initialize packages from global zone to local 
zone CIS2 path /zones/CIS2/root
ERROR: cannot create zone boot environment CIS2
zoneadm: zone 'CIS2': '/usr/lib/lu/lucreatezone' failed with exit code 74.
*** my configuration file looks like this:
bash-3.00# zonecfg -z CIS2
zonecfg:CIS2 export
create -b
set zonepath=/zones/CIS2
set autoboot=true
add inherit-pkg-dir
set dir=/lib
end
add inherit-pkg-dir
set dir=/platform
end
add inherit-pkg-dir
set dir=/sbin
end
add inherit-pkg-dir
set dir=/usr
end
add inherit-pkg-dir
set dir=/opt
end
add inherit-pkg-dir
set dir=/var
end
add net
set address=156.12.1.129
set physical=eri0
end
zonecfg:CIS2 exit
bash-3.00#
*** Im patched up to the solaris cluster that came out last week, so
*** Any ideas?
 
 
This message posted from opensolaris.org
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] zoneadm install

2007-06-04 Thread Jerry Jelinek

F.V.(Phil)Porcella wrote:

***Im getting some strange errors from zoneadmin install
bash-3.00# zoneadm -z CIS2 install
Preparing to install zone CIS2.
Creating list of files to copy from the global zone.
Copying 213 files to the zone.
Initializing zone product registry.
ERROR: Read-only file system: cannot create zone product registry text database file 
/zones/CIS2/root/var/sadm/install/contents
ERROR: cannot initialize zone product registry at /zones/CIS2/root
ERROR: cannot copy and initialize packages from global zone to local zone CIS2 path 
/zones/CIS2/root
ERROR: cannot create zone boot environment CIS2
zoneadm: zone 'CIS2': '/usr/lib/lu/lucreatezone' failed with exit code 74.
*** my configuration file looks like this:
bash-3.00# zonecfg -z CIS2
zonecfg:CIS2 export
create -b
set zonepath=/zones/CIS2
set autoboot=true
add inherit-pkg-dir
set dir=/lib
end
add inherit-pkg-dir
set dir=/platform
end
add inherit-pkg-dir
set dir=/sbin
end
add inherit-pkg-dir
set dir=/usr
end
add inherit-pkg-dir
set dir=/opt
end
add inherit-pkg-dir
set dir=/var
end
add net
set address=156.12.1.129
set physical=eri0
end
zonecfg:CIS2 exit
bash-3.00#
*** Im patched up to the solaris cluster that came out last week, so
*** Any ideas?


Yes, you created an invalid configuration.  You can't have /var be
an inherited pkg dir since that directory must be writable and each
zone needs its own private copy.

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


Re: [zones-discuss] zoneadm install

2007-06-04 Thread James Carlson
F.V.(Phil)Porcella writes:
 ERROR: Read-only file system: cannot create zone product registry text 
 database file /zones/CIS2/root/var/sadm/install/contents
[...]
 add inherit-pkg-dir
 set dir=/var
 end

I don't think that /var can be an inherit-pkg-dir, as this is where
the private per-zone packaging database will live, among other
important zone-private things.

Did you add this to the zone configuration on your own (if so, why?),
or did some script do it for you (if so, what script?)?

-- 
James Carlson, Solaris Networking  [EMAIL PROTECTED]
Sun Microsystems / 1 Network Drive 71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] zoneadm install

2007-06-04 Thread EndaO'Connor

F.V.(Phil)Porcella wrote:


***Im getting some strange errors from zoneadmin install
bash-3.00# zoneadm -z CIS2 install
Preparing to install zone CIS2.
Creating list of files to copy from the global zone.
Copying 213 files to the zone.
Initializing zone product registry.
ERROR: Read-only file system: cannot create zone product registry text database file 
/zones/CIS2/root/var/sadm/install/contents
ERROR: cannot initialize zone product registry at /zones/CIS2/root
ERROR: cannot copy and initialize packages from global zone to local zone CIS2 path 
/zones/CIS2/root
ERROR: cannot create zone boot environment CIS2
zoneadm: zone 'CIS2': '/usr/lib/lu/lucreatezone' failed with exit code 74.
*** my configuration file looks like this:
bash-3.00# zonecfg -z CIS2
zonecfg:CIS2 export
create -b
set zonepath=/zones/CIS2
set autoboot=true
add inherit-pkg-dir
set dir=/lib
end
add inherit-pkg-dir
set dir=/platform
end
add inherit-pkg-dir
set dir=/sbin
end
add inherit-pkg-dir
set dir=/usr
end
add inherit-pkg-dir
set dir=/opt
end
add inherit-pkg-dir
set dir=/var
end
add net
set address=156.12.1.129
set physical=eri0
end
zonecfg:CIS2 exit
bash-3.00#
*** Im patched up to the solaris cluster that came out last week, so
*** Any ideas?


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


Hi
Create -b creates a whole root zone, esssentially /lib /sbin/ platform 
and /usr are no longer inherited, but then in the zone config you 
specify these as being inherited anyway,
esentially drop the -b, now the real problem is the last inherit /var,  
var must be writqable, and is what is causing the failure.

so
1 no need to use -b to create,
2 no need to specify inherit for /lib /sbin /platform and usr once -b is 
not used

3 lose the inherit of /var

Why are you inheriting /var, might be able to give better advise once we 
understand issue


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