On 08/18/10 12:55 PM, Ian Collins wrote:
On 08/19/10 05:56 AM, Robert Hartzell wrote:
On 08/17/10 03:28 PM, Ian Collins wrote:
On 08/18/10 09:18 AM, Robert Hartzell wrote:
I have 2 zones on a disk that I have mounted from a dead system.

bertha/zones 6.86G 126G 24K /mnt/export/zones
bertha/zones/bz1 6.05G 126G 24K /mnt/export/zones/bz1
bertha/zones/bz1/ROOT 6.05G 126G 21K legacy
bertha/zones/bz1/ROOT/zbe 6.05G 126G 6.05G legacy
bertha/zones/bz2 821M 126G 24K /mnt/export/zones/bz2
bertha/zones/bz2/ROOT 821M 126G 21K legacy
bertha/zones/bz2/ROOT/zbe 821M 126G 821M legacy

Can I somehow transfer these zones from this disk to a new system?

Yes.

You can send the filesystems over to the new system and attach the
zones. See the instructions for migrating a zone for more details.

One step that wasn't in the instructions is the use of the -d option to
attach a zone that wasn't detached, so you want something like:

zoneadm -z bz1 attach -d bertha/zones/bz1/ROOT/zbe


That didn't work because the zone data set isn't mounted completely
and I can't figure out how to get it mounted. I'm trying to get the
disk to boot but seems to be stuck at:

What exactly didn't work?

You shouldn't have to mount anything for the steps outlined above to work.


Ian, sorry it took a while to get back to you. When I import the pool this is what i get.

pfexec zpool import -R /mnt bertha

ls /mnt
bertha  export  var

zfs list | grep bertha
bertha                      102G   126G    84K  /mnt/bertha
bertha/ROOT                 34.6G   126G    19K  legacy
bertha/ROOT/snv_134         34.6G   126G  10.9G  /mnt
bertha/Vbox                 46.9G   126G  46.9G  /mnt/export/Vbox
bertha/dump                 2.00G   126G  2.00G  -
bertha/export               8.09G   126G    31K  /mnt/export
bertha/export/home          8.09G  51.9G  8.01G  /mnt/export/home
bertha/mail                 1.58M  5.00G  1.16M  /mnt/var/mail
bertha/swap                 4G   130G   181M  -
bertha/zones                6.86G   126G    24K  /mnt/export/zones
bertha/zones/bz1            6.05G   126G    24K  /mnt/export/zones/bz1
bertha/zones/bz1/ROOT       6.05G   126G    21K  legacy
bertha/zones/bz1/ROOT/zbe   6.05G   126G  6.05G  legacy
bertha/zones/bz2            821M   126G    24K  /mnt/export/zones/bz2
bertha/zones/bz2/ROOT       821M   126G    21K  legacy
bertha/zones/bz2/ROOT/zbe   821M   126G   821M  legacy

pfexec zoneadm -z bz1 attach -d bertha/zones/bz1/ROOT/zbe
Log File: /var/tmp/bz1.attach_log.bgaqcT
ERROR: Unable to create the zone's ZFS dataset.

pfexec cat /var/tmp/bz1.attach_log.bgaqcT
[Wednesday, August 25, 2010 10:34:53 AM MST] Log File: /var/tmp/bz1.attach_log.bgaqcT [Wednesday, August 25, 2010 10:34:54 AM MST] A ZFS file system was created for the zone.

I think the problem is that there is no actual data available after the pool is imported because the mount points are set to legacy

zfs list | grep bz1
bertha/zones/bz1            6.05G   126G    24K  /mnt/export/zones/bz1
bertha/zones/bz1/ROOT       6.05G   126G    21K  legacy
bertha/zones/bz1/ROOT/zbe   6.05G   126G  6.05G  legacy

ls -R /mnt/export/zones
/mnt/export/zones:
bz1  bz2

/mnt/export/zones/bz1:
dev  root

/mnt/export/zones/bz1/dev:

/mnt/export/zones/bz1/root:

/mnt/export/zones/bz2:
dev  root

/mnt/export/zones/bz2/dev:

/mnt/export/zones/bz2/root:


--
  Robert Hartzell
b...@rwhartzell.net
  RwHartzell.Net
_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org

Reply via email to