Re: [zones-discuss] ERROR: the zonepath must be a ZFS dataset.

2011-09-07 Thread Mike Gerdts
On Wed 07 Sep 2011 at 07:42AM, Paul Kraus wrote:
> On Tue, Sep 6, 2011 at 5:11 PM, Mike Gerdts  wrote:
> 
> >> 3)zfs dataset requirement
> >
> > How does this negatively impact you or other users?  As of Solaris 11
> > Express, this requirement means that you have to run 'zfs create' once
> > to create a ZFS filesystem that will be the parent of an arbitrry number
> > of zones.
> >
> > I personally would not advocate a configuration where each zone is not
> > on its own file system because a disk hog in one zone can deny service
> > to other zones.
> 
> Be very careful here. If you allocate all of your Zones from a
> single zpool and do NOT use quotas (and reservations) you can have one
> Zone run the others out of disk space. Does the automatic (under the
> covers) zfs create in Solaris 11 also automate setting reasonable
> quotas and reservations ?
> 
> I don't want folks who are less familiar with ZFS to make that mistake.

Very good point - thanks for making it.

> 
> > While I was working for a Fortune 10 company and
> > introduced zones early in Solaris 10's life, I ensured that every zone
> > had its own file system on a SVM soft partition.  This approach worked
> > well for many years, but took a significant amount of effort to
> > automate.  The integration of ZFS and Zones simplifies this type of
> > architecture greatly.
> 
> We have used almost exclusively sparse root zones; for the space
> efficiency, the global patching model, and the security of a read only
> OS. I will be sorry to see the option of a sparse root zone go away.

I understand your concerns here and I look forward to the day that I can
talk about what Solaris 11 has to offer to address them.

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


Re: [zones-discuss] ERROR: the zonepath must be a ZFS dataset.

2011-09-07 Thread LaoTsao
this is old but interesting blog on sparse zone in opensolaris / solaris 11
http://www.eecis.udel.edu/~bmiller/blog/2010/03/15/sparse-zones-not-supported-in-opensolaris/

Sent from my iPad
Hung-Sheng Tsao ( LaoTsao) Ph.D

On Sep 7, 2011, at 7:42, Paul Kraus  wrote:

> On Tue, Sep 6, 2011 at 5:11 PM, Mike Gerdts  wrote:
> 
>>> 3)zfs dataset requirement
>> 
>> How does this negatively impact you or other users?  As of Solaris 11
>> Express, this requirement means that you have to run 'zfs create' once
>> to create a ZFS filesystem that will be the parent of an arbitrry number
>> of zones.
>> 
>> I personally would not advocate a configuration where each zone is not
>> on its own file system because a disk hog in one zone can deny service
>> to other zones.
> 
>Be very careful here. If you allocate all of your Zones from a
> single zpool and do NOT use quotas (and reservations) you can have one
> Zone run the others out of disk space. Does the automatic (under the
> covers) zfs create in Solaris 11 also automate setting reasonable
> quotas and reservations ?
> 
>I don't want folks who are less familiar with ZFS to make that mistake.
> 
>>  While I was working for a Fortune 10 company and
>> introduced zones early in Solaris 10's life, I ensured that every zone
>> had its own file system on a SVM soft partition.  This approach worked
>> well for many years, but took a significant amount of effort to
>> automate.  The integration of ZFS and Zones simplifies this type of
>> architecture greatly.
> 
>We have used almost exclusively sparse root zones; for the space
> efficiency, the global patching model, and the security of a read only
> OS. I will be sorry to see the option of a sparse root zone go away.
> 
> -- 
> {1-2-3-4-5-6-7-}
> Paul Kraus
> -> Senior Systems Architect, Garnet River ( http://www.garnetriver.com/ )
> -> Sound Designer: Frankenstein, A New Musical
> (http://www.facebook.com/event.php?eid=123170297765140)
> -> Sound Coordinator, Schenectady Light Opera Company (
> http://www.sloctheater.org/ )
> -> Technical Advisor, RPI Players
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] ERROR: the zonepath must be a ZFS dataset.

2011-09-07 Thread Paul Kraus
On Tue, Sep 6, 2011 at 5:11 PM, Mike Gerdts  wrote:

>> 3)zfs dataset requirement
>
> How does this negatively impact you or other users?  As of Solaris 11
> Express, this requirement means that you have to run 'zfs create' once
> to create a ZFS filesystem that will be the parent of an arbitrry number
> of zones.
>
> I personally would not advocate a configuration where each zone is not
> on its own file system because a disk hog in one zone can deny service
> to other zones.

Be very careful here. If you allocate all of your Zones from a
single zpool and do NOT use quotas (and reservations) you can have one
Zone run the others out of disk space. Does the automatic (under the
covers) zfs create in Solaris 11 also automate setting reasonable
quotas and reservations ?

I don't want folks who are less familiar with ZFS to make that mistake.

> While I was working for a Fortune 10 company and
> introduced zones early in Solaris 10's life, I ensured that every zone
> had its own file system on a SVM soft partition.  This approach worked
> well for many years, but took a significant amount of effort to
> automate.  The integration of ZFS and Zones simplifies this type of
> architecture greatly.

We have used almost exclusively sparse root zones; for the space
efficiency, the global patching model, and the security of a read only
OS. I will be sorry to see the option of a sparse root zone go away.

-- 
{1-2-3-4-5-6-7-}
Paul Kraus
-> Senior Systems Architect, Garnet River ( http://www.garnetriver.com/ )
-> Sound Designer: Frankenstein, A New Musical
(http://www.facebook.com/event.php?eid=123170297765140)
-> Sound Coordinator, Schenectady Light Opera Company (
http://www.sloctheater.org/ )
-> Technical Advisor, RPI Players
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] ERROR: the zonepath must be a ZFS dataset.

2011-09-06 Thread Hung-Sheng Tsao (Lao Tsao 老曹) Ph.D.



On 9/6/2011 5:11 PM, Mike Gerdts wrote:

On Tue 06 Sep 2011 at 04:37PM, "Hung-Sheng Tsao (Lao Tsao ??) Ph.D." wrote:

current s10 zone user will not  be unhappy when  move to s11
1)there is no sparse zone in s11 (yet)
2)there is no v2v from s10 zone to s11 zone (yet)

That is not correct.

http://download.oracle.com/docs/cd/E19963-01/html/821-1460/gjogf.html

thx, Somehow I miss this chapter, I will test it out



3)zfs dataset requirement

How does this negatively impact you or other users?  As of Solaris 11
Express, this requirement means that you have to run 'zfs create' once
to create a ZFS filesystem that will be the parent of an arbitrry number
of zones.

I personally would not advocate a configuration where each zone is not
on its own file system because a disk hog in one zone can deny service
to other zones.  While I was working for a Fortune 10 company and
introduced zones early in Solaris 10's life, I ensured that every zone
had its own file system on a SVM soft partition.  This approach worked
well for many years, but took a significant amount of effort to
automate.  The integration of ZFS and Zones simplifies this type of
architecture greatly.

A reason that it is of great benefit is that with the new way it
is possible to create boot environments for each zone using ZFS clones.
The beadm + ZFS + Zones integration is much better than Solaris 10's
Live Uprade + ZFS + Zones.  Once Solaris 11 is released, I'll be happy
to talk about some other benefits of this new requirement.


4)people just does not like changes

I think that is extreme.  People that don't like changes should probably
stick to old-world trades such as blacksmithing.  People that work in
any technology-driven business depend on change to make their operations
more efficient, to serve more customers, to improve their own products,
etc.  Change without reason is bad.  Change that offers benefits is
good.

If you don't want to endure the change that Solaris 11 has to offer,
Solaris 10 is still available and will continue to be available for
quite some time - there is nothing forcing anyone off of Solaris 10 for
the next several years.


My 2c


On 9/6/2011 3:33 PM, Frank Batschulat wrote:

On Tue, 06 Sep 2011 21:27:40 +0200, LaoTsao  wrote:


interesting, IMHO, this type of change will make many many s10
users unhappy

I assume you are refering to Mike's response that zones require their own
seperate ZFS dataset going forward ? if so can you give some reasons
why this would make current s10 users unhappy when switching ?


thanks

begin:vcard
fn:Hung-Sheng Tsao (LaoTsao) , Ph.D.
n:Tsao;Hung-Sheng
org:HopBit GridComputing LLC
adr:;;17 jade ln;Denville;NJ;07834;USA
email;internet:laot...@gmail.com
title:Founder and Principal
tel;cell:9734950840
note;quoted-printable:HopBit GridComputing=0D=0A=
=0D=0A=
HPC: Arch and deaign and setup=0D=0A=
Rockscluster:Setup and Configuration=0D=0A=
Oracle GridEngine:Setup and Configuration=0D=0A=
Oracle Cluster: Arch and Design=0D=0A=
Oracle Solaris: Jumpstart, Zone etc=0D=0A=
Oracle Exadata, Exalogic, SPARc Supercluster Arch and Design=0D=0A=

url:http://laotsao.wordpress.com/
version:2.1
end:vcard

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


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

Re: [zones-discuss] ERROR: the zonepath must be a ZFS dataset.

2011-09-06 Thread Mike Gerdts
On Tue 06 Sep 2011 at 04:37PM, "Hung-Sheng Tsao (Lao Tsao ??) Ph.D." wrote:
> current s10 zone user will not  be unhappy when  move to s11
> 1)there is no sparse zone in s11 (yet)
> 2)there is no v2v from s10 zone to s11 zone (yet)

That is not correct.

http://download.oracle.com/docs/cd/E19963-01/html/821-1460/gjogf.html

> 3)zfs dataset requirement

How does this negatively impact you or other users?  As of Solaris 11
Express, this requirement means that you have to run 'zfs create' once
to create a ZFS filesystem that will be the parent of an arbitrry number
of zones.

I personally would not advocate a configuration where each zone is not
on its own file system because a disk hog in one zone can deny service
to other zones.  While I was working for a Fortune 10 company and
introduced zones early in Solaris 10's life, I ensured that every zone
had its own file system on a SVM soft partition.  This approach worked
well for many years, but took a significant amount of effort to
automate.  The integration of ZFS and Zones simplifies this type of
architecture greatly.

A reason that it is of great benefit is that with the new way it
is possible to create boot environments for each zone using ZFS clones.
The beadm + ZFS + Zones integration is much better than Solaris 10's
Live Uprade + ZFS + Zones.  Once Solaris 11 is released, I'll be happy
to talk about some other benefits of this new requirement.

> 4)people just does not like changes

I think that is extreme.  People that don't like changes should probably
stick to old-world trades such as blacksmithing.  People that work in
any technology-driven business depend on change to make their operations
more efficient, to serve more customers, to improve their own products,
etc.  Change without reason is bad.  Change that offers benefits is
good.

If you don't want to endure the change that Solaris 11 has to offer,
Solaris 10 is still available and will continue to be available for
quite some time - there is nothing forcing anyone off of Solaris 10 for
the next several years.

> 
> My 2c
> 
> 
> On 9/6/2011 3:33 PM, Frank Batschulat wrote:
> >On Tue, 06 Sep 2011 21:27:40 +0200, LaoTsao  wrote:
> >
> >>interesting, IMHO, this type of change will make many many s10
> >>users unhappy
> >
> >I assume you are refering to Mike's response that zones require their own
> >seperate ZFS dataset going forward ? if so can you give some reasons
> >why this would make current s10 users unhappy when switching ?
> >
> >
> >thanks

> begin:vcard
> fn:Hung-Sheng Tsao (LaoTsao) , Ph.D.
> n:Tsao;Hung-Sheng 
> org:HopBit GridComputing LLC
> adr:;;17 jade ln;Denville;NJ;07834;USA
> email;internet:laot...@gmail.com
> title:Founder and Principal
> tel;cell:9734950840
> note;quoted-printable:HopBit GridComputing=0D=0A=
>   =0D=0A=
>   HPC: Arch and deaign and setup=0D=0A=
>   Rockscluster:Setup and Configuration=0D=0A=
>   Oracle GridEngine:Setup and Configuration=0D=0A=
>   Oracle Cluster: Arch and Design=0D=0A=
>   Oracle Solaris: Jumpstart, Zone etc=0D=0A=
>   Oracle Exadata, Exalogic, SPARc Supercluster Arch and Design=0D=0A=
>   
> url:http://laotsao.wordpress.com/
> version:2.1
> end:vcard
> 

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


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


Re: [zones-discuss] ERROR: the zonepath must be a ZFS dataset.

2011-09-06 Thread James Carlson
Hung-Sheng Tsao (Lao Tsao ??) Ph.D. wrote:
> current s10 zone user will not  be unhappy when  move to s11
> 1)there is no sparse zone in s11 (yet)
> 2)there is no v2v from s10 zone to s11 zone (yet)
> 3)zfs dataset requirement
> 4)people just does not like changes

Given the changes in packaging and patching between S10 and S11 and
(last I checked) lack of a direct upgrade path from one to the other,
I'd be really surprised if the above issues were all that significant.

In particular, the ZFS-based upgrade mechanism is substantially easier
to use and works much better than what we had for S10.  Forcing users to
put zones on distinct ZFS datasets seems to me like a trivial matter
that ends up simplifying and providing a lot of benefit.

-- 
James Carlson 42.703N 71.076W 
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] ERROR: the zonepath must be a ZFS dataset.

2011-09-06 Thread Hung-Sheng Tsao (Lao Tsao 老曹) Ph.D.

current s10 zone user will not  be unhappy when  move to s11
1)there is no sparse zone in s11 (yet)
2)there is no v2v from s10 zone to s11 zone (yet)
3)zfs dataset requirement
4)people just does not like changes

My 2c


On 9/6/2011 3:33 PM, Frank Batschulat wrote:

On Tue, 06 Sep 2011 21:27:40 +0200, LaoTsao  wrote:

interesting, IMHO, this type of change will make many many s10 users 
unhappy


I assume you are refering to Mike's response that zones require their own
seperate ZFS dataset going forward ? if so can you give some reasons
why this would make current s10 users unhappy when switching ?


thanks
<>___
zones-discuss mailing list
zones-discuss@opensolaris.org

Re: [zones-discuss] ERROR: the zonepath must be a ZFS dataset.

2011-09-06 Thread Frank Batschulat

On Tue, 06 Sep 2011 21:27:40 +0200, LaoTsao  wrote:

interesting, IMHO, this type of change will make many many s10 users  
unhappy


I assume you are refering to Mike's response that zones require their own
seperate ZFS dataset going forward ? if so can you give some reasons
why this would make current s10 users unhappy when switching ?


thanks
--
frankB

Solaris Core OS Development, Zones Team
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] ERROR: the zonepath must be a ZFS dataset.

2011-09-06 Thread LaoTsao
thx
interesting, IMHO, this type of change will make many many s10 users unhappy

Sent from my iPad
Hung-Sheng Tsao ( LaoTsao) Ph.D

On Sep 6, 2011, at 15:19, Mike Gerdts  wrote:

> On Tue 06 Sep 2011 at 03:00PM, "Hung-Sheng Tsao (Lao Tsao ??) Ph.D." wrote:
>> 
>> I just did the same on s10u9 vbox
>> bash-3.00# zfs list
> [snip]
>> bash-3.00# zoneadm -z test1 install
> 
> If zoneadm creates a dataset for this zone, at this point you would see:
> 
>  A ZFS file system has been created for this zone.
> 
>> Preparing to install zone .
>> Creating list of files to copy from the global zone.
>> Copying <16658> files to the zone.
>> Initializing zone product registry.
>> Determining zone package initialization order.
>> Preparing to initialize <1128> packages on the zone.
>> Initialized <1128> packages on zone.
>> Zone  is initialized.
>> The file 
>> contains a log of the zone installation.
> 
> Solaris 10 allows zones to have their own ZFS datasets.  Solaris 11
> Express and OpenSolaris require zones to have their own ZFS datasets.
> The error messages provided by the original poster (and the prompt)
> suggest that Solaris 11 Express or a previous release of OpenSolaris was
> used.
> 
>> 
>> On 9/6/2011 1:39 PM, Mike Gerdts wrote:
>>> On Tue 06 Sep 2011 at 10:09AM, Jeremy Loukinas wrote:
 First:
 root@opensolaris:~# zfs mount
 rpool/ROOT/opensolaris-1/
 rpool/export/export
 rpool/export/home   /export/home
 rpool   /rpool
 zpool/zones /zones
 zpool   /zpool
 root@opensolaris:~#
 
 Second:
 
 root@opensolaris:~# zonecfg -z test2
 test2: No such zone configured
 Use 'create' to begin configuring a new zone.
 zonecfg:test2>  create
 zonecfg:test2>  set zonepath=/zones/roots/test2
 zonecfg:test2>  exit
 root@opensolaris:~# zoneadm -z test2 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.
 root@opensolaris:~#
 
 Am i missing something here? I found another post but it was from someone 
 trying to create a zone in rpool..
>>> If you did:
>>> 
>>>zonecfg -z test2 'set zonepath=/zones/test2'
>>> 
>>> all would be well.  Alternatively, if you really want the zonepath to
>>> /zones/roots/test2:
>>> 
>>>zfs create zones/roots
>>> 
> 
>> begin:vcard
>> fn:Hung-Sheng Tsao (LaoTsao) , Ph.D.
>> n:Tsao;Hung-Sheng 
>> org:HopBit GridComputing LLC
>> adr:;;17 jade ln;Denville;NJ;07834;USA
>> email;internet:laot...@gmail.com
>> title:Founder and Principal
>> tel;cell:9734950840
>> note;quoted-printable:HopBit GridComputing=0D=0A=
>>=0D=0A=
>>HPC: Arch and deaign and setup=0D=0A=
>>Rockscluster:Setup and Configuration=0D=0A=
>>Oracle GridEngine:Setup and Configuration=0D=0A=
>>Oracle Cluster: Arch and Design=0D=0A=
>>Oracle Solaris: Jumpstart, Zone etc=0D=0A=
>>Oracle Exadata, Exalogic, SPARc Supercluster Arch and Design=0D=0A=
>>
>> url:http://laotsao.wordpress.com/
>> version:2.1
>> end:vcard
>> 
> 
>> ___
>> zones-discuss mailing list
>> zones-discuss@opensolaris.org
> 
> 
> -- 
> Mike Gerdts
> Solaris Core OS / Zones
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] ERROR: the zonepath must be a ZFS dataset.

2011-09-06 Thread Mike Gerdts
On Tue 06 Sep 2011 at 03:00PM, "Hung-Sheng Tsao (Lao Tsao ??) Ph.D." wrote:
> 
> I just did the same on s10u9 vbox
> bash-3.00# zfs list
[snip]
> bash-3.00# zoneadm -z test1 install

If zoneadm creates a dataset for this zone, at this point you would see:

  A ZFS file system has been created for this zone.

> Preparing to install zone .
> Creating list of files to copy from the global zone.
> Copying <16658> files to the zone.
> Initializing zone product registry.
> Determining zone package initialization order.
> Preparing to initialize <1128> packages on the zone.
> Initialized <1128> packages on zone.
> Zone  is initialized.
> The file 
> contains a log of the zone installation.

Solaris 10 allows zones to have their own ZFS datasets.  Solaris 11
Express and OpenSolaris require zones to have their own ZFS datasets.
The error messages provided by the original poster (and the prompt)
suggest that Solaris 11 Express or a previous release of OpenSolaris was
used.

> 
> On 9/6/2011 1:39 PM, Mike Gerdts wrote:
> >On Tue 06 Sep 2011 at 10:09AM, Jeremy Loukinas wrote:
> >>First:
> >>root@opensolaris:~# zfs mount
> >>rpool/ROOT/opensolaris-1/
> >>rpool/export/export
> >>rpool/export/home   /export/home
> >>rpool   /rpool
> >>zpool/zones /zones
> >>zpool   /zpool
> >>root@opensolaris:~#
> >>
> >>Second:
> >>
> >>root@opensolaris:~# zonecfg -z test2
> >>test2: No such zone configured
> >>Use 'create' to begin configuring a new zone.
> >>zonecfg:test2>  create
> >>zonecfg:test2>  set zonepath=/zones/roots/test2
> >>zonecfg:test2>  exit
> >>root@opensolaris:~# zoneadm -z test2 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.
> >>root@opensolaris:~#
> >>
> >>Am i missing something here? I found another post but it was from someone 
> >>trying to create a zone in rpool..
> >If you did:
> >
> > zonecfg -z test2 'set zonepath=/zones/test2'
> >
> >all would be well.  Alternatively, if you really want the zonepath to
> >/zones/roots/test2:
> >
> > zfs create zones/roots
> >

> begin:vcard
> fn:Hung-Sheng Tsao (LaoTsao) , Ph.D.
> n:Tsao;Hung-Sheng 
> org:HopBit GridComputing LLC
> adr:;;17 jade ln;Denville;NJ;07834;USA
> email;internet:laot...@gmail.com
> title:Founder and Principal
> tel;cell:9734950840
> note;quoted-printable:HopBit GridComputing=0D=0A=
>   =0D=0A=
>   HPC: Arch and deaign and setup=0D=0A=
>   Rockscluster:Setup and Configuration=0D=0A=
>   Oracle GridEngine:Setup and Configuration=0D=0A=
>   Oracle Cluster: Arch and Design=0D=0A=
>   Oracle Solaris: Jumpstart, Zone etc=0D=0A=
>   Oracle Exadata, Exalogic, SPARc Supercluster Arch and Design=0D=0A=
>   
> url:http://laotsao.wordpress.com/
> version:2.1
> end:vcard
> 

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


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


Re: [zones-discuss] ERROR: the zonepath must be a ZFS dataset.

2011-09-06 Thread Hung-Sheng Tsao (Lao Tsao 老曹) Ph.D.


I just did the same on s10u9 vbox
bash-3.00# zfs list
NAME   USED  AVAIL  REFER  MOUNTPOINT
rpool 22.1G  7.88G34K  /rpool
rpool/ROOT12.1G  7.88G21K  legacy
rpool/ROOT/s10x_u9wos_13  12.1G  7.88G  12.1G  /
rpool/dump1.00G  7.88G  1.00G  -
rpool/export  7.51G  7.88G  5.91G  /export
rpool/export/home 1.60G  7.88G  1.60G  /export/home
rpool/swap1.50G  7.88G  1.50G  -
zpool 5.11G  14.4G21K  /zpool
zpool/zones   5.11G  14.4G  5.11G  /zones
bash-3.00# zonecfg -z test1
test1: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:test1> create
zonecfg:test1> set zonepath=/zones/roots/test1
zonecfg:test1> verify
zonecfg:test1> commit
zonecfg:test1> exit
bash-3.00# zoneadm -z test1 install
Preparing to install zone .
Creating list of files to copy from the global zone.
Copying <16658> files to the zone.
Initializing zone product registry.
Determining zone package initialization order.
Preparing to initialize <1128> packages on the zone.
Initialized <1128> packages on zone.
Zone  is initialized.
The file  
contains a log of the zone installation.




On 9/6/2011 1:39 PM, Mike Gerdts wrote:

On Tue 06 Sep 2011 at 10:09AM, Jeremy Loukinas wrote:

First:
root@opensolaris:~# zfs mount
rpool/ROOT/opensolaris-1/
rpool/export/export
rpool/export/home   /export/home
rpool   /rpool
zpool/zones /zones
zpool   /zpool
root@opensolaris:~#

Second:

root@opensolaris:~# zonecfg -z test2
test2: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:test2>  create
zonecfg:test2>  set zonepath=/zones/roots/test2
zonecfg:test2>  exit
root@opensolaris:~# zoneadm -z test2 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.
root@opensolaris:~#

Am i missing something here? I found another post but it was from someone 
trying to create a zone in rpool..

If you did:

zonecfg -z test2 'set zonepath=/zones/test2'

all would be well.  Alternatively, if you really want the zonepath to
/zones/roots/test2:

zfs create zones/roots

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

Re: [zones-discuss] ERROR: the zonepath must be a ZFS dataset.

2011-09-06 Thread Mike Gerdts
On Tue 06 Sep 2011 at 10:09AM, Jeremy Loukinas wrote:
> First:
> root@opensolaris:~# zfs mount
> rpool/ROOT/opensolaris-1/
> rpool/export/export
> rpool/export/home   /export/home
> rpool   /rpool
> zpool/zones /zones
> zpool   /zpool
> root@opensolaris:~#
> 
> Second:
> 
> root@opensolaris:~# zonecfg -z test2
> test2: No such zone configured
> Use 'create' to begin configuring a new zone.
> zonecfg:test2> create
> zonecfg:test2> set zonepath=/zones/roots/test2
> zonecfg:test2> exit
> root@opensolaris:~# zoneadm -z test2 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.
> root@opensolaris:~#
> 
> Am i missing something here? I found another post but it was from someone 
> trying to create a zone in rpool..

If you did:

zonecfg -z test2 'set zonepath=/zones/test2'

all would be well.  Alternatively, if you really want the zonepath to
/zones/roots/test2:

zfs create zones/roots

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


Re: [zones-discuss] ERROR: the zonepath must be a ZFS dataset.

2011-09-06 Thread Hung-Sheng Tsao (Lao Tsao 老曹) Ph.D.



On 9/6/2011 1:09 PM, Jeremy Loukinas wrote:

First:
root@opensolaris:~# zfs mount
rpool/ROOT/opensolaris-1/
rpool/export/export
rpool/export/home   /export/home
rpool   /rpool
zpool/zones /zones
zpool   /zpool
root@opensolaris:~#

Second:

root@opensolaris:~# zonecfg -z test2
test2: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:test2>  create
zonecfg:test2>  set zonepath=/zones/roots/test2

may be add commit

zonecfg:test2>  exit
root@opensolaris:~# zoneadm -z test2 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.
root@opensolaris:~#

Am i missing something here? I found another post but it was from someone 
trying to create a zone in rpool..
<>___
zones-discuss mailing list
zones-discuss@opensolaris.org