Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unmount a file system

Status
Not open for further replies.

scient

IS-IT--Management
Oct 24, 2007
15
US
i want to remove one of filesystem /perfmgr which is reside on /usr filesystem ../usr need to be there
but i don't need /perfmgr
see here the filesystem is

/dev/lv06 12194304 10062596 25% 19 1% /usr/perfmgr

i need to unmount first and remove the logical device right ????

1.unmount /usr/perfmgr
2. rmlv /dev/lv09
3.remove this /usr/perfmgr content in /etc/filesystems

is this right procedure to remove a filesytem ....i have a doubt in second step if i remove lv09
it doesn't harm anything ???

server1:> more /etc/filesystems

/usr/perfmgr:
dev = /dev/lv09
vfs = jfs
log = /dev/loglv46
mount = false
options = rw
account = false
 
You need to unmount the file system and then remove the file system. This will automatically remove the logical volume (lv06 or lv09 there seems to be a little confusion here looks like lvo6 from df output.

I suggest the following

umount /usr/perfmgr

then use smit jfs to delete the file system this way you can see the command and learn for yourself

For anyone new to AIX using smit will do the job and using F6 key to see the commands will help you for future
 
umount /filesystem
rmfs /filesystem

the rmfs automatically removes the logical volume as well.
 
You may then want to remove the mount point so as to reduce confusion! rm -r /usr/perfmgr
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top