Advertisements

Tag Archives: rmfs

Removing jfs2 filesystem

Removing filesystem /tsmdbtmp

root@aix:/ # df -m
Filesystem MB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 5120.00 4061.67 21% 15690 2% /
/dev/hd2 5120.00 1654.30 68% 62483 14% /usr
/dev/hd9var 4096.00 1206.40 71% 13476 5% /var
/dev/hd3 4096.00 2477.13 40% 3112 1% /tmp
/dev/hd1 10752.00 9897.09 8% 266 1% /home
/dev/hd11admin 512.00 511.57 1% 5 1% /admin
/proc – – – – – /proc
/dev/hd10opt 6144.00 2451.30 61% 45594 7% /opt
/dev/livedump 512.00 511.31 1% 5 1% /var/adm/ras/livedump
/dev/fslv01 1024.00 1020.62 1% 560 1% /usr/users
/dev/fslv02 2048.00 1693.61 18% 70 1% /local
/dev/fslv03 20480.00 8860.54 57% 38450 2% /usr/software/oracle
/dev/fslv04 51200.00 27043.68 48% 17670 1% /bkpcvrd
/dev/fslv05 2048.00 1948.29 5% 89 1% /audit
/dev/fslv06 234592.00 130406.19 45% 81 1% /usr/oradata/orarvt1
/dev/fslv07 6144.00 6142.74 1% 3 1% /home/db2inst1
/dev/fslv08 511904.00 511825.50 1% 4 1% /tsmdbtmp

Remove the filesystem

root@aix:/ # rmfs -r /tsmdbtmp

Checking logical volume, volume group and physical volume information

root@aix:/ # lslv fslv08
LOGICAL VOLUME: fslv08 VOLUME GROUP: tsmdbtmp
LV IDENTIFIER: 00c94ad400004c000000015d801914eb.2 PERMISSION: read/write
VG STATE: active/complete LV STATE: closed/syncd
TYPE: jfs2 WRITE VERIFY: off
MAX LPs: 15997 PP SIZE: 32 megabyte(s)
COPIES: 1 SCHED POLICY: parallel
LPs: 15997 PPs: 15997
STALE PPs: 0 BB POLICY: relocatable
INTER-POLICY: minimum RELOCATABLE: yes
INTRA-POLICY: middle UPPER BOUND: 2
MOUNT POINT: /tsmdbtmp LABEL: /tsmdbtmp
MIRROR WRITE CONSISTENCY: on/ACTIVE
EACH LP COPY ON A SEPARATE PV ?: yes
Serialize IO ?: NO
INFINITE RETRY: no

Checking volume group tsmdbtmp

root@aix:/ # lsvg tsmdbtmp
VOLUME GROUP: tsmdbtmp VG IDENTIFIER: 00c94ad400004c000000015d801914eb
VG STATE: active PP SIZE: 32 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 15999 (511968 megabytes)
MAX LVs: 256 FREE PPs: 1 (32 megabytes)
LVs: 2 USED PPs: 15998 (511936 megabytes)
OPEN LVs: 0 QUORUM: 2 (Enabled)
TOTAL PVs: 1 VG DESCRIPTORS: 2
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 1 AUTO ON: yes
MAX PPs per VG: 32512
MAX PPs per PV: 16256 MAX PVs: 2
LTG size (Dynamic): 256 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable
PV RESTRICTION: none INFINITE RETRY: no
DISK BLOCK SIZE: 512 CRITICAL VG: no

Listing physical volumes

root@aix:/ # lspv
hdisk0 00c94ad454a2d4c5 rootvg active
hdisk1 00c94ad45808a18f rootvg active
hdisk3 00c94ad4229190d8 tsmpoolvg active
hdisk21 00ce196f4b9604c3 aplicvg active
hdisk22 00ce196f418e3f6d aplicvg active
hdisk44 00c94ad4c75dfb09 aplicvg active
hdisk2 none None
hdisk57 00c94ad481c4f2aa aplicvg active
hdisk55 00c94ad4f99f7480 tsm55dbvg active
hdisk56 00c94ad4f99f2d43 tsm55logvg active
hdisk4 00c94ad4801882d5 tsmdbtmp active

Checking if there is an active logical volume

root@aix:/ # lsvg -l tsmdbtmp
tsmdbtmp:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
loglv00 jfs2log 1 1 1 closed/syncd N/A
fslv08 jfs2 15997 15997 1 closed/syncd /tsmdbtmp

Deactivating a volume group and removing disk

root@aix:/ # varyoffvg tsmdbtmp

I need to return the disk to storage. Removing device from system

root@aix:/ # rmdev -dl hdisk4
hdisk4 deleted

Advertisements
%d bloggers like this: