LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Fstab & lvm (https://www.linuxquestions.org/questions/linux-server-73/fstab-and-lvm-4175549356/)

Fracker 07-30-2015 10:05 AM

Fstab & lvm
 
HI Guys,

I am facing some issue.

I put filter on my lvm.conf

filter = [ "a/sdi[1-9]$/","a/emcpower.*/", "r/sd.*/", "r/.*/" ]


Now problem is /dev/sdi is keep changing, like last time it was /dev/sde now it is /dev/sdi which is causing lvm to ignore this which is my root partition. While restarting it is getting stuck for this reason.

Any suggestions, to stop /dev/sdi change again?

Cebrian 07-30-2015 10:08 AM

Quote:

Originally Posted by Fracker (Post 5398342)
HI Guys,

I am facing some issue.

I put filter on my lvm.conf

filter = [ "a/sdi[1-9]$/","a/emcpower.*/", "r/sd.*/", "r/.*/" ]


Now problem is /dev/sdi is keep changing, like last time it was /dev/sde now it is /dev/sdi which is causing lvm to ignore this which is my root partition. While restarting it is getting stuck for this reason.

Any suggestions, to stop /dev/sdi change again?

Use UUID instead of device name.

Fracker 08-12-2015 01:48 AM

to mount We are using device mapper only (/dev/mapper). How do we put UUID based filter or mapper based filter in LVM?

Cebrian 08-12-2015 02:25 AM

Quote:

Originally Posted by Fracker (Post 5404650)
to mount We are using device mapper only (/dev/mapper). How do we put UUID based filter or mapper based filter in LVM?

blkid /dev/mapper/<vgname>-<lvname>

Then copy the UUID to the /etc/fstab


All times are GMT -5. The time now is 12:32 PM.