* [linux-lvm] Help to mount ext3 boot partiton which reports it's LVM2_member when I try to mount it @ 2011-06-16 21:45 Lee Gold 2011-06-17 4:11 ` Stuart D. Gathman 0 siblings, 1 reply; 9+ messages in thread From: Lee Gold @ 2011-06-16 21:45 UTC (permalink / raw) To: linux-lvm Hi, Tried adding a disk with LVM2. Rebooted maybe too soon and Grub became confused and system will not boot. It's Unbuntu Server 10.04. Removed new disk - grub still confused, no boot. I put in a live Ubuntu disk to look and hopefully repair non-LVM ext3 boot partition...somehow. But I can not mount the boot partiton. Yet, sudo fdisk -l says ID 83, Linux for /dev/sda1 - the boot partition. But when I try: sudo mount /dev/sda1 /mnt/bootp I get: mount:unknown filesystem type 'LVM2_member'...fdisk reports differently... How can this be right? I clearly remember installing the /boot as an ext3 partiton. sudo pvs says: PV VG Fmt Attr PSize PFree /dev/sda1 lvm2 a- 190.00m 190.00m /dev/sda2 system lvm2 a- 92.97g 0 I can mount the partitons in /dev/sda2 by installing LVM2 while using the live disk and some command-line - so I can recover the data if necessay so all is not lost. But I would really like to know what is going on and how to get the system booting again. Again the boot partition was ext3 and separate, why can't I access it, fdisk confirms...? Thanks. Lee G. -- http://www.fastmail.fm - Choose from over 50 domains or use your own ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [linux-lvm] Help to mount ext3 boot partiton which reports it's LVM2_member when I try to mount it 2011-06-16 21:45 [linux-lvm] Help to mount ext3 boot partiton which reports it's LVM2_member when I try to mount it Lee Gold @ 2011-06-17 4:11 ` Stuart D. Gathman 2011-06-17 15:59 ` Lee Gold 0 siblings, 1 reply; 9+ messages in thread From: Stuart D. Gathman @ 2011-06-17 4:11 UTC (permalink / raw) To: LVM general discussion and development On Thu, 16 Jun 2011, Lee Gold wrote: > How can this be right? I clearly remember installing the /boot as an > ext3 partiton. > > sudo pvs says: > > PV VG Fmt Attr PSize PFree > > /dev/sda1 lvm2 a- 190.00m 190.00m > > /dev/sda2 system lvm2 a- 92.97g 0 > > I can mount the partitons in /dev/sda2 by installing LVM2 while using > the live disk and some command-line - so I can recover the data if > necessay so all is not lost. But I would really like to know what is > going on and how to get the system booting again. Again the boot > partition was ext3 and separate, why can't I access it, fdisk > confirms...? Thanks. I would suspect that sda and sdb do not point to the disks you think they do. BIOS often swaps these around without warning. You don't mention your physical connection (IDE/SATA/USB/FW/iSCSI/...). This would give a clue as to what BIOS might have done - although it really isn't an LVM question. This is why it is preferred to use filesystem/PV UUIDs or labels rather that whatever the current device address happens to be. So it looks like you made /boot into a PV, although pvcreate should have warned that the block device was mounted. -- Stuart D. Gathman <stuart@bmsi.com> Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154 "Confutatis maledictis, flammis acribus addictis" - background song for a Microsoft sponsored "Where do you want to go from here?" commercial. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [linux-lvm] Help to mount ext3 boot partiton which reports it's LVM2_member when I try to mount it 2011-06-17 4:11 ` Stuart D. Gathman @ 2011-06-17 15:59 ` Lee Gold 2011-06-17 16:36 ` Ray Morris 2011-06-21 15:35 ` Phillip Susi 0 siblings, 2 replies; 9+ messages in thread From: Lee Gold @ 2011-06-17 15:59 UTC (permalink / raw) To: LVM general discussion and development On Fri, 17 Jun 2011 00:11 -0400, "Stuart D. Gathman" <stuart@bmsi.com> wrote: > On Thu, 16 Jun 2011, Lee Gold wrote: > > > How can this be right? I clearly remember installing the /boot as an > > ext3 partiton. > > > > sudo pvs says: > > > > PV VG Fmt Attr PSize PFree > > > > /dev/sda1 lvm2 a- 190.00m 190.00m > > > > /dev/sda2 system lvm2 a- 92.97g 0 > > > > I can mount the partitons in /dev/sda2 by installing LVM2 while using > > the live disk and some command-line - so I can recover the data if > > necessay so all is not lost. But I would really like to know what is > > going on and how to get the system booting again. Again the boot > > partition was ext3 and separate, why can't I access it, fdisk > > confirms...? Thanks. > > I would suspect that sda and sdb do not point to the disks you think > they do. BIOS often swaps these around without warning. You don't > mention > your physical connection (IDE/SATA/USB/FW/iSCSI/...). This would give a > clue > as to what BIOS might have done - although it really isn't an LVM > question. > This is why it is preferred to use filesystem/PV UUIDs or labels > rather that whatever the current device address happens to be. > > So it looks like you made /boot into a PV, although pvcreate should have > warned that the block device was mounted. > In my opinion LVM2 should of flagged me when it went about changing my config - which it did - the boot partition's location and spec could not of changed on it's own and while the bios could shuffle things around only an active script could of changed things as it did and it should have warned me - that's Comp Sci 101 - when something happens pull over to the side of the road AND put your indicator on too. Maybe I'm wrong but if I am it's moot. "Once burned twice shy". -- http://www.fastmail.fm - Access all of your messages and folders wherever you are ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [linux-lvm] Help to mount ext3 boot partiton which reports it's LVM2_member when I try to mount it 2011-06-17 15:59 ` Lee Gold @ 2011-06-17 16:36 ` Ray Morris 2011-06-21 15:35 ` Phillip Susi 1 sibling, 0 replies; 9+ messages in thread From: Ray Morris @ 2011-06-17 16:36 UTC (permalink / raw) To: linux-lvm > In my opinion LVM2 should of flagged me when it went about changing my > config - which it did - the boot partition's location and spec could > not of changed on it's own Either LVM wrote fdisk into itself, which has never happened before to anyone else, or you made a typo. -- Ray Morris support@bettercgi.com Strongbox - The next generation in site security: http://www.bettercgi.com/strongbox/ Throttlebox - Intelligent Bandwidth Control http://www.bettercgi.com/throttlebox/ Strongbox / Throttlebox affiliate program: http://www.bettercgi.com/affiliates/user/register.php ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [linux-lvm] Help to mount ext3 boot partiton which reports it's LVM2_member when I try to mount it 2011-06-17 15:59 ` Lee Gold 2011-06-17 16:36 ` Ray Morris @ 2011-06-21 15:35 ` Phillip Susi 2011-06-29 8:47 ` [linux-lvm] Fedora 15 lvm root device not found Stamper, Brian P. (ARC-D)[Stinger Ghaffarian Technologies Inc. (SGT Inc.)] 1 sibling, 1 reply; 9+ messages in thread From: Phillip Susi @ 2011-06-21 15:35 UTC (permalink / raw) To: LVM general discussion and development; +Cc: Lee Gold On 6/17/2011 11:59 AM, Lee Gold wrote: > In my opinion LVM2 should of flagged me when it went about changing my > config - which it did - the boot partition's location and spec could not /It/ did not do anything. /You/ ran pvcreate on the wrong partition, probably because when you connected the second disk, it became sda instead of sdb as you probably expected, and you ran pvcreate /dev/sdb1, which was your boot partition. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [linux-lvm] Fedora 15 lvm root device not found 2011-06-21 15:35 ` Phillip Susi @ 2011-06-29 8:47 ` Stamper, Brian P. (ARC-D)[Stinger Ghaffarian Technologies Inc. (SGT Inc.)] 2011-06-29 19:47 ` Stamper, Brian P. (ARC-D)[Stinger Ghaffarian Technologies Inc. (SGT Inc.)] 2011-07-19 19:13 ` [linux-lvm] Mail etiquette ( was: Fedora 15 lvm root device not found ) Phillip Susi 0 siblings, 2 replies; 9+ messages in thread From: Stamper, Brian P. (ARC-D)[Stinger Ghaffarian Technologies Inc. (SGT Inc.)] @ 2011-06-29 8:47 UTC (permalink / raw) To: LVM general discussion and development [-- Attachment #1: Type: text/plain, Size: 1215 bytes --] I just upgraded a Fedora system from 13 to 15, and now I can't get it to boot. I'm getting dumped to a dracut shell and getting the error dm-linear device lookup failed. In the dracut output with debug on, I see dracut scan my drives, and I see it find my 3 LVs, but it then tries to do something with them, I get the error, and it then fails out with root device not found and drops me into dracut. Here's the odd thing, booting off the rescue dvd my volumes are fine. The LVM can be mounted no problem. This makes me think that there's something missing from the kernel or initrd. I can't really figure out what though. I've gone through the output of lsmod when running from the rescue dvd. I've even build a few ramdisks including all the modules that I thought might be related (dm, lvm, mdraid, dmraid, multipath). I tried building them with mkinitrd -with=module, and I tried again with dracut -add=modules. No change in results. I'm not sure where to go from here. I feel like the system can be rescued, but I don't know how to work backward through dracut to find out why it's unable to find my root volume. Any help would be appreciated. Cross-posting to dm-devel. Thanks, -Brian [-- Attachment #2: Type: text/html, Size: 1574 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [linux-lvm] Fedora 15 lvm root device not found 2011-06-29 8:47 ` [linux-lvm] Fedora 15 lvm root device not found Stamper, Brian P. (ARC-D)[Stinger Ghaffarian Technologies Inc. (SGT Inc.)] @ 2011-06-29 19:47 ` Stamper, Brian P. (ARC-D)[Stinger Ghaffarian Technologies Inc. (SGT Inc.)] 2011-07-01 15:05 ` Stuart D. Gathman 2011-07-19 19:13 ` [linux-lvm] Mail etiquette ( was: Fedora 15 lvm root device not found ) Phillip Susi 1 sibling, 1 reply; 9+ messages in thread From: Stamper, Brian P. (ARC-D)[Stinger Ghaffarian Technologies Inc. (SGT Inc.)] @ 2011-06-29 19:47 UTC (permalink / raw) To: LVM general discussion and development [-- Attachment #1: Type: text/plain, Size: 3377 bytes --] I was able to boot this system by taking an initramfs from another Fedora 15 test system and putting it in /boot and referencing it in grub.conf. However, I need to find out why an initramfs I build on the system is unable to boot. When I'm in dracut, I was able to do some checking. Using the lvm commands, I was able to activate and deactivate the vg, display the lvs, but not use them. I would get "device not found", and in /dev/mapper, the lvm devices were not there. There were other lvm devices there, but not from my primary system lvm. The only thing that stands out about it is that it is ext4, not ext3. Comparing the decompiled initrds, there's no modules that stand out. Sas.out is a listing of the WORKING initrd, tfs.out is the NOT WORKING initrd. [root@testfs ramdisks]# diff sas.out tfs.out 718d717 < ./lib/firmware/ql2500_fw.bin 1248,1249d1246 < ./etc/ld.so.conf.d/openmotif-64.conf < ./etc/ld.so.conf.d/kernel-2.6.38.7-30.fc15.x86_64.conf 1252c1249 < ./etc/ld.so.conf.d/kernel-2.6.34.8-68.fc13.x86_64.conf --- > ./etc/ld.so.conf.d/qt-x86_64.conf 1262d1258 < ./etc/modprobe.d/openfwwf.conf 1278a1275 > ./etc/udev/rules.d/40-multipath.rules 1317a1315 > ./lib64/libcryptsetup.so.1.2.0 1322a1321 > ./lib64/libcap.so 1407d1405 < ./lib64/libcryptsetup.so.1.1.0 1419a1418 > ./lib64/libnss_files-2.12.2.so 1480a1480 > ./usr/bin/checkisomd5 1491d1490 < ./usr/lib64/libnss_files.so 1517a1517 > ./usr/share/plymouth/themes/default.plymouth Nothing there looks relevant. Libcryptsetup needs updating on the test system I pulled the initrd from. The q-logic firmware is irrelevant. There are a couple of older kernels on the test system. Libcap.so is a dependency of legato backup software. Libnss_files should have nothing to do with accessing an LVM. So I'm stuck. My system is up, but only if I build an initrd on another system and copy it over, meaning next time I update the kernel it will not boot. Nothing's jumping out at me as obviously missing modules from the broken initrd. Where else can I look? -Brian On 6/29/11 1:47 AM, "Brian Stamper" <brian.p.stamper@nasa.gov> wrote: I just upgraded a Fedora system from 13 to 15, and now I can't get it to boot. I'm getting dumped to a dracut shell and getting the error dm-linear device lookup failed. In the dracut output with debug on, I see dracut scan my drives, and I see it find my 3 LVs, but it then tries to do something with them, I get the error, and it then fails out with root device not found and drops me into dracut. Here's the odd thing, booting off the rescue dvd my volumes are fine. The LVM can be mounted no problem. This makes me think that there's something missing from the kernel or initrd. I can't really figure out what though. I've gone through the output of lsmod when running from the rescue dvd. I've even build a few ramdisks including all the modules that I thought might be related (dm, lvm, mdraid, dmraid, multipath). I tried building them with mkinitrd -with=module, and I tried again with dracut -add=modules. No change in results. I'm not sure where to go from here. I feel like the system can be rescued, but I don't know how to work backward through dracut to find out why it's unable to find my root volume. Any help would be appreciated. Cross-posting to dm-devel. Thanks, -Brian [-- Attachment #2: Type: text/html, Size: 4258 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [linux-lvm] Fedora 15 lvm root device not found 2011-06-29 19:47 ` Stamper, Brian P. (ARC-D)[Stinger Ghaffarian Technologies Inc. (SGT Inc.)] @ 2011-07-01 15:05 ` Stuart D. Gathman 0 siblings, 0 replies; 9+ messages in thread From: Stuart D. Gathman @ 2011-07-01 15:05 UTC (permalink / raw) To: LVM general discussion and development On Wed, 29 Jun 2011, Stamper, Brian P. (ARC-D)[Stinger Ghaffarian Technologies Inc. (SGT Inc.)] wrote: > I was able to boot this system by taking an initramfs from another Fedora 15 > test system and putting it in /boot and referencing it in grub.conf. > However, I need to find out why an initramfs I build on the system is > unable to boot. > > When I?m in dracut, I was able to do some checking. Using the lvm commands, > I was able to activate and deactivate the vg, display the lvs, but not use > them. I would get ?device not found?, and in /dev/mapper, the lvm devices > were not there. There were other lvm devices there, but not from my primary > system lvm. The only thing that stands out about it is that it is ext4, not > ext3. This is a Fedora issue, not LVM, and you might try the Fedora IRC chat, but... Have you tried running mkinitrd again since you got the system booted? Since you just upgraded, mkinitrd could have screwed up since drivers and device names may have changed from 13 to 15. I even had this problem with CentOS, 5.5 -> 5.6 mkinitrd had to be run again (after booting from older kernel). -- Stuart D. Gathman <stuart@bmsi.com> Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154 "Confutatis maledictis, flammis acribus addictis" - background song for a Microsoft sponsored "Where do you want to go from here?" commercial. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [linux-lvm] Mail etiquette ( was: Fedora 15 lvm root device not found ) 2011-06-29 8:47 ` [linux-lvm] Fedora 15 lvm root device not found Stamper, Brian P. (ARC-D)[Stinger Ghaffarian Technologies Inc. (SGT Inc.)] 2011-06-29 19:47 ` Stamper, Brian P. (ARC-D)[Stinger Ghaffarian Technologies Inc. (SGT Inc.)] @ 2011-07-19 19:13 ` Phillip Susi 1 sibling, 0 replies; 9+ messages in thread From: Phillip Susi @ 2011-07-19 19:13 UTC (permalink / raw) To: LVM general discussion and development, Lee Gold You appear to have sent this message as a reply to my message in the thread with the subject "Help to mount ext3 boot partiton which reports it's LVM2_member when I try to mount it". As a result, it shows up as a reply in that thread, when you really meant to start a new thread. This causes needless confusion and is poor etiquette. In the future, when you mean to compose a new message, please do not reply to an existing one and delete all of the quotations and change the subject line. On 6/29/2011 4:47 AM, Stamper, Brian P. (ARC-D)[Stinger Ghaffarian Technologies Inc. (SGT Inc.)] wrote: > I just upgraded a Fedora system from 13 to 15, and now I can't get it > to boot. I'm getting dumped to a dracut shell and getting the error > dm-linear device lookup failed. In the dracut output with debug on, > I see dracut scan my drives, and I see it find my 3 LVs, but it then > tries to do something with them, I get the error, and it then fails > out with root device not found and drops me into dracut. > > Here's the odd thing, booting off the rescue dvd my volumes are fine. > The LVM can be mounted no problem. > > This makes me think that there's something missing from the kernel or > initrd. I can't really figure out what though. I've gone through > the output of lsmod when running from the rescue dvd. I've even > build a few ramdisks including all the modules that I thought might > be related (dm, lvm, mdraid, dmraid, multipath). I tried building > them with mkinitrd -with=module, and I tried again with dracut > -add=modules. No change in results. > > I'm not sure where to go from here. I feel like the system can be > rescued, but I don't know how to work backward through dracut to find > out why it's unable to find my root volume. Any help would be > appreciated. Cross-posting to dm-devel. > > Thanks, -Brian ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2011-07-19 19:13 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2011-06-16 21:45 [linux-lvm] Help to mount ext3 boot partiton which reports it's LVM2_member when I try to mount it Lee Gold 2011-06-17 4:11 ` Stuart D. Gathman 2011-06-17 15:59 ` Lee Gold 2011-06-17 16:36 ` Ray Morris 2011-06-21 15:35 ` Phillip Susi 2011-06-29 8:47 ` [linux-lvm] Fedora 15 lvm root device not found Stamper, Brian P. (ARC-D)[Stinger Ghaffarian Technologies Inc. (SGT Inc.)] 2011-06-29 19:47 ` Stamper, Brian P. (ARC-D)[Stinger Ghaffarian Technologies Inc. (SGT Inc.)] 2011-07-01 15:05 ` Stuart D. Gathman 2011-07-19 19:13 ` [linux-lvm] Mail etiquette ( was: Fedora 15 lvm root device not found ) Phillip Susi
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).