[zones-discuss] zoneadm wants more ZFS when only ZFS exists

2011-02-04 Thread Darren Reed

On a test system that is using only ZFS, I'm trying to create a zone
but it keeps failing with:
netvirt-d1 ~# zoneadm -z exclusivetestzone1 install
ERROR: the zonepath must be a ZFS dataset.
The parent directory of the zonepath must be a ZFS dataset so that the
zonepath ZFS dataset can be created properly.

I don't get it. This restriction never used to exist.

Why do I need to do something extra that is mandatory?

Further to this, there's a script on Oracle's website here:
http://download.oracle.com/docs/cd/E19963-01/821-1460/z.conf.start-1/index.html

that also fails to configure  create a zone that can be installed with 
b154 bits.


To give an example (/tmp/ozone is the script from the above page)...

/ is rpool/ROOT/solaris
# zfs create rpool/ROOT/solaris/zone
# zfs set mountpoint=/zone rpool/ROOT/solaris/zone
# /tmp/ozone 1 exclusivetestzone /zone
configuring exclusivetestzone1
installing exclusivetestzone1
setting up sysid for exclusivetestzone1
/tmp/ozone[74]: /zone/exclusivetestzone1/root/etc/sysidcfg: cannot 
create [No such file or directory]
/tmp/ozone[75]: /zone/exclusivetestzone1/root/etc/sysidcfg: cannot 
create [No such file or directory]
/tmp/ozone[76]: /zone/exclusivetestzone1/root/etc/sysidcfg: cannot 
create [No such file or directory]
/tmp/ozone[77]: /zone/exclusivetestzone1/root/etc/sysidcfg: cannot 
create [No such file or directory]
/tmp/ozone[78]: /zone/exclusivetestzone1/root/etc/sysidcfg: cannot 
create [No such file or directory]
/tmp/ozone[79]: /zone/exclusivetestzone1/root/etc/sysidcfg: cannot 
create [No such file or directory]
/tmp/ozone[80]: /zone/exclusivetestzone1/root/etc/sysidcfg: cannot 
create [No such file or directory]

Fri Feb  4 14:20:11 PST 2011
booting exclusivetestzone1
zoneadm: zone 'exclusivetestzone1': must be installed before boot.
# zoneadm -z exclusivetestzone1 uninstall
Are you sure you want to uninstall zone exclusivetestzone1 (y/[n])? y
# zoneadm -z exclusivetestzone1 install
ERROR: the zonepath must be a ZFS dataset.
The parent directory of the zonepath must be a ZFS dataset so that the
zonepath ZFS dataset can be created properly.
# cat /zone/exclusivetestzone1.config
create
set zonepath=/zone/exclusivetestzone1

As you can see from this, the parent of the zonepath is /zone and that
is a freshly created ZFS dataset. Furthermore, / which is the parent of
/zone is also a ZFS dataset. Having /zone as a directory within / and
not a dataset also results in the above error.

Between zoneadm and zonecfg, I can't see anything that instructs me on
how to resolve this. Am I missing something?

Darren

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


Re: [zones-discuss] zoneadm wants more ZFS when only ZFS exists

2011-02-04 Thread Darren Reed
So it would seem this is related to at 7010744 which implies 6726123 
needs to be fixed. It could also be a manifestation of 7010102 (if the 
submitter means slashes and not spaces.)


Can someone else confirm that?
Or is the problem I've observed different again?

Darren

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