| Summary: | Dracut (or udev) fails to find root partition | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Javier Alejandro Castro <javier.alejandro.castro> | ||||||
| Component: | util-linux-ng | Assignee: | Karel Zak <kzak> | ||||||
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
| Severity: | high | Docs Contact: | |||||||
| Priority: | urgent | ||||||||
| Version: | 15 | CC: | awilliam, harald, jonathan, kzak | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | x86_64 | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2011-05-18 17:51:57 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Attachments: |
|
||||||||
|
Description
Javier Alejandro Castro
2011-05-03 22:00:30 UTC
Does it help, if you add "rd.lvm.vg=vg_server" to the kernel command line? Nop. I tested with that, and doesnt work. can you boot with "rd.debug" , do your magic to boot to the real root and then attach /run/initramfs/init.log to this bugzilla? Created attachment 497114 [details]
init.log from rd.debug
Here is it.
I doubt if it is a dracut or a udev problem. As far as i understand from the log, it seems dracut waits in a loop for the root to become visible, but it cant.
I dont know if there is a way to enable udev log too to be included on the same init.log ??
can you give me in the dracut shell the output of: # udevadm info --query=all --name=/dev/sda2 Created attachment 497375 [details]
Output of udevadm info --query=all --name=/dev/sda2
(In reply to comment #6) > Created attachment 497375 [details] > Output of udevadm info --query=all --name=/dev/sda2 ok, somehow ID_FS_TYPE is missing here... what is the output of: # blkid -o udev -p /dev/sda2 Output is : sudo blkid -o udev -p /dev/sda2 ID_PART_TABLE_TYPE=dos ID_PART_ENTRY_SCHEME=dos ID_PART_ENTRY_TYPE=0x8e ID_PART_ENTRY_NUMBER=2 There are advances on this? I think Fedora 15 final release should depend on fixing it! https://bugzilla.redhat.com/show_bug.cgi?id=617261 Right? your sda2 is strange, has this been an extended partition once? So, I see: [root@server log]# blkid ... /dev/sda2: UUID="eaxYEY-xrre-Ow6X-VeR9-ATbB-6Xh1-tVSZSy" TYPE="LVM2_member" [root@server log]# blkid -o udev .... ID_FS_UUID=eaxYEY-xrre-Ow6X-VeR9-ATbB-6Xh1-tVSZSy ID_FS_UUID_ENC=eaxYEY-xrre-Ow6X-VeR9-ATbB-6Xh1-tVSZSy ID_FS_TYPE=LVM2_member and # sudo blkid -o udev -p /dev/sda2 ID_PART_TABLE_TYPE=dos ID_PART_ENTRY_SCHEME=dos ID_PART_ENTRY_TYPE=0x8e ID_PART_ENTRY_NUMBER=2 and no ID_FS_TYPE in udev properties. kzak, any ideas? Halard: No, it has been al LVM all the way Javier, what is the output of: BLKID_DEBUG=0xffff blkid -o used -p /dev/sda2 and BLKID_DEBUG=0xffff blkid /dev/sda2 and fdisk -l /dev/sda and hexdump -C -n 512 /dev/sda2 and rpm -qf /sbin/blkid It really seems that there is any old partition table on sda2 (it was probably extended partition some time ago). BTW, how old is LVM on the device? LVM should be able to wipe 8KiB from the beginning of the device, so there should not be any unexpected stuff. Output requested:
[root@server ~]# BLKID_DEBUG=0xffff blkid -o udev -p /dev/sda2
libblkid: debug mask set to 0xffff.
ready for low-probing, offset=0, size=159829525504
found entire diskname for devno 0x0802 as sda
whole-disk: NO, regfile: NO
zeroize wiper
chain safeprobe superblocks ENABLED
--> starting probing loop [SUBLKS idx=-1]
[0] linux_raid_member:
call probefunc()
buffer read: off=159829458944 len=64
buffer read: off=159829516288 len=256
buffer read: off=0 len=256
buffer read: off=4096 len=256
[1] ddf_raid_member:
call probefunc()
buffer read: off=159829524992 len=512
buffer read: off=159829393920 len=512
[2] isw_raid_member:
call probefunc()
[3] lsi_mega_raid_member:
call probefunc()
[4] via_raid_member:
call probefunc()
[5] silicon_medley_raid_member:
call probefunc()
[6] nvidia_raid_member:
call probefunc()
[7] promise_fasttrack_raid_member:
call probefunc()
[8] hpt45x_raid_member:
call probefunc()
[9] hpt37x_raid_member:
buffer read: off=4096 len=1024
reuse buffer: off=4096 len=1024
[10] adaptec_raid_member:
call probefunc()
[11] jmicron_raid_member:
call probefunc()
[12] drbd:
call probefunc()
buffer read: off=159829521408 len=4096
[13] LVM2_member:
buffer read: off=0 len=1024
magic sboff=536, kboff=0
call probefunc()
reuse buffer: off=0 len=1024
assigning UUID [superblocks]
assigning VERSION [superblocks]
wiper set to superblocks::LVM2_member off=0 size=8192
assigning TYPE [superblocks]
assigning USAGE [superblocks]
<-- leaving probing loop (type=LVM2_member) [SUBLKS idx=13]
chain safeprobe topology DISABLED
chain safeprobe partitions ENABLED
--> starting probing loop [PARTS idx=-1]
reuse buffer: off=0 len=1024
reuse buffer: off=0 len=1024
reuse buffer: off=0 len=1024
reuse buffer: off=0 len=1024
magic sboff=510, kboff=0
dos: ---> call probefunc()
reuse buffer: off=0 len=1024
reuse buffer: off=0 len=1024
reuse buffer: off=0 len=1024
reuse buffer: off=0 len=1024
reuse buffer: off=0 len=1024
reuse buffer: off=0 len=1024
reuse buffer: off=0 len=1024
reuse buffer: off=0 len=1024
magic sboff=0, kboff=0
reuse buffer: off=0 len=1024
reuse buffer: off=0 len=1024
wiped area detected -- ignore previous results
zeroize wiper
dos: <--- (rc = 0)
assigning PTTYPE [partitions]
<-- leaving probing loop (type=dos) [PARTS idx=3]
found devno 0x0800 as /dev/sda
parts: 8:2: starting whole-disk probing: /dev/sda
ready for low-probing, offset=0, size=160041885696
found entire diskname for devno 0x0800 as sda
whole-disk: YES, regfile: NO
partlist reseted
parts: initialized partitions list (0x1a39720, size=0)
--> starting probing loop [PARTS idx=-1]
buffer read: off=0 len=1024
reuse buffer: off=0 len=1024
reuse buffer: off=0 len=1024
reuse buffer: off=0 len=1024
magic sboff=510, kboff=0
dos: ---> call probefunc()
reuse buffer: off=0 len=1024
reuse buffer: off=0 len=1024
reuse buffer: off=0 len=1024
reuse buffer: off=0 len=1024
reuse buffer: off=0 len=1024
reuse buffer: off=0 len=1024
reuse buffer: off=0 len=1024
reuse buffer: off=0 len=1024
magic sboff=0, kboff=0
reuse buffer: off=0 len=1024
reuse buffer: off=0 len=1024
parts: create a new partition table (0x1a39b90, type=dos, offset=446)
parts: add partition (0x1a39bd0 start=63, size=409600, table=0x1a39b90)
parts: add partition (0x1a39cd0 start=409663, size=312167042, table=0x1a39b90)
dos: <--- (rc = 0)
<-- leaving probing loop (type=dos) [PARTS idx=3]
returning partitions binary data
assigning PART_ENTRY_SCHEME [partitions]
assigning PART_ENTRY_TYPE [partitions]
assigning PART_ENTRY_NUMBER [partitions]
reseting probing buffers
buffers summary: 1024 bytes by 1 read() call(s)
zeroize wiper
returning PTTYPE value
ID_PART_TABLE_TYPE=dos
returning PART_ENTRY_SCHEME value
ID_PART_ENTRY_SCHEME=dos
returning PART_ENTRY_TYPE value
ID_PART_ENTRY_TYPE=0x8e
returning PART_ENTRY_NUMBER value
ID_PART_ENTRY_NUMBER=2
reseting probing buffers
buffers summary: 8000 bytes by 9 read() call(s)
[root@server ~]# BLKID_DEBUG=0xffff blkid /dev/sda2
libblkid: debug mask set to 0xffff.
creating blkid cache (using default cache)
reading config file: /etc/blkid.conf.
/etc/blkid.conf: does not exist, using built-in default
reading cache file /etc/blkid/blkid.tab
line: <device DEVNO="0x0801" TIME="1304459888.465219"
UUID="f44f6010-29e2-46eb-be96-5a0006267ddc"
TYPE="ext4">/dev/sda1</device>
found device header: <device DEVNO="0x0801" TIME="1304459888.465219"
UUID="f44f6010-29e2-46eb-be96-5a0006267ddc"
TYPE="ext4">/dev/sda1</device>
device should be /dev/sda1</device>
found device trailer </device>
found dev /dev/sda1
tag: DEVNO="0x0801"
tag: TIME="1304459888.465219"
creating new cache tag head UUID
tag: UUID="f44f6010-29e2-46eb-be96-5a0006267ddc"
creating new cache tag head TYPE
tag: TYPE="ext4"
dev: name = /dev/sda1
dev: DEVNO="0x801"
dev: TIME="1304459888.465219"
dev: PRI="0"
dev: flags = 0x00000000
tag: UUID="f44f6010-29e2-46eb-be96-5a0006267ddc"
tag: TYPE="ext4"
line: <device DEVNO="0x0802" TIME="1304459888.465246"
UUID="eaxYEY-xrre-Ow6X-VeR9-ATbB-6Xh1-tVSZSy"
TYPE="LVM2_member">/dev/sda2</device>
found device header: <device DEVNO="0x0802" TIME="1304459888.465246"
UUID="eaxYEY-xrre-Ow6X-VeR9-ATbB-6Xh1-tVSZSy"
TYPE="LVM2_member">/dev/sda2</device>
device should be /dev/sda2</device>
found device trailer </device>
found dev /dev/sda2
tag: DEVNO="0x0802"
tag: TIME="1304459888.465246"
found cache tag head UUID
tag: UUID="eaxYEY-xrre-Ow6X-VeR9-ATbB-6Xh1-tVSZSy"
found cache tag head TYPE
tag: TYPE="LVM2_member"
dev: name = /dev/sda2
dev: DEVNO="0x802"
dev: TIME="1304459888.465246"
dev: PRI="0"
dev: flags = 0x00000000
tag: UUID="eaxYEY-xrre-Ow6X-VeR9-ATbB-6Xh1-tVSZSy"
tag: TYPE="LVM2_member"
line: <device DEVNO="0xfd00" TIME="1304459888.465268" PRI="45"
UUID="134dffc3-9bfb-4827-bc98-c7fb96e6ae96"
TYPE="ext4">/dev/mapper/vg_server-lv_root</device>
found device header: <device DEVNO="0xfd00" TIME="1304459888.465268"
PRI="45" UUID="134dffc3-9bfb-4827-bc98-c7fb96e6ae96"
TYPE="ext4">/dev/mapper/vg_server-lv_root</device>
device should be /dev/mapper/vg_server-lv_root</device>
found device trailer </device>
found dev /dev/mapper/vg_server-lv_root
tag: DEVNO="0xfd00"
tag: TIME="1304459888.465268"
tag: PRI="45"
found cache tag head UUID
tag: UUID="134dffc3-9bfb-4827-bc98-c7fb96e6ae96"
found cache tag head TYPE
tag: TYPE="ext4"
dev: name = /dev/mapper/vg_server-lv_root
dev: DEVNO="0xfd00"
dev: TIME="1304459888.465268"
dev: PRI="45"
dev: flags = 0x00000000
tag: UUID="134dffc3-9bfb-4827-bc98-c7fb96e6ae96"
tag: TYPE="ext4"
line: <device DEVNO="0xfd01" TIME="1304459888.465346" PRI="45"
UUID="c52cd3af-1b38-484c-ba5e-28d5c4883c72"
TYPE="swap">/dev/mapper/vg_server-lv_swap</device>
found device header: <device DEVNO="0xfd01" TIME="1304459888.465346"
PRI="45" UUID="c52cd3af-1b38-484c-ba5e-28d5c4883c72"
TYPE="swap">/dev/mapper/vg_server-lv_swap</device>
device should be /dev/mapper/vg_server-lv_swap</device>
found device trailer </device>
found dev /dev/mapper/vg_server-lv_swap
tag: DEVNO="0xfd01"
tag: TIME="1304459888.465346"
tag: PRI="45"
found cache tag head UUID
tag: UUID="c52cd3af-1b38-484c-ba5e-28d5c4883c72"
found cache tag head TYPE
tag: TYPE="swap"
dev: name = /dev/mapper/vg_server-lv_swap
dev: DEVNO="0xfd01"
dev: TIME="1304459888.465346"
dev: PRI="45"
dev: flags = 0x00000000
tag: UUID="c52cd3af-1b38-484c-ba5e-28d5c4883c72"
tag: TYPE="swap"
found devname /dev/sda2 in cache
need to revalidate /dev/sda2 (cache time 1304459888.465246, stat time
1305119613.739878,
time since last check 927828)
ready for low-probing, offset=0, size=159829525504
found entire diskname for devno 0x0802 as sda
whole-disk: NO, regfile: NO
superblocks: a new probing type-filter initialized
zeroize wiper
chain probe superblocks ENABLED (idx=-1)
--> starting probing loop [SUBLKS idx=-1]
[13] LVM2_member:
buffer read: off=0 len=1024
magic sboff=536, kboff=0
call probefunc()
reuse buffer: off=0 len=1024
assigning UUID [superblocks]
wiper set to superblocks::LVM2_member off=0 size=8192
assigning TYPE [superblocks]
<-- leaving probing loop (type=LVM2_member) [SUBLKS idx=13]
returning UUID value
returning TYPE value
/dev/sda2: devno 0x0802, type LVM2_member
reseting probing buffers
buffers summary: 1024 bytes by 1 read() call(s)
/dev/sda2: UUID="eaxYEY-xrre-Ow6X-VeR9-ATbB-6Xh1-tVSZSy" TYPE="LVM2_member"
writing cache file /etc/blkid/blkid.tab (really /etc/blkid/blkid.tab-I5Rznv)
device /dev/sda1, type ext4
device /dev/sda2, type LVM2_member
device /dev/mapper/vg_server-lv_root, type ext4
device /dev/mapper/vg_server-lv_swap, type swap
moved temp cache /etc/blkid/blkid.tab-I5Rznv
freeing cache struct
freeing dev /dev/sda1 (ext4)
dev: name = /dev/sda1
dev: DEVNO="0x801"
dev: TIME="1304459888.465219"
dev: PRI="0"
dev: flags = 0x00000000
tag: UUID="f44f6010-29e2-46eb-be96-5a0006267ddc"
tag: TYPE="ext4"
freeing tag UUID=f44f6010-29e2-46eb-be96-5a0006267ddc
tag: UUID="f44f6010-29e2-46eb-be96-5a0006267ddc"
freeing tag TYPE=ext4
tag: TYPE="ext4"
freeing dev /dev/sda2 (LVM2_member)
dev: name = /dev/sda2
dev: DEVNO="0x802"
dev: TIME="1305387716.264642"
dev: PRI="0"
dev: flags = 0x00000001
tag: UUID="eaxYEY-xrre-Ow6X-VeR9-ATbB-6Xh1-tVSZSy"
tag: TYPE="LVM2_member"
freeing tag UUID=eaxYEY-xrre-Ow6X-VeR9-ATbB-6Xh1-tVSZSy
tag: UUID="eaxYEY-xrre-Ow6X-VeR9-ATbB-6Xh1-tVSZSy"
freeing tag TYPE=LVM2_member
tag: TYPE="LVM2_member"
freeing dev /dev/mapper/vg_server-lv_root (ext4)
dev: name = /dev/mapper/vg_server-lv_root
dev: DEVNO="0xfd00"
dev: TIME="1304459888.465268"
dev: PRI="45"
dev: flags = 0x00000000
tag: UUID="134dffc3-9bfb-4827-bc98-c7fb96e6ae96"
tag: TYPE="ext4"
freeing tag UUID=134dffc3-9bfb-4827-bc98-c7fb96e6ae96
tag: UUID="134dffc3-9bfb-4827-bc98-c7fb96e6ae96"
freeing tag TYPE=ext4
tag: TYPE="ext4"
freeing dev /dev/mapper/vg_server-lv_swap (swap)
dev: name = /dev/mapper/vg_server-lv_swap
dev: DEVNO="0xfd01"
dev: TIME="1304459888.465346"
dev: PRI="45"
dev: flags = 0x00000000
tag: UUID="c52cd3af-1b38-484c-ba5e-28d5c4883c72"
tag: TYPE="swap"
freeing tag UUID=c52cd3af-1b38-484c-ba5e-28d5c4883c72
tag: UUID="c52cd3af-1b38-484c-ba5e-28d5c4883c72"
freeing tag TYPE=swap
tag: TYPE="swap"
freeing tag UUID=(NULL)
tag: UUID="(null)"
freeing tag TYPE=(NULL)
tag: TYPE="(null)"
[root@server ~]#
[root@server ~]# fdisk -l /dev/sda
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, 312581808 sectores en total
Units = sectores of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Identificador del disco: 0x0008423a
Disposit. Inicio Comienzo Fin Bloques Id Sistema
/dev/sda1 * 63 409662 204800 83 Linux
/dev/sda2 409663 312576704 156083521 8e Linux LVM
[root@server ~]#
[root@server ~]# hexdump -C -n 512 /dev/sda2
00000000 eb 48 90 00 00 00 00 00 00 00 00 00 00 00 00 00 |.H..............|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 02 |................|
00000040 ff 00 00 80 45 44 00 00 00 08 fa 90 90 f6 c2 80 |....ED..........|
00000050 75 02 b2 80 ea 59 7c 00 00 31 c0 8e d8 8e d0 bc |u....Y|..1......|
00000060 00 20 fb a0 40 7c 3c ff 74 02 88 c2 52 f6 c2 80 |. ..@|<.t...R...|
00000070 74 54 b4 41 bb aa 55 cd 13 5a 52 72 49 81 fb 55 |tT.A..U..ZRrI..U|
00000080 aa 75 43 a0 41 7c 84 c0 75 05 83 e1 01 74 37 66 |.uC.A|..u....t7f|
00000090 8b 4c 10 be 05 7c c6 44 ff 01 66 8b 1e 44 7c c7 |.L...|.D..f..D|.|
000000a0 04 10 00 c7 44 02 01 00 66 89 5c 08 c7 44 06 00 |....D...f.\..D..|
000000b0 70 66 31 c0 89 44 04 66 89 44 0c b4 42 cd 13 72 |pf1..D.f.D..B..r|
000000c0 05 bb 00 70 eb 7d b4 08 cd 13 73 0a f6 c2 80 0f |...p.}....s.....|
000000d0 84 f0 00 e9 8d 00 be 05 7c c6 44 ff 00 66 31 c0 |........|.D..f1.|
000000e0 88 f0 40 66 89 44 04 31 d2 88 ca c1 e2 02 88 e8 |..@f.D.1........|
000000f0 88 f4 40 89 44 08 31 c0 88 d0 c0 e8 02 66 89 04 |..@.D.1......f..|
00000100 66 a1 44 7c 66 31 d2 66 f7 34 88 54 0a 66 31 d2 |f.D|f1.f.4.T.f1.|
00000110 66 f7 74 04 88 54 0b 89 44 0c 3b 44 08 7d 3c 8a |f.t..T..D.;D.}<.|
00000120 54 0d c0 e2 06 8a 4c 0a fe c1 08 d1 8a 6c 0c 5a |T.....L......l.Z|
00000130 8a 74 0b bb 00 70 8e c3 31 db b8 01 02 cd 13 72 |.t...p..1......r|
00000140 2a 8c c3 8e 06 48 7c 60 1e b9 00 01 8e db 31 f6 |*....H|`......1.|
00000150 31 ff fc f3 a5 1f 61 ff 26 42 7c be 7f 7d e8 40 |1.....a.&B|..}.@|
00000160 00 eb 0e be 84 7d e8 38 00 eb 06 be 8e 7d e8 30 |.....}.8.....}.0|
00000170 00 be 93 7d e8 2a 00 eb fe 47 52 55 42 20 00 47 |...}.*...GRUB .G|
00000180 65 6f 6d 00 48 61 72 64 20 44 69 73 6b 00 52 65 |eom.Hard Disk.Re|
00000190 61 64 00 20 45 72 72 6f 72 00 bb 01 00 b4 0e cd |ad. Error.......|
000001a0 10 ac 3c 00 75 f4 c3 00 00 00 00 00 00 00 00 00 |..<.u...........|
000001b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200
[root@server ~]#
[root@server ~]# rpm -qf /sbin/blkid
util-linux-2.19.1-1.fc15.x86_64
[root@server ~]#
Wait for your help/comments on this!
Please, when nominating a bug as a blocker, note this, and explain why you believe it should be one, with reference to the release criteria - https://fedoraproject.org/wiki/Fedora_Release_Criteria . This makes it much easier to evaluate, especially when the bug has a long comment history like this one. This seems like an issue with your particular LVM setup; is there a reason to believe this bug would affect a wider range of systems? -- Fedora Bugzappers volunteer triage team https://fedoraproject.org/wiki/BugZappers Adam, i dont know really if i will affect a wider range of systems. nobody could yet give me a possible solution to my problem, so i cannot confirm is a issue "particular" to me. My LVM was created by Fedora tools (from version 14 or 13 i think). So i was hoping that Fedora 15 could "just work" with it? I dont know: the solution is to reinstall all my system? Or there is some workaround to avoid that? This is not blocker from my point of view, your problem is very uncommon. LVM wipes first 8KiB on the device, the begin of your device is not wiped (see 0x55 0xAA, grub stuff, ...). It means that the device was modified later after LVM initialization. This fact was detected by libblkid and LVM signature was ignored. The solution is to remove the obsolete partition table from sda2. Backup first two sectors: dd if=/dev/sda2 of=~/backup bs=512 count=2 and wipe 2 bytes (0x55AA) from the device: dd if=/dev/zero of=/dev/sda2 seek=510 conv=notrunc count=2 bs=1 After this change the partition table will be invisible for libblkid. Please, be careful and think twice, you can lost your data. Karel, it worked just fine!. Thanks and sorry to you all for the time you lost on this. |