LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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?

Notices



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

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


Hi,

I created a volume group and a logical volume group with help from this HOWTO http://tldp.org/HOWTO/LVM-HOWTO/recipethreescsi.html

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:
/dev/my_volume_group/my_logical_volume
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.

Ideas?
- J Tom Moon 79

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

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: http://www.seul.org/~grumbel/tmp/lvm (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.
  


Reply

Tags
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 12:30 PM
How can I mount a LVM volume with fdisk? Thaidog Linux - General 1 12-16-2006 02:49 AM
How to mount LVM Volume twice Phil.Johnson Linux - Software 0 03-14-2006 12:17 PM
LVM Physical Volume Lucky_Sevin Linux - Software 2 01-10-2006 11:44 AM
Partitions under LVM Volume Group won't mount after install jimisola Mandriva 4 11-16-2005 05:17 PM


All times are GMT -5. The time now is 03:36 AM.

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