LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 05-13-2013, 01:01 AM   #1
Rearden888
LQ Newbie
 
Registered: Jan 2010
Location: Anacortes, WA
Distribution: Crunchbang, Debian, Gentoo
Posts: 24
Blog Entries: 2

Rep: Reputation: 3
LVM not finding VG during boot


I'll start out with some background. I have two external USB hard drives I'm using in an LVM span volume group. I recently moved it from one computer to another. I deactivated and exported the VG from the old machine (debian 6.0) and imported and reactivated it with no issues on the new machine (Crunchbang waldorf), was able to mount and access the drive normally.

However, when I reboot the new computer, during boot, it fails while trying to run fsck on the LVM VG, and drops me to a root command prompt. While booting, I see the normal messages for the kernel assuming write-through on the drive, but then lots of errors like this:

Code:
sd 12:0:0:0: [sdb] Unhandled error code
sd 12:0:0:0: [sdb]  
Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
sd 12:0:0:0: [sdb] CDB: 
Read(10): 28 00 e8 e0 88 00 00 00 08 00
end_request: I/O error, dev sdb, sector 3907028992
Buffer I/O error on device sdb, logical block 3907028992
Buffer I/O error on device sdb, logical block 3907028993
Buffer I/O error on device sdb, logical block 3907028994
Buffer I/O error on device sdb, logical block 3907028995
Buffer I/O error on device sdb, logical block 3907028996
Buffer I/O error on device sdb, logical block 3907028997
Buffer I/O error on device sdb, logical block 3907028998
Buffer I/O error on device sdb, logical block 3907028999
After that, when LVM runs in the normal init process, it fails to find any volume groups, and consequently, fsck fails when trying to mount that VG. However, when it drops me to the prompt, I can run
vgscan -ay
and it finds and maps the VG correctly immediately. I'm then able to check it and mount it with no issues. I've run fsck on it multiple times and it always comes back clean.

Has anyone seen anything similar to this with USB drives and LVM before? I never saw any problem with this on the old machine it was attached to. Thanks for any help you can give me.
 
Old 05-13-2013, 09:16 PM   #2
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD
Posts: 1,949

Rep: Reputation: 279Reputation: 279Reputation: 279
Is your root filesystem on these external LVM drives? I'm not sure if you are trying to explain a boot problem, or a mount problem after boot.
 
Old 05-14-2013, 01:07 AM   #3
Rearden888
LQ Newbie
 
Registered: Jan 2010
Location: Anacortes, WA
Distribution: Crunchbang, Debian, Gentoo
Posts: 24
Blog Entries: 2

Original Poster
Rep: Reputation: 3
Sorry that wasn't clear. No, it's not my boot drive, that's stored on a regular SSD plugged in to the motherboard. The reason it's interrupting the boot process is because when the lvm start-up script fails to find the drives (because both are experiencing those read errors) fsck fails to check the drive because it's nonexistent.

On another note, I've found a workable solution. Every time the machine starts up, the drives seem to come online, fail and go offline from the read errors in the log snippet, and then come back up and work properly.

Since it just appears to be a short duration problem, I was able to put a "sleep 10" in the lvm startup script which gives the drives time to go through their apparently normal process of failing before coming online fully, after which the LVM initscript works normally. For now, it seems to be working, I'll just have to investigate if there is a problem with those particular drives models. Thanks.

Last edited by Rearden888; 05-14-2013 at 01:12 AM. Reason: Accidental double post
 
  


Reply

Tags
lvm, usb


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to boot: LVM setup on external HDD with separate /boot saivnoba Slackware 3 10-25-2011 08:55 AM
Lilo not finding ramdisk with lvm+luks setup "image starting at 0" anonymous7777 Slackware 10 08-27-2011 05:52 AM
/boot as LVM?? egregor Slackware - Installation 6 09-03-2009 12:04 PM
/boot LVM sycamorex Linux - Hardware 15 07-02-2008 06:31 AM
Can't boot 2.6 kernel, need help finding boot log sb73542 Linux - General 1 01-02-2004 06:47 PM


All times are GMT -5. The time now is 05:07 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration