Sunday, December 12, 2010

zonecfg - Adding new lofs filesystem

zonecfg is used to configure the zone configuration. It is used to add the resources in the zone1.xml file which is under /etc/zones/ directory.



(server1:/)# zonecfg -z zone1
zonecfg:zone1> add fs
zonecfg:zone1:fs> set dir=/application/ARC
zonecfg:zone1:fs> set special=/zones/zone1/applicationARC
zonecfg:zone1:fs> set type=lofs
zonecfg:zone1:fs> add options [rw,nodevices]
zonecfg:zone1:fs> end
zonecfg:zone1> commit
zonecfg:zone1> exit
(server1:/)#

Sub command 'add' is used to add a particular resource to the zone configuration.

'end' to end the resource specification.

'commit' confirms the changes and writes the content permanently to disk.

No comments:

Post a Comment