Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 10-12-2011, 08:39 PM   #1
LQ Newbie
Registered: Oct 2011
Posts: 14

Rep: Reputation: Disabled
Removing blank LVM disk causes grub to hang

I've had a lvm2 setup on ubuntu server 10.04 for quite some time now and everything's been peachy. I've upgraded the drives a few times and it always went without a hitch.

There is one drive I have not upgraded yet. This drive has been in the machine since the very beginning. It is /dev/sdb in the following:

device    volGroup  LogVolume  size
/dev/sda5    Beta     root      50GB
/dev/sdb     Beta     torrent  640GB
/dev/sdc     Beta     torrent  1.5TB
I had enough free pv on /dev/sdc to handle all of the pv that are on /dev/sdb and so I moved them with pvmove to /dev/sdc.

However after removing /dev/sdb from the logical volume and the volume group, I shut down and removed the device and on the subsequent boot grub hung.

When I put /dev/sdb in it boots fine.

I've put the bigger drive in for /dev/sdb and it hangs, just like when there is no drive for /dev/sdb.

Is there any reason that important grub files would be on /dev/sdb?
Old 10-12-2011, 09:10 PM   #2
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,617

Rep: Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088
More info.
What version of grub (grub classic maybe on Lucid).?.
"grub hung" tells us absolutely nothing. Messages, blinking cursor, blank screen ?. Any (and all) symptoms.
Old 10-13-2011, 05:29 PM   #3
LQ Newbie
Registered: Oct 2011
Posts: 14

Original Poster
Rep: Reputation: Disabled
Sorry about the delay.

The version is Grub2. However I had some of the details wrong in the OP. (Was writing the post from memory since I was away from the computer). The exact issue was that the computer boot looped immediately after the text "Grub Loading." was displayed on a line by itself. However, the problem does not occur without putting in the new drive for /dev/sdb. (This was wrong in the OP).

So, for clarity:

When removing /dev/sdb it boots perfectly fine.
When inserting the new /dev/sdb it boot loops after "Grub Loading."

I did eventually figure it out. For some reason, if I specified the boot device in the BIOS as /dev/sda then it booted OK. But if I left the BIOS to it's defaults (which put /dev/sdb at a higher preference) then it boot looped.

Still not sure why it happened though, because Grub was loading so the BIOS did find the correct drive eventually. Both /dev/sdb's had data on them and neither ever had anything grub related.


boot, grub, hang, lvm2, remove

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
Removing Physical Disk from LVM via pvmove jamoody Linux - Newbie 2 07-07-2012 01:33 PM
Adding an LVM hard disk to a system already running/using LVM firewiz87 Linux - Hardware 5 08-15-2010 12:59 AM
Mounting LVM Disk to non-LVM disk gak_92 Linux - Hardware 1 08-07-2009 03:34 AM
Fedora8 installed on Software Raid+lvm will not start (GRUB Hard Disk Error) nikaudio Fedora - Installation 1 07-08-2008 08:50 AM
Blank screen and hang up on logout/reboot/halt davidblund Ubuntu 1 03-30-2007 04:05 PM

All times are GMT -5. The time now is 02:26 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration