You are not logged in.

#1 2011-02-09 00:30:14

acheun
Member
Registered: 2009-04-06
Posts: 3

Automount LVM volume[SOLVED]

Hi,

Sorry if this has been answer.  I did some search but unable to get any help on this.  It's my first time to use LVM under Archlinux.

Situation:

I had created a lvm partition, and had successfully mount it accordingly.  Then I put the partition mapping in /etc/fstab as follows:

 /dev/mapper/vg-vol/lv-vol  /data  xfs   defaults    0 2 

Problem and get around:

When the machine is reboot, I got an error when mounting the lvm partition.  Message is something like " special device *device-name* does not exist".

So what I can do is boot the machine without the lvm mount stated in /etc/fstab.  I manually mount the lvm partition again but got same error.   After troubleshooting with help on WIKI, execute

vgchange -ay /dev/vg-vol

I can mount the lvm again.  But not again after reboot until the same procedure executed.

Question:
My question is how to mount this lvm partition during boot?  I can't use the /etc/fstab right now unless I execute the vgchange command.  Appreciate any one can help.  Thanks.

Last edited by acheun (2011-02-10 03:05:02)

Offline

#2 2011-02-09 00:32:45

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Automount LVM volume[SOLVED]

Rebuild your initramfs image with the lvm hook included.

Offline

#3 2011-02-10 03:02:39

acheun
Member
Registered: 2009-04-06
Posts: 3

Re: Automount LVM volume[SOLVED]

Thanks.  It solved my problem.

Offline

Board footer

Powered by FluxBB