zoneadm clone does not work in b104 with legacy pool mount

Bug #309049 reported by Tim Spriggs
6
Affects Status Importance Assigned to Milestone
Nexenta Operating System
New
Undecided
Unassigned

Bug Description

It's possible the following patch breaks the previously working functionality:

http://cvs.opensolaris.org/source/diff/onnv/onnv-gate/usr/src/cmd/zoneadm/zfs.c?r2=%2Fonnv%2Fonnv-gate%2Fusr%2Fsrc%2Fcmd%2Fzoneadm%2Fzfs.c%407093&r1=%2Fonnv%2Fonnv-gate%2Fusr%2Fsrc%2Fcmd%2Fzoneadm%2Fzfs.c%407089

This patch closed the following bug:

http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6716853

but has broken current functionality when zones are created on a dataset under syspool:

# zfs create mountpoint=/zones syspool/zones
# zonecfg -z test_zone
...
set zonepath=/zones/test_zone
...
# zoneadm -z test_zone clone base_zone
Reserving zone: test_zone
setting up zone: test_zone
Copying /zones/base_zone...zoneadm: zone 'test_zone': 'copy' failed with exit code 64.

The copy failed.
More information can be found in /var/log/zoneAAAmiaa4a

# cat /var/log/zoneAAAmiaa4a
/usr/bin/cpio: invalid option -- P
Try `cpio --help' or `cpio --usage' for more information.

Revision history for this message
Stas Sușcov (sushkov) wrote :

Subscribing.
I'm trying to deploy some devzones and it fails stupidly:
---
$ devzone_free
Error: no zones are allocated to you.
stas@kyle:~$ devzone_create
Reserving zone: stas
setting up zone: stas
Cloning snapshot zones/base_zone@SUNWzone1
cannot create ZFS dataset zones/stas: dataset already exists
Copying /zones/base_zone...zoneadm: zone 'stas': 'copy' failed with exit code 64.

The copy failed.
More information can be found in /var/log/zoneAAA0YaqsF

$ cat /var/log/zoneAAA0YaqsF
/usr/bin/cpio: invalid option -- P
Try `cpio --help' or `cpio --usage' for more information.
---

Revision history for this message
Tim Spriggs (tim-tajinc) wrote :

As an update, it turns out that the pool containing the zone filesystems needs a mountpoint for the pool. Setting a mountpoint for syspool allows zone clones (and thus devzone) to work properly:

zfs set mountpoint=/syspool syspool

I'm not sure what the ramifications are for tools like apt-clone or bootadm in this scenario. In any case, this is a better work-around until the real issue with zoneadm is fixed.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.