LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-09-2014, 05:06 PM   #1
circus78
Member
 
Registered: Dec 2011
Posts: 273

Rep: Reputation: Disabled
LVM issue


Hi,
I manage a CentOS server with soft-raid (two 80 GB sata disks).

root partition is on a LVM device.

I noticed this messages in /var/log/messages:

Code:
# dmesg |grep sda
sd 2:0:0:0: [sda] 156301488 512-byte logical blocks: (80.0 GB/74.5 GiB)
sd 2:0:0:0: [sda] Write Protect is off
sd 2:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
 sda:
 sda1 sda2
sd 2:0:0:0: [sda] Attached SCSI disk
dracut: Scanning devices sda2 sdb2  for LVM logical volumes vg_tokyo/lv_root vg_tokyo/lv_swap
dracut: Found duplicate PV G6N7tAm9vRcl5eiM4Voo4FBKZmQVde8Z: using /dev/sdb2 not /dev/sda2
dracut: Found duplicate PV G6N7tAm9vRcl5eiM4Voo4FBKZmQVde8Z: using /dev/sdb2 not /dev/sda2

# dmesg |grep sdb
sd 3:0:0:0: [sdb] 156301488 512-byte logical blocks: (80.0 GB/74.5 GiB)
sd 3:0:0:0: [sdb] Write Protect is off
sd 3:0:0:0: [sdb] Mode Sense: 00 3a 00 00
sd 3:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
 sdb: sdb1 sdb2
sd 3:0:0:0: [sdb] Attached SCSI disk
dracut: Scanning devices sda2 sdb2  for LVM logical volumes vg_tokyo/lv_root vg_tokyo/lv_swap
dracut: Found duplicate PV G6N7tAm9vRcl5eiM4Voo4FBKZmQVde8Z: using /dev/sdb2 not /dev/sda2
dracut: Found duplicate PV G6N7tAm9vRcl5eiM4Voo4FBKZmQVde8Z: using /dev/sdb2 not /dev/sda2
EXT4-fs (sdb1): mounted filesystem with ordered data mode
What can it mean?
Thankyou!
 
Old 12-09-2014, 06:05 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,281

Rep: Reputation: Disabled
It means exactly what it says: On your system, there are two partitions, /dev/sda2 and /dev/sdb2, with the same Physical Volume UUID.

UUIDs are supposed to be globally unique, so normally this should never happen. It could be the result of the /dev/sda2 partition being duplicated onto /dev/sdb (or the other way around) with dd or a similar tool.
 
Old 12-09-2014, 10:21 PM   #3
propofol
Member
 
Registered: Nov 2007
Location: Seattle
Distribution: Debian Wheezy & Jessie; Ubuntu
Posts: 334

Rep: Reputation: 60
Use 'blkid' to see what the current labels & UUIDs are. Modify the UUID for sdb2 or sda2 with:
Quote:
sudo tune2fs -U <new uuid> /dev/sdb2
 
Old 12-10-2014, 02:59 AM   #4
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,281

Rep: Reputation: Disabled
Quote:
Originally Posted by propofol View Post
Use 'blkid' to see what the current labels & UUIDs are. Modify the UUID for sdb2 or sda2 with:
Quote:
sudo tune2fs -U <new uuid> /dev/sdb2
That would change the file system UUID on an ext2/3/4 file system, not the UUID of an LVM Physical Volume.

And since a PV contains metadata (and usually no directly recognizable file system), running tune2fs or any other file system utility on a PV device is very likely to cause data corruption. I suspect tune2fs would detect that the device doesn't contain a valid file system, though.
 
Old 12-10-2014, 09:56 AM   #5
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,680

Rep: Reputation: 2167Reputation: 2167Reputation: 2167Reputation: 2167Reputation: 2167Reputation: 2167Reputation: 2167Reputation: 2167Reputation: 2167Reputation: 2167Reputation: 2167
It looks to me as though the system failed to detect the RAID array and, finding two identical two identical disks, arbitrarily selected sdb2. You need to find out why the RAID detect failed. I'm no expert there -- sorry.

(I see those repeated words. Not correcting. They are just "two" apt.)
 
Old 12-12-2014, 02:32 AM   #6
propofol
Member
 
Registered: Nov 2007
Location: Seattle
Distribution: Debian Wheezy & Jessie; Ubuntu
Posts: 334

Rep: Reputation: 60
Quote:
Originally Posted by Ser Olmy View Post
That would change the file system UUID on an ext2/3/4 file system, not the UUID of an LVM Physical Volume.
...
Thanks for the clarification - I was not aware of this.
 
  


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] Issue with Partitions/LVM JasonHarper Linux - Software 8 10-17-2013 06:33 PM
LVM issue call_krushna Linux - Virtualization and Cloud 0 10-30-2012 11:58 AM
LVM issue AndyD236 Linux - General 2 11-24-2009 08:26 AM
LVM Issue bondoq Linux - General 8 05-12-2009 10:35 AM
LVM issue pauloco Linux - Hardware 1 11-15-2006 12:13 AM

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

All times are GMT -5. The time now is 03:44 PM.

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