Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 04-02-2007, 06:27 PM   #1
LQ Newbie
Registered: Jun 2006
Location: WA, USA
Distribution: Fedora Core 10
Posts: 16

Rep: Reputation: 5
Unhappy cannot mount lvm volume -- 'vgscan --mknodes' does nothing!


I created a volume group and a logical volume group with help from this HOWTO

The problem is after rebooting, I cannot find any /dev entries and I cannot create those /dev entries.

Here is a quick review of my steps:
pvcreate /dev/sda
pvcreate /dev/sdb
vgcreate my_volume_group /dev/sda /dev/sdb
lvcreate -L800G -nmy_logical_volume my_volume_group
mke2fs /dev/my_volume_group/my_logical_volume

Everything is nice so far (I played around with the new filesystem and such).
Most importantly I have this /dev entries:
Then I reboot my system.

Then I try to get the /dev/my_volume_group/my_logical_volume entry back but I never can!
I have tried several permutations of these commands:
$ vgscan
Reading all physical volumes. This may take a while...
Finding all volume groups
Finding volume group "my_volume_group"
Found volume group "my_volume_group" using metadata type lvm2

$ vgmknodes --verbose
Set umask to 0077
Finding all logical volumes

$ vgcfgrestore my_volume_group
$ lvscan -a
Finding all logical volumes
inactive '/dev/my_volume_group/my_logical_volume' [801.00 GB] inherit

Nothing ever creates /dev/my_volume_group/my_logical_volume
And it appears all the physical members of the volume group are present and recognized by the *scan commands.

- J Tom Moon 79

Last edited by jtmoon; 04-02-2007 at 06:35 PM.
Old 04-02-2007, 06:57 PM   #2
LQ Newbie
Registered: Jun 2006
Location: WA, USA
Distribution: Fedora Core 10
Posts: 16

Original Poster
Rep: Reputation: 5
Thumbs up use vgchange

here's the answer!

$ vgchange -a y
Found volume group "my_volume_group"
Creating my_volume_group-my_logical_volume
Loading my_volume_group-my_logical_volume
Resuming my_volume_group-my_logical_volume (253:0)
Activated logical volumes in volume group "my_volume_group"
1 logical volume(s) in volume group "my_volume_group" now active

Found this here: (look in the start function).

I would not have guessed to use vgchange because here is what the lvm umbrella command says about it:
vgchange "Change volume group attributes"
I guess "active" or "inactive" status count as attributes (see the output of lvscan in my post above).

oh well... at least I am unblocked.
-J Tom Moon 79
1 members found this post helpful.


lvm, lvm2

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting a LVM volume to RAID 5 mastrboy Linux - Software 2 02-08-2007 11:30 AM
How can I mount a LVM volume with fdisk? Thaidog Linux - General 1 12-16-2006 01:49 AM
How to mount LVM Volume twice Phil.Johnson Linux - Software 0 03-14-2006 11:17 AM
LVM Physical Volume Lucky_Sevin Linux - Software 2 01-10-2006 10:44 AM
Partitions under LVM Volume Group won't mount after install jimisola Mandriva 4 11-16-2005 04:17 PM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:26 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration