You are not logged in.

#1 2009-05-12 18:04:21

tealson
Member
Registered: 2007-06-14
Posts: 54

[solved] lvm mount question

Okay i really feel ashamed to ask this, but how do I mount this lvm device?
  --- Logical volume ---
  LV Name                /dev/vgroup/lv-home
  VG Name                vgroup
  LV UUID                oHDPBa-mfT2-s8V2-pKVu-leye-3HaM-CWX2ea
  LV Write Access        read/write
  LV Status              NOT available
  LV Size                445,75 GB
  Current LE             114112
  Segments               2
  Allocation             inherit
  Read ahead sectors     auto

It is from an old ubuntu installation and i need to copy the data. I always thought it should work like this:
sudo mount /dev/vgroup/lv-home /mnt/home
but it does not work (please specify filesystem) and even with -t ext3 it does not work.

Regards,
tealson

Last edited by tealson (2009-05-15 12:40:22)

Offline

#2 2009-05-12 18:19:43

nogoma
Member
From: Cranston, RI
Registered: 2006-03-01
Posts: 217

Re: [solved] lvm mount question

I believe it's the "LV Status NOT available" that's tripping you up here; you need to:

# lvchange -a y

Not at my lvm'd machine currently, but I think that's the correct command (man lvchange just in case) and should make all logical volumes available.


-nogoma
---
Code Happy, Code Ruby!
http://www.last.fm/user/nogoma/

Offline

#3 2009-05-12 18:51:05

tealson
Member
Registered: 2007-06-14
Posts: 54

Re: [solved] lvm mount question

Thanks, i could activate it, the syntax is correct and now the mount works as expected. Why was the lvm inactive? I simple moved it out of a desktop, pluged it in the esata case and thats it.
Know I hope the lvm stays this way, because i want to put it in my fstab wink

Offline

#4 2009-05-12 19:06:21

nogoma
Member
From: Cranston, RI
Registered: 2006-03-01
Posts: 217

Re: [solved] lvm mount question

Do you have USELVM="yes" in your rc.conf? I believe that is required to make logical volumes available at boot.


-nogoma
---
Code Happy, Code Ruby!
http://www.last.fm/user/nogoma/

Offline

#5 2009-05-13 13:47:16

tealson
Member
Registered: 2007-06-14
Posts: 54

Re: [solved] lvm mount question

No I did not. Now they are activated directly after boot, thanks. My opinion was: that I only need this switch if I would like to boot from an LVM device (as this is asked during /arch/setup).
Now I still need to find out why the device is not bmounted from my fstab:

/dev/vgroup/lv-home /home/paddy/Storage ext3    defaults,user,noauto,unhide     0       0

Any ideas?

Offline

#6 2009-05-13 13:58:54

dmartins
Member
Registered: 2006-09-23
Posts: 360

Re: [solved] lvm mount question

Do you want it mounted at boot? Remove the noauto flag.
And I don't think unhide is a valid option for ext2/3/4.

Last edited by dmartins (2009-05-13 14:00:49)

Offline

#7 2009-05-15 12:40:06

tealson
Member
Registered: 2007-06-14
Posts: 54

Re: [solved] lvm mount question

Stupid me, the problem got solved. It was another one: I added another hard disk which was then sdb and the lvm device was sdc smile So I had to switch the crypttab settings and afterwards everything worked fine. Thanks!

Offline

Board footer

Powered by FluxBB