Frank; Firstly, thanks very much for the pointers!
Is there a way to set cachefile=none in a zpool that has already been created? I also googled the -u/-U option and thanks very much for the tip! Two questions; Firstly, can I create another filesystem (dataset) within the webpool e.g. say webpool/webdata and assigned it as a dataset to the webzone? Would that be considered a bad practice as it is a form cascading mount? Warmest Regards Steven Sim On Mon, May 2, 2011 at 3:06 PM, Frank Batschulat < frank.batschu...@oracle.com> wrote: > On Mon, 02 May 2011 07:09:12 +0200, Steven Sim <unixan...@gmail.com> > wrote: > > I have been asked to create a zone on a shared LUN which will enable us >> to detach and attach the zone onto another system (exactly same hardware >> architecture). >> >> So I have create a ZFS Pool and specified the zonepath to be on root >> filesystem of that pool >> >> e.g. >> >> zfs create -m /zones/webzone webpool <san_disk> >> > > you want this: > > zpool create -o cachefile=none -m /zones/webzone webpool /dev/dsk/cXtXdX > > > The above creates a ZFS pool called "webpool" and mounts to >> /zones/webzone. >> >> I have then in zonecfg specified the following >> >> zonecfg:webzone> # zonecfg -z webzone >> webzone: No such zone configured >> Use 'create' to begin configuring a new zone. >> zonecfg:webzone> create >> zonecfg:webzone> set zonepath=/zones/webpool >> zonecfg:webzone> set ip-type=exclusive >> . >> >> Upon a need to detach, I will shutdown the zone and detach as follows .. >> >> # zoneadm -z appzone detach >> >> And then deport the ZFS Pool webpool >> >> #zpool deport webpool >> > > you want: > > zpool export webpool > > > On the other system, I would then >> >> #zpool import webpool >> > > then do: > > zoneadm -z appzone attach -u/-U > > > And start the Zone (assuming of course the zone XML file has already >> been imported and created on the 2nd node). >> >> Is the above the best way to do things? >> > > sure. that should work reasonably well. > > -- > frankB > > Solaris Core OS Development, Zones Team >
_______________________________________________ zones-discuss mailing list email@example.com