Tuesday, March 18, 2008

AIX How to remove file systems

root:/ # df -k | grep netopz
/dev/netopz 49020928 14130920 72% 4180 1% /apps/prd/netopz
/dev/db_netopzexprt1 36044800 34913404 4% 17 1% /db/netopzexpor ts1
/dev/db_netopzexprt2 30408704 29454204 4% 17 1% /db/netopzexpor ts2
root:/ #
root:/ # df -k | grep netopzexport
/dev/db_netopzexprt1 36044800 34913404 4% 17 1% /db/netopzexports1
/dev/db_netopzexprt2 30408704 29454204 4% 17 1% /db/netopzexports2
root:/ # umount /db/netopzexports1
root:/ # umount /db/netopzexports2

root:/ # rmlv -f db_netopzexprt1
rmlv: Logical volume db_netopzexprt1 is removed.
root:/ # rmlv -f db_netopzexprt2
rmlv: Logical volume db_netopzexprt2 is removed.
root:/ # lsfs | grep netopzexports
/dev/db_netopzexprt1 -- /db/netopzexports1 jfs -- rw yes no
/dev/db_netopzexprt2 -- /db/netopzexports2 jfs -- rw yes no
root:/ # grep netopzexport /etc/filesystems
/db/netopzexports1:
/db/netopzexports2:
root:/ #
root:/ # ls -l /etc/filesystems
-rw-rw-r-- 1 root system 13487 Mar 16 13:21 /etc/filesystems
root:/ #
root:/ # rmfs /db/netopzexports1
root:/ # rmfs /db/netopzexports2
root:/ # lsfs | grep netopzexport
root:/ #

No comments:

UNIX: How to print column nicely using printf

[user@hostfwnms1-oam tmp]# cat b.sh printf "%-26s %-19s %-8s %-8s %-s %-s\n" HOSTNAME IP PING SNMPWALK 0-ok 1-fail for i in `cat n...