Gentoo Archives: gentoo-user

From: Peter Kelly <linuxpete@×××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Missing LVM2 drive after upgrade/reboot
Date: Sat, 10 Dec 2005 22:47:34
Message-Id: 200512101640.29852.linuxpete@satx.rr.com
1 Holas,
2
3 After a week or so of upgrading gcc, emerge -e world/system, watching hal/dbus
4 toggle between +/- 0.5 versions, and having gentoo upgrade udev while I'm
5 doing all this, I've finally got a clean, rebuilt system.
6 revdep-rebuild gives comes up clean.
7 emerge -autvDN world comes up empty.
8 emerge -a depclean says I don't have to do anything.
9
10 However, upon reboot, I can't get a USB backup drive to mount correctly.
11 It's an LVM2 partition that should show up as vgusbhd, mounted to /mnt/usbhd.
12 Something seems to die between vgscan finding the drive/partition, and udev
13 creating a /dev/mapper/vgusb* mountpoint. It has no problem finding the
14 other /hd* LVM2 partitions. Seems only the /dev/sda partition is missing.
15 Of course, it's the only usb/sd* drive on the system.
16
17 crichton ~ # vgscan
18 Reading all physical volumes. This may take a while...
19 Found volume group "vgiso" using metadata type lvm2
20 Found volume group "vg" using metadata type lvm2
21 Found volume group "vgexport" using metadata type lvm2
22 Found volume group "vgusbhd" using metadata type lvm2
23
24 crichton ~ # ll /dev/vgusb/usbhd
25 lrwxrwxrwx 1 root root 7 Dec 10 16:07 /dev/vgusb/usbhd -> ../sda1
26
27 And the udev rule that seems to work, since there is a link
28 BUS="usb", KERNEL="sd*1", SYSFS{product}="USB 2.0 Storage Device",
29 SYSFS{serial}="000422222000000*****", NAME="%k", SYMLINK="vgusb/usbhd"
30
31 crichton ~ # ll /dev/mapper/
32 total 0
33 drwxr-xr-x 2 root root 200 Dec 10 15:59 .
34 drwxr-xr-x 18 root root 13940 Dec 10 16:14 ..
35 crw-rw---- 1 root root 10, 63 Dec 10 15:59 control
36 brw------- 1 root root 254, 4 Dec 10 15:59 vg-portage
37 brw------- 1 root root 254, 5 Dec 10 15:59 vg-source
38 brw------- 1 root root 254, 3 Dec 10 15:59 vg-sysbackup
39 brw------- 1 root root 254, 1 Dec 10 15:59 vg-usr
40 brw------- 1 root root 254, 2 Dec 10 15:59 vg-usrlocal
41 brw------- 1 root root 254, 6 Dec 10 15:59 vgexport-export
42 brw------- 1 root root 254, 0 Dec 10 15:59 vgiso-isoserver
43
44 As you can see, there is no /dev/mapper/vgusb.
45 >From /etc/fstab...
46 /dev/mapper/vgusbhd-usbhd /mnt/usbhd ext3 atime 0 0
47
48 Trying to mount the drive directly to /dev/sda1 doesn't work, either
49
50 crichton ~ # mount -t ext3 /dev/sda1 /mnt/usbhd/
51 mount: wrong fs type, bad option, bad superblock on /dev/sda1,
52 missing codepage or other error
53 In some cases useful info is found in syslog - try
54 dmesg | tail or so
55
56
57 crichton ~ # dmesg | tail
58 <snip>
59 VFS: Can't find ext3 filesystem on dev sda1.
60
61 The drive has an ext3 fs on it. It worked until the reboot. But it's (as
62 indicated) an LVM partition.
63
64 crichton ~ # fdisk -l
65 <snip>
66 Disk /dev/sda: 251.0 GB, 251000193024 bytes
67 255 heads, 63 sectors/track, 30515 cylinders
68 Units = cylinders of 16065 * 512 = 8225280 bytes
69
70 Device Boot Start End Blocks Id System
71 /dev/sda1 1 9119 73248336 8e Linux LVM
72
73 So, is there a simple command that will get me going? Everything I saw on
74 Google says "upon reboot, you should have..."
75 I don't.
76
77 Thanks.
78
79 Peter
80 --
81 Misery loves company, but company does not reciprocate.
82
83 --
84 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Missing LVM2 drive after upgrade/reboot Richard Fish <bigfish@××××××××××.org>
Re: [gentoo-user] Missing LVM2 drive after upgrade/reboot Thomas Harold <tgh@××××××××.com>