Sunday, January 30, 2011

Removing a filesystem from zonecfg

zonecfg to remove the filesystem added in the zone configuration fie. This will remove the fs entry from the zone.xml file.

(MyHost:/)# zonecfg -z MyZone info fs | grep Mydb
        dir: /Mydb
        special: /dev/vx/dsk/MyZone-Mydb/Mydb
        raw: /dev/vx/rdsk/MyZone-Mydb/Mydb
        dir: /Mydb/bim
        special: /dev/vx/dsk/MyZone-Mydb/Mydbbim
        raw: /dev/vx/rdsk/MyZone-Mydb/Mydbbim
        dir: /Mydb/bo
        special: /dev/vx/dsk/MyZone-Mydb/Mydbbo
        raw: /dev/vx/rdsk/MyZone-Mydb/Mydbbo
        dir: /Mydb/dbs
        special: /dev/vx/dsk/MyZone-Mydbdb/Mydbdbs
        raw: /dev/vx/rdsk/MyZone-Mydbdb/Mydbdbs
        dir: /Mydb/dbs/index
        special: /dev/vx/dsk/MyZone-Mydbdb/Mydbdbsindex
        raw: /dev/vx/rdsk/MyZone-Mydbdb/Mydbdbsindex
        dir: /Mydb/dbs/arch
        special: /dev/vx/dsk/MyZone-Mydbdb/Mydbdbsarch
        raw: /dev/vx/rdsk/MyZone-Mydbdb/Mydbdbsarch
(MyHost:/)#
(MyHost:/)# zonecfg -z MyZone
zonecfg:MyZone> remove fs dir=/Mydb/dbs/arch
zonecfg:MyZone> remove fs dir=/Mydb/dbs/index
zonecfg:MyZone> remove fs dir=/Mydb/dbs
zonecfg:MyZone> remove fs dir=/Mydb/bo
zonecfg:MyZone> remove fs dir=/Mydb/bim
zonecfg:MyZone> remove fs dir=/Mydb
zonecfg:MyZone>
zonecfg:MyZone> commit
zonecfg:MyZone> exit
(MyHost:/)#
(MyHost:/)# zonecfg -z MyZone info fs | grep Mydb
(MyHost:/)#
(MyHost:/)#

1 comment: