A
A
AUN2015-09-08 23:29:56
linux
AUN, 2015-09-08 23:29:56

LVM deleting a partition. How right?

Hey! The goal is to learn how to use LVM.
Created volume group parts, created logical volume varlog, mounted /var/log to /dev/parts/varlog ext4.
I want to delete /var/log, for this I unmounted umount /dev/parts/varlog then lvremove -f /dev/parts/varlog
I get: Logical volume parts/varlog contains a filesystem in use
How to delete?
update: lsof | grep var gave no results, as did mount | grep var

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
AUN, 2015-09-09
@AUN

Problem solved, didn't notice that I didn't kill rsyslog. He had a problem.

M
Maxim Moseychuk, 2015-09-08
@fshp

Type mount, get a list of mounted devices. Your volume may have been mounted somewhere else.

J
jcmvbkbc, 2015-09-09
@jcmvbkbc

After a successful umount, you need to deactivate the logical volume: lvchange -an /dev/parts/varlog
It is not clear from your description whether the umount was successful or not.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question