LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 07-29-2009, 10:15 AM   #1
gleeman
LQ Newbie
 
Registered: Jul 2009
Posts: 8

Rep: Reputation: 0
Question LVM volume disconnected/broke after Fedora 11 upgrade.


Hi guys

I upgraded from Fedora 10 to 11 and my second drive will not mount (/export or /dev/sdb).
Here is some details.

>>fstab:
UUID=78d0b50f-b932-411f-a009-d6303ddf3c23 / ext3 defaults 1 1
UUID=c280dab5-3d5b-4b40-9640-68d1b93e2246 /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
UUID=04e5409e-2773-4281-98f2-18f54c98b081 /export ext3 defaults 1 2
UUID=73ff7808-90b0-4286-b5a0-3a4fc9a90be8 swap swap defaults 0 0

>># fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00075872

Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 26 19457 156087540 8e Linux LVM

Disk /dev/sdb: 300.0 GB, 300069052416 bytes
255 heads, 63 sectors/track, 36481 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4b3e4b3e

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 36481 293033601 8e Linux LVM

Disk /dev/dm-0: 157.7 GB, 157705830400 bytes
255 heads, 63 sectors/track, 19173 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 2080 MB, 2080374784 bytes
255 heads, 63 sectors/track, 252 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x30307800

Disk /dev/dm-1 doesn't contain a valid partition table


>># blkid
/dev/mapper/VolGroup00-LogVol01: TYPE="swap" UUID="73ff7808-90b0-4286-b5a0-3a4fc9a90be8"
/dev/mapper/VolGroup00-LogVol00: UUID="78d0b50f-b932-411f-a009-d6303ddf3c23" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda1: LABEL="/boot" UUID="c280dab5-3d5b-4b40-9640-68d1b93e2246" SEC_TYPE="ext2" TYPE="ext3"
/dev/VolGroup00/LogVol00: UUID="78d0b50f-b932-411f-a009-d6303ddf3c23" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda2: UUID="vK11Oa-1U5o-QW2v-0EWb-xsou-r7CZ-Zd2uxH" TYPE="lvm2pv"
/dev/root: UUID="78d0b50f-b932-411f-a009-d6303ddf3c23" TYPE="ext3"


Like any good soldier, I backed up most of my data on /export, but not all.

Is there a way to fix and mount /dev/sdb or /export again?

Thank you for the assistance.
 
Old 07-29-2009, 05:10 PM   #2
mek
Member
 
Registered: Jul 2009
Location: Buenos Aires, Argentina
Distribution: fedora, slackware, *bsd
Posts: 42

Rep: Reputation: 17
you can try removing the lvm cache:

rm /etc/lvm/cache/.cache

and rebooting or rescanning:

pvscan
vgscan
lvscan

also, please post in thread the output of pvscan
 
Old 07-30-2009, 07:09 AM   #3
gleeman
LQ Newbie
 
Registered: Jul 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Hi Matías

I ran it as suggested, but it does not pick up my second disk.

Disk /dev/sdb: 300.0 GB, 300069052416 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 36481 293033601 8e Linux LVM

Here is the results of the scans:
# pvscan
PV /dev/sda2 VG VolGroup00 lvm2 [148.84 GB / 32.00 MB free]
Total: 1 [148.84 GB] / in use: 1 [148.84 GB] / in no VG: 0 [0 ]
# vgscan
Reading all physical volumes. This may take a while...
Found volume group "VolGroup00" using metadata type lvm2
# lvscan
ACTIVE '/dev/VolGroup00/LogVol00' [146.88 GB] inherit
ACTIVE '/dev/VolGroup00/LogVol01' [1.94 GB] inherit

It looks as if the disk "lost" its UUID and such will not show up in any of the scans?
Should I create a new Volume Group and add /dev/sdb1 to it?

Thank you for the help.

With thankfulness
Glee
 
Old 07-30-2009, 07:13 AM   #4
gleeman
LQ Newbie
 
Registered: Jul 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Just to clarify, I had 2 Volume Groups, VolGroup00(/dev/sda) and VolGroup01(/dev/sdb). I do not see VolGroup01 anymore. I don't know if this is of help?
 
Old 07-30-2009, 08:08 AM   #5
mek
Member
 
Registered: Jul 2009
Location: Buenos Aires, Argentina
Distribution: fedora, slackware, *bsd
Posts: 42

Rep: Reputation: 17
the pv should be displayed with pvscan, it looks like it lost his physical volume format, it's really wierd and problematic that something like this happens with an OS upgrade, so I strongly recommend you to open a bug in bugzilla.redhat.com, in order to diagnose what was wrong with fedora people.

I'm curious about what is wrong, please send me the output of:

pvck /dev/sdb1

and what happen if you try to do?

vgimport -f -v VolGroup01 /dev/hdb1
 
Old 07-30-2009, 09:05 AM   #6
gleeman
LQ Newbie
 
Registered: Jul 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Hi Matías

I did a ls of /dev and do not see the /sdb1 entry only /sdb.

Doing a fdisk -l gives me
Disk /dev/sdb: 300.0 GB, 300069052416 bytes
255 heads, 63 sectors/track, 36481 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4b3e4b3e

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 36481 293033601 8e Linux LVM

Running pvck and vgimport
# pvck /dev/sdb1
Device /dev/sdb1 not found (or ignored by filtering).

# vgimport -f -v VolGroup01 /dev/sdb1
Using volume group(s) on command line
Finding volume group "VolGroup01"
Wiping cache of LVM-capable devices
Volume group "VolGroup01" not found
Finding volume group "sdb1"
Volume group "sdb1" not found

Thank you.
Glee
 
Old 07-30-2009, 09:36 PM   #7
mek
Member
 
Registered: Jul 2009
Location: Buenos Aires, Argentina
Distribution: fedora, slackware, *bsd
Posts: 42

Rep: Reputation: 17
weird, somehow udev or something like that, is not taking the first partition from you hard disk. I'm going to check what could be wrong, in the middle time. Can you paste your /proc/parttions file?
 
Old 07-31-2009, 02:50 PM   #8
gleeman
LQ Newbie
 
Registered: Jul 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Hi Matías

# cat /proc/partitions
major minor #blocks name

8 0 156290904 sda
8 1 200781 sda1
8 2 156087540 sda2
8 16 293036184 sdb
253 0 154009600 dm-0
253 1 2031616 dm-1

Thank you
Glee
 
Old 08-01-2009, 03:01 PM   #9
mek
Member
 
Registered: Jul 2009
Location: Buenos Aires, Argentina
Distribution: fedora, slackware, *bsd
Posts: 42

Rep: Reputation: 17
Glee,

Really weird, is it an external hard drive? Could you please attach dmesg output in a text file?

Thanks
 
Old 08-02-2009, 02:16 PM   #10
gleeman
LQ Newbie
 
Registered: Jul 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Hi Matías

Here is my dmesg.
I see that the sdb and sdb1 in the log, but later the sdb1 is not loaded.

This is so far over my head, thank you for your persistence in helping out.

The backup I made of sdb1 failed on the recovery, so it become more urgent for me to recover my lost drive.

Attachment 1151

With gratefulness.
Glee
 
Old 08-03-2009, 09:31 AM   #11
gleeman
LQ Newbie
 
Registered: Jul 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Hi Matías

Sorry for pasting it in here, but I have problems with attaching the file.
I hope I captured everything pertaining the issue.
-->
Linux version 2.6.29.4-167.fc11.x86_64 (mockbuild@xenbuilder4.fedora.phx.redhat.com) (gcc version 4.4.0 20090506 (Red Hat 4.4.0-4) (GCC) ) #1 SMP Wed May 27 17:27:08 EDT 2009
Command line: ro root=UUID=
KERNEL supported cpus: Intel GenuineIntel AMD AuthenticAMD Centaur CentaurHauls

Driver 'sd' needs updating - please use bus_type methods
Driver 'sr' needs updating - please use bus_type methods
ata_piix 0000:00:1f.1: version 2.12
alloc irq_desc for 18 on cpu 0 node 0
alloc kstat_irqs on cpu 0 node 0
ata_piix 0000:00:1f.1: PCI INT A -> GSI 18 (level, low) -> IRQ 18
ata_piix 0000:00:1f.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0x40b0 irq 14
ata2: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0x40b8 irq 15
ata1.00: ATAPI: PLEXTOR DVDR PX-716AL, 1.00, max UDMA/66
ata1.00: configured for UDMA/66
isa bounce pool size: 16 pages
scsi 0:0:0:0: CD-ROM PLEXTOR DVDR PX-716AL 1.00 PQ: 0 ANSI: 5
sr0: scsi3-mmc drive: 40x/40x writer cd/rw xa/form2 cdda caddy
Uniform CD-ROM driver Revision: 3.20
sr 0:0:0:0: Attached scsi CD-ROM sr0
sr 0:0:0:0: Attached scsi generic sg0 type 5
ata2: port disabled. ignoring.
alloc irq_desc for 19 on cpu 0 node 0
alloc kstat_irqs on cpu 0 node 0
ata_piix 0000:00:1f.2: PCI INT B -> GSI 19 (level, low) -> IRQ 19
ata_piix 0000:00:1f.2: MAP [ P0 P2 P1 P3 ]
ata_piix 0000:00:1f.2: setting latency timer to 64
scsi2 : ata_piix
scsi3 : ata_piix
ata3: SATA max UDMA/133 cmd 0x40c8 ctl 0x40e4 bmdma 0x40a0 irq 19
ata4: SATA max UDMA/133 cmd 0x40c0 ctl 0x40e0 bmdma 0x40a8 irq 19
ata3.00: ATA-6: ST3160827AS, 3.42, max UDMA/133
ata3.00: 312581808 sectors, multi 16: LBA48 NCQ (depth 0/32)
ata3.00: configured for UDMA/133
scsi 2:0:0:0: Direct-Access ATA ST3160827AS 3.42 PQ: 0 ANSI: 5
sd 2:0:0:0: [sda] 312581808 512-byte hardware sectors: (160 GB/149 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: enabled, read cache: enabled, doesn't support DPO or FUA
sd 2:0:0:0: [sda] 312581808 512-byte hardware sectors: (160 GB/149 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: enabled, read cache: enabled, doesn't support DPO or FUA
sda: sda1 sda2
sd 2:0:0:0: [sda] Attached SCSI disk
sd 2:0:0:0: Attached scsi generic sg1 type 0
ata4.00: ATA-7: ST3300622AS, 3.AAD, max UDMA/133
ata4.00: 586072368 sectors, multi 16: LBA48 NCQ (depth 0/32)
ata4.00: configured for UDMA/133
scsi 3:0:0:0: Direct-Access ATA ST3300622AS 3.AA PQ: 0 ANSI: 5
sd 3:0:0:0: [sdb] 586072368 512-byte hardware sectors: (300 GB/279 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: enabled, read cache: enabled, doesn't support DPO or FUA
sd 3:0:0:0: [sdb] 586072368 512-byte hardware sectors: (300 GB/279 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: enabled, read cache: enabled, doesn't support DPO or FUA
sdb: sdb1
sd 3:0:0:0: [sdb] Attached SCSI disk
sd 3:0:0:0: Attached scsi generic sg2 type 0
[drm] Loading R300 Microcode
[drm] Num pipes: 1
[drm] writeback test succeeded in 1 usecs
[drm] Initialized radeon 1.30.0 20080528 for 0000:01:00.0 on minor 0
input: ImPS/2 Generic Wheel Mouse as /devices/platform/i8042/serio1/input/input4
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
SELinux: Disabled at runtime.
SELinux: Unregistering netfilter hooks
type=1404 audit(1248892452.518:2): selinux=0 auid=4294967295 ses=4294967295
udev: starting version 141
sata_sil 0000:05:05.0: version 2.4
sata_sil 0000:05:05.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
sata_sil 0000:05:05.0: Applying R_ERR on DMA activate FIS errata fix
scsi4 : sata_sil
scsi5 : sata_sil
scsi6 : sata_sil
scsi7 : sata_sil
ata5: SATA max UDMA/100 mmio m1024@0x48104800 tf 0x48104880 irq 17
ata6: SATA max UDMA/100 mmio m1024@0x48104800 tf 0x481048c0 irq 17
ata7: SATA max UDMA/100 mmio m1024@0x48104800 tf 0x48104a80 irq 17
ata8: SATA max UDMA/100 mmio m1024@0x48104800 tf 0x48104ac0 irq 17
input: PC Speaker as /devices/platform/pcspkr/input/input5
iTCO_vendor_support: vendor-support=0
iTCO_wdt: Intel TCO WatchDog Timer Driver v1.05
iTCO_wdt: Found a ICH7DH TCO device (Version=2, TCOBASE=0x0460)
iTCO_wdt: initialized. heartbeat=30 sec (nowayout=0)
ata5: SATA link down (SStatus 0 SControl 310)
EDAC MC: Ver: 2.1.0 May 27 2009
Linux video capture interface: v2.00
e1000e: Intel(R) PRO/1000 Network Driver - 0.3.3.3-k6
e1000e: Copyright (c) 1999-2008 Intel Corporation.
ata6: SATA link down (SStatus 0 SControl 310)
parport_pc 00:07: reported by Plug and Play ACPI
parport0: PC-style at 0x378 (0x778), irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
bttv: driver version 0.9.17 loaded
bttv: using 8 buffers with 2080k (520 pages) each for capture
ata7: SATA link down (SStatus 0 SControl 310)
ata8: SATA link down (SStatus 0 SControl 310)
i801_smbus 0000:00:1f.3: PCI INT B -> GSI 19 (level, low) -> IRQ 19

ALSA sound/pci/hda/patch_sigmatel.c:2944: stac92xx: dac_nids=4 (0x2/0x4/0x5/0x3/0x0)
input: HDA Intel Line In at Ext Rear Jack as /devices/pci0000:00/0000:00:1b.0/input/input6
input: HDA Intel Mic at Ext Front Jack as /devices/pci0000:00/0000:00:1b.0/input/input7
input: HDA Intel Mic at Ext Rear Jack as /devices/pci0000:00/0000:00:1b.0/input/input8
input: HDA Intel Line In at Ext Rear Jack as /devices/pci0000:00/0000:00:1b.0/input/input9
input: HDA Intel Line Out at Ext Rear Jack as /devices/pci0000:00/0000:00:1b.0/input/input10
input: HDA Intel Line Out at Ext Rear Jack as /devices/pci0000:00/0000:00:1b.0/input/input11
input: HDA Intel Line Out at Ext Rear Jack as /devices/pci0000:00/0000:00:1b.0/input/input12
input: HDA Intel HP Out at Ext Front Jack as /devices/pci0000:00/0000:00:1b.0/input/input13
firewire_core: created device fw0: GUID 0090270001b72299, S400
device-mapper: multipath: version 1.0.5 loaded
device-mapper: table: 253:2: zero-length target
device-mapper: ioctl: error adding target to table
EXT3 FS on dm-0, internal journal
kjournald starting. Commit interval 5 seconds
EXT3 FS on sda1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
swap_cgroup: uses 7936 bytes of vmalloc for pointer array space and 4063232 bytes to hold mem_cgroup pointers on swap
swap_cgroup can be disabled by noswapaccount boot option.
Adding 2031608k swap on /dev/mapper/VolGroup00-LogVol01. Priority:-1 extents:1 across:2031608k
.........

Thank you
Glee
 
Old 08-04-2009, 06:15 PM   #12
mek
Member
 
Registered: Jul 2009
Location: Buenos Aires, Argentina
Distribution: fedora, slackware, *bsd
Posts: 42

Rep: Reputation: 17
just in case, have you tried a hardware test of this hard disk from your BIOS?
it's really weird, is there any error in /var/log/messages ? Could you paste cit completely/partially into pastebin.ca, just in case that you find something weird.
 
Old 08-05-2009, 02:54 PM   #13
gleeman
LQ Newbie
 
Registered: Jul 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Hi Matías

Found my problem. It is well documented on the Fedora forums with 10 to 11 upgrades (I just did not know what I was looking for).

https://bugzilla.redhat.com/show_bug.cgi?id=505291

This drive was used on a promise raid card 2 years ago and I did not remove the raid meta-data from it. I booted with a Fedora 9 live CD and the drive came back to life(with a few tweaks).

Thank you for all you help.
Glee
 
Old 08-05-2009, 08:53 PM   #14
mek
Member
 
Registered: Jul 2009
Location: Buenos Aires, Argentina
Distribution: fedora, slackware, *bsd
Posts: 42

Rep: Reputation: 17
great! i'm glad to hear that it's solved
 
  


Reply

Tags
ext3, fedora, lvm, mount, upgrade, uuid, volume


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
Growing an LVM Partition in Fedora 10 using Logical Volume Manager Lee_Ball Linux - General 1 01-29-2009 09:14 AM
upgrade system with lvm on software raid-1 data volume w/o losing data BinWondrin Linux - General 1 01-13-2009 04:25 PM
Fedora LVM volume group & Physical Volume resize problem gabeyg Fedora 1 05-14-2008 12:26 PM
upgrade to fedora 8 how to mount old lvm ? gfem Fedora 1 12-10-2007 01:53 PM
upgrade Redhat 9 to Fedora with /boot volume too small jmanjohn61 Fedora 5 01-11-2004 03:26 PM


All times are GMT -5. The time now is 08:46 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration