[zones-discuss] S10 zone migration with pax(1)

2011-06-15 Thread John D Groenveld
Following this recipe to migrate my non-global S10 zones to S11X:
URL:http://download.oracle.com/docs/cd/E19963-01/html/821-1460/gjroc.html

cpio(1) fails due = 8GB filesize limit. (See largefile(5).)

Using pax results in a zone with foobar'd permissions.
S10# pax -w -@ -p e -x xustar -f /zones/my-zone.pax my-zone
S11# zoneadm -z my-zone attach -a /zones/my-zone.pax

However,
If I extract my-zone.pax and attach with -d, the zone's permissions
appears kosher.
S11# pax -r -@ -p e -f /zones/my-zone.pax
S11# zoneadm -z my-zone attach -d /zones/my-zone

I'm guessing zoneadm(1M)'s call to pax(1) with -a pax_archive is broken
and zoneadm(1M)'s underlying use of cpio(1) with -d zone/root has the
filesize limit.

John
groenv...@acm.org

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


Re: [zones-discuss] S10 zone migration with pax(1)

2011-06-15 Thread Mike Gerdts
On Wed 15 Jun 2011 at 09:17PM, John D Groenveld wrote:
 Following this recipe to migrate my non-global S10 zones to S11X:
 URL:http://download.oracle.com/docs/cd/E19963-01/html/821-1460/gjroc.html
 
 cpio(1) fails due = 8GB filesize limit. (See largefile(5).)
 
 Using pax results in a zone with foobar'd permissions.
 S10# pax -w -@ -p e -x xustar -f /zones/my-zone.pax my-zone
 S11# zoneadm -z my-zone attach -a /zones/my-zone.pax
 
 However,
 If I extract my-zone.pax and attach with -d, the zone's permissions
 appears kosher.
 S11# pax -r -@ -p e -f /zones/my-zone.pax
 S11# zoneadm -z my-zone attach -d /zones/my-zone

A quick look suggests that the differences between your 'pax -r' args and
what attach uses is '-@ -p e'.  See install_pax() in
/usr/lib/brand/shared/common.ksh.  If you update this line:

( cd $ARCHIVE_BASE  pax -r -f $archive $filtopt )

to:

( cd $ARCHIVE_BASE  pax -r -@ -p e -f $archive $filtopt )

give 'zoneadm -z myzone attach -a' another whirl, and report back, I
would be most appreciative.

 I'm guessing zoneadm(1M)'s call to pax(1) with -a pax_archive is broken
 and zoneadm(1M)'s underlying use of cpio(1) with -d zone/root has the
 filesize limit.

Sounds like reasonable guesses, but I wouldn't expect cpio would have
an issue with stream size in pass mode.  Do you have any file (including
sparse files) with a size  4 GB?

-- 
Mike Gerdts
Solaris Core OS / Zones
___
zones-discuss mailing list
zones-discuss@opensolaris.org