Bug 701800 - Dracut (or udev) fails to find root partition
Summary: Dracut (or udev) fails to find root partition
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: util-linux-ng
Version: 15
Hardware: x86_64
OS: Linux
urgent
high
Target Milestone: ---
Assignee: Karel Zak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-03 22:00 UTC by Javier Alejandro Castro
Modified: 2011-05-18 17:51 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-18 17:51:57 UTC
Type: ---


Attachments (Terms of Use)
init.log from rd.debug (54.55 KB, text/plain)
2011-05-05 14:36 UTC, Javier Alejandro Castro
no flags Details
Output of udevadm info --query=all --name=/dev/sda2 (2.01 KB, text/plain)
2011-05-06 14:53 UTC, Javier Alejandro Castro
no flags Details

Description Javier Alejandro Castro 2011-05-03 22:00:30 UTC
Description of problem:

I've upgraded F14 to F15 beta. On restart it failed to boot.

Version-Release number of selected component (if applicable):

udev-167-4.fc15.x86_64
dracut-009-6.fc15.noarch

How reproducible:

Always


Steps to Reproduce:
1. Boot the PC
  
Actual results:

dracut fails saying it cant find the root partition

Expected results:

Boot just fine

Additional info:

Now i start the machine by entering rdshell on kernel boot (grub), then executing lvm_scan, then type exit... and boot goes just fine to GDM

I tried getting more info from udev (rdudevinfo) but i get much text that i cant handle and that text dont get logged anywhere.

Here i inform all the data as suggested on http://fedoraproject.org/wiki/How_to_debug_Dracut_problems#AllInfo

Command line: ro root=/dev/mapper/vg_server-lv_root LANG=es_ES.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=es rdshell

Fstab:
#
# /etc/fstab
# Created by anaconda on Fri Dec 11 16:06:21 2009
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_server-lv_root /                       ext4    defaults        1 1
UUID=f44f6010-29e2-46eb-be96-5a0006267ddc /boot       ext4    defaults        1 2
/dev/mapper/vg_server-lv_swap swap                    swap    defaults        0 0
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

[root@server log]# dmsetup ls --tree
vg_server-lv_swap (253:1)
 └─ (8:2)
vg_server-lv_root (253:0)
 └─ (8:2)

[root@server log]# blkid
/dev/sda1: UUID="f44f6010-29e2-46eb-be96-5a0006267ddc" TYPE="ext4" 
/dev/sda2: UUID="eaxYEY-xrre-Ow6X-VeR9-ATbB-6Xh1-tVSZSy" TYPE="LVM2_member" 
/dev/mapper/vg_server-lv_root: UUID="134dffc3-9bfb-4827-bc98-c7fb96e6ae96" TYPE="ext4" 
/dev/mapper/vg_server-lv_swap: UUID="c52cd3af-1b38-484c-ba5e-28d5c4883c72" TYPE="swap" 

[root@server log]# blkid -o udev
ID_FS_UUID=f44f6010-29e2-46eb-be96-5a0006267ddc
ID_FS_UUID_ENC=f44f6010-29e2-46eb-be96-5a0006267ddc
ID_FS_TYPE=ext4

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

ID_FS_UUID=134dffc3-9bfb-4827-bc98-c7fb96e6ae96
ID_FS_UUID_ENC=134dffc3-9bfb-4827-bc98-c7fb96e6ae96
ID_FS_TYPE=ext4

ID_FS_UUID=c52cd3af-1b38-484c-ba5e-28d5c4883c72
ID_FS_UUID_ENC=c52cd3af-1b38-484c-ba5e-28d5c4883c72
ID_FS_TYPE=swap

/etc/dracut.conf:
[root@server log]# cat /etc/dracut.conf
# Sample dracut config file

logfile=/var/log/dracut.log
fileloglvl=6

# Specific list of dracut modules to use
#dracutmodules+=""

# Dracut modules to omit
#omit_dracutmodules+=""

# Dracut modules to add to the default
#add_dracutmodules+=""

# additional kernel modules to the default
#add_drivers+=""

# list of kernel filesystem modules to be included in the generic initramfs
#filesystems+=""

# build initrd only to boot current hardware
#hostonly="yes"
#

# install local /etc/mdadm.conf
mdadmconf="yes"

# install local /etc/lvm/lvm.conf
lvmconf="yes"

[root@server log]# cat /etc/dracut.conf
# Sample dracut config file

logfile=/var/log/dracut.log
fileloglvl=6

# Specific list of dracut modules to use
#dracutmodules+=""

# Dracut modules to omit
#omit_dracutmodules+=""

# Dracut modules to add to the default
#add_dracutmodules+=""

# additional kernel modules to the default
#add_drivers+=""

# list of kernel filesystem modules to be included in the generic initramfs
#filesystems+=""

# build initrd only to boot current hardware
#hostonly="yes"
#

# install local /etc/mdadm.conf
mdadmconf="yes"

# install local /etc/lvm/lvm.conf
lvmconf="yes"


[root@server log]# lvm vgdisplay
  --- Volume group ---
  VG Name               vg_server
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  3
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               2
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               148,85 GiB
  PE Size               4,00 MiB
  Total PE              38106
  Alloc PE / Size       38106 / 148,85 GiB
  Free  PE / Size       0 / 0   
  VG UUID               Yw3lz0-joQX-2BCn-icxh-31rw-JLNn-rJYJXY
   

[root@server log]# lvm lvdisplay
  --- Logical volume ---
  LV Name                /dev/vg_server/lv_root
  VG Name                vg_server
  LV UUID                Pt8Pk0-3EbN-69Iv-RvL5-GT0G-vHEy-zyUrnX
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                142,98 GiB
  Current LE             36602
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0
   
  --- Logical volume ---
  LV Name                /dev/vg_server/lv_swap
  VG Name                vg_server
  LV UUID                lveFp0-3tpM-r2WZ-WBKU-loEC-eEfs-aGqd2p
  LV Write Access        read/write
  LV Status              available
  # open                 2
  LV Size                5,88 GiB
  Current LE             1504
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1
   



Hope this helps to solve the problem. Thanks

Comment 1 Harald Hoyer 2011-05-04 08:51:21 UTC
Does it help, if you add "rd.lvm.vg=vg_server" to the kernel command line?

Comment 2 Javier Alejandro Castro 2011-05-04 16:49:31 UTC
Nop. I tested with that, and doesnt work.

Comment 3 Harald Hoyer 2011-05-05 11:10:23 UTC
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?

Comment 4 Javier Alejandro Castro 2011-05-05 14:36:14 UTC
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 ??

Comment 5 Harald Hoyer 2011-05-06 10:03:47 UTC
can you give me in the dracut shell the output of:

# udevadm info --query=all --name=/dev/sda2

Comment 6 Javier Alejandro Castro 2011-05-06 14:53:27 UTC
Created attachment 497375 [details]
Output of udevadm info --query=all --name=/dev/sda2

Comment 7 Harald Hoyer 2011-05-09 09:22:43 UTC
(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

Comment 8 Javier Alejandro Castro 2011-05-09 13:35:42 UTC
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

Comment 9 Javier Alejandro Castro 2011-05-12 00:58:48 UTC
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?

Comment 10 Harald Hoyer 2011-05-12 10:36:53 UTC
your sda2 is strange, has this been an extended partition once?

Comment 11 Harald Hoyer 2011-05-12 10:52:39 UTC
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?

Comment 12 Javier Alejandro Castro 2011-05-12 17:19:58 UTC
Halard: No, it has been al LVM all the way

Comment 13 Karel Zak 2011-05-13 07:37:28 UTC
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).

Comment 14 Karel Zak 2011-05-13 08:39:54 UTC
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.

Comment 15 Javier Alejandro Castro 2011-05-14 15:44:43 UTC
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!

Comment 16 Adam Williamson 2011-05-15 16:22:16 UTC
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

Comment 17 Javier Alejandro Castro 2011-05-15 16:28:11 UTC
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?

Comment 18 Karel Zak 2011-05-16 07:15:00 UTC
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.

Comment 19 Javier Alejandro Castro 2011-05-18 17:51:57 UTC
Karel, it worked just fine!. Thanks and sorry to you all for the time you lost on this.


Note You need to log in before you can comment on or make changes to this bug.