Skip to contentSkip to conversation

LV open but not mounted ?

linux-lvm paddy 3 participants 4 messages Oct 9, 2006 – Oct 11, 2006

lore
Share & tools
lore

paddy

author
#0 lore raw

I just noticed that I have a system where an LV appears to be open (as given by lvs), but I can't see it mounted anywhere, or opened by any process.

Any insights, suggestions, explanations, etc gratefully received :-)

Regards,
Paddy

Signature · 1 line
Perl 6 will give you the big knob. -- Larry Wall
#1 lore raw

Hmmm, I can see where it might be 'active', but if it's not in use, it shouldn't be open.

Some sub-lvs are marked as 'open', because they are used by the main LV (such is the case with mirroring and snapshots).

Have you tried 'lsof <path to LV>' ?

brassow

Quoted 18 lines · paddy

I just noticed that I have a system where an LV appears to be open (as given by lvs), but I can't see it mounted anywhere, or opened by any process.

Any insights, suggestions, explanations, etc gratefully received :-)

Regards,
Paddy

Signature · 7 lines
Perl 6 will give you the big knob. -- Larry Wall

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
author
#2 lore raw
Quoted 2 lines · Jonathan E Brassow

Hmmm, I can see where it might be 'active', but if it's not in use, it shouldn't be open.

It is open. lvchange -an says LV in use: not removing

but I'm drawing a blank on finding anything that is actually using it.

I'm kinda hoping someone can throw some light on what 'open' is here.

Quoted 2 lines

Some sub-lvs are marked as 'open', because they are used by the main LV (such is the case with mirroring and snapshots).

no mirrors, no snapshots :-(

I have looked through /etc/lvm/backups and can't see anything odd.

Quoted 1 line

Have you tried 'lsof <path to LV>' ?

yup, tried lsof, tried fuser, there is no nfs, got nowhere.

It's one of those things where I fully expect to have to say "d'oh sorry!", but until I can get deeper into it I am really stumped.

Quoted 8 lines · paddy
Quoted 7 lines

I just noticed that I have a system where an LV appears to be open (as given by lvs), but I can't see it mounted anywhere, or opened by any process.

Any insights, suggestions, explanations, etc gratefully received :-)

Regards,
Paddy

Signature · 1 line
Perl 6 will give you the big knob. -- Larry Wall
#3 lore raw

Hello Paddy,

Only making a wild guess here, but perhaps you had it mounted with "mount -o loop vg-foo/lv-bar /mnt"? This command will create a loopback device which will then be mounted. The 'dirty part' is that 'umount' will NOT reverse this process. It will unmount but not remove the automatically created loopback device. This stays attached to the LV which remains opened.

Signature · 6 lines
Kind regards,

Erik de Bruijn
BudgetDedicated

http://www.BudgetDedicated.com | Tel. +31 13 4690625 | Fax. +31 84 2248796 | Adres: Adelaarshorst 9 | Zipcode NL-5042 XE
Quoted 42 lines · paddy
Quoted 2 lines · Jonathan E Brassow

Hmmm, I can see where it might be 'active', but if it's not in use, it shouldn't be open.

It is open. lvchange -an says LV in use: not removing

but I'm drawing a blank on finding anything that is actually using it.

I'm kinda hoping someone can throw some light on what 'open' is here.

Quoted 2 lines

Some sub-lvs are marked as 'open', because they are used by the main LV (such is the case with mirroring and snapshots).

no mirrors, no snapshots :-(

I have looked through /etc/lvm/backups and can't see anything odd.

Quoted 2 lines

Have you tried 'lsof <path to LV>' ?

yup, tried lsof, tried fuser, there is no nfs, got nowhere.

It's one of those things where I fully expect to have to say "d'oh sorry!", but until I can get deeper into it I am really stumped.

Quoted 9 lines · paddy
Quoted 8 lines

I just noticed that I have a system where an LV appears to be open (as given by lvs), but I can't see it mounted anywhere, or opened by any process.

Any insights, suggestions, explanations, etc gratefully received :-)

Regards,
Paddy