LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-30-2015, 10:05 AM   #1
Fracker
Member
 
Registered: Mar 2009
Posts: 90

Rep: Reputation: 0
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?
 
Old 07-30-2015, 10:08 AM   #2
Cebrian
LQ Newbie
 
Registered: Jul 2015
Location: Barcelona, Spain
Distribution: CentOS
Posts: 12

Rep: Reputation: Disabled
Quote:
Originally Posted by Fracker View Post
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.
 
Old 08-12-2015, 01:48 AM   #3
Fracker
Member
 
Registered: Mar 2009
Posts: 90

Original Poster
Rep: Reputation: 0
to mount We are using device mapper only (/dev/mapper). How do we put UUID based filter or mapper based filter in LVM?
 
Old 08-12-2015, 02:25 AM   #4
Cebrian
LQ Newbie
 
Registered: Jul 2015
Location: Barcelona, Spain
Distribution: CentOS
Posts: 12

Rep: Reputation: Disabled
Quote:
Originally Posted by Fracker View Post
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
 
  


Reply


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
[SOLVED] fsck.btrfs doesn't skip check on root if fstab uses wrong simlink with lvm. lumak Slackware 1 04-30-2011 05:32 PM
Binding LVM Partitions in fstab? mr_luksom Linux - Software 3 02-21-2011 03:16 AM
VMWare Converter & Debian - lost eth0 & LVM during conversion Ladowny Linux - Virtualization and Cloud 1 04-05-2010 01:47 PM
fstab and lvm krystalpwr Linux - Enterprise 4 08-27-2009 10:56 PM
fstab config - LVM aztek Debian 0 06-01-2006 03:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:13 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
Open Source Consulting | Domain Registration