Difference between rmlv and rmfs

Hello everyone,

The rmfs command deletes the filesystem and the lv. the rmlv deletes only the lv. Is that correct ?

For what need we should use either rmfs or rmlv ?

Can you give examples?

Thank you.

Hi,

man rmlv
....
However, removing the logical volume does not notify the operating system that the
file system residing on it have been destroyed. The command rmfs updates the 
/etc/filesystems file. 
....

I would use "rmfs" for the filesystem and "rmlv" for the log logical volume (as far as a seperate log logical volume was defined for this filesystem)

Also you sometimes just have LVs without any FS on them like sysdump devices, raw devices, LogLVs, Paging Space. So you will use most probably rmlv to remove them.

Thank you. It's very helpful.