[Bug 397816] New: kpartx -a /dev/sda creates nothing
https://bugzilla.novell.com/show_bug.cgi?id=397816 Summary: kpartx -a /dev/sda creates nothing Product: openSUSE 11.0 Version: Factory Platform: PC OS/Version: openSUSE 11.0 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: mrmazda@ij.net QAContact: qa@suse.de CC: hare@novell.com Found By: --- gx260:~ # kpartx -l /dev/sda sda1 : 0 208782 /dev/sda 63 sda2 : 0 16065 /dev/sda 208845 sda3 : 0 514080 /dev/sda 224910 sda4 : 0 311805585 /dev/sda 755055 sda5 : 0 417627 /dev/dm-3 63 sda6 : 0 13108977 /dev/dm-3 433818 sda7 : 0 514017 /dev/dm-3 13542858 sda8 : 0 2104452 /dev/dm-3 14073003 sda9 : 0 9831717 /dev/dm-3 16177518 sda10 : 0 9831717 /dev/dm-3 26009298 sda11 : 0 9831717 /dev/dm-3 35841078 sda12 : 0 3277197 /dev/dm-3 45672858 sda13 : 0 14345982 /dev/dm-3 48950118 sda14 : 0 481887 /dev/dm-3 63296163 sda15 : 0 2249037 /dev/dm-3 63778113 sda16 : 0 9831717 /dev/dm-3 233151408 sda17 : 0 9831717 /dev/dm-3 242983188 sda18 : 0 9831717 /dev/dm-3 252814968 sda19 : 0 9831717 /dev/dm-3 262646748 sda20 : 0 9831717 /dev/dm-3 272478528 sda21 : 0 9831717 /dev/dm-3 282310308 sda22 : 0 9831717 /dev/dm-3 292142088 sda23 : 0 9831717 /dev/dm-3 301973868 gx260:~ # kpartx -a /dev/sda device-mapper: reload ioctl failed: Invalid argument device-mapper: reload ioctl failed: Invalid argument device-mapper: reload ioctl failed: Invalid argument device-mapper: reload ioctl failed: Invalid argument device-mapper: reload ioctl failed: Invalid argument device-mapper: reload ioctl failed: Invalid argument device-mapper: reload ioctl failed: Invalid argument device-mapper: reload ioctl failed: Invalid argument device-mapper: reload ioctl failed: Invalid argument device-mapper: reload ioctl failed: Invalid argument device-mapper: reload ioctl failed: Invalid argument device-mapper: reload ioctl failed: Invalid argument device-mapper: reload ioctl failed: Invalid argument device-mapper: reload ioctl failed: Invalid argument device-mapper: reload ioctl failed: Invalid argument device-mapper: reload ioctl failed: Invalid argument device-mapper: reload ioctl failed: Invalid argument device-mapper: reload ioctl failed: Invalid argument device-mapper: reload ioctl failed: Invalid argument device-mapper: reload ioctl failed: Invalid argument device-mapper: reload ioctl failed: Invalid argument device-mapper: reload ioctl failed: Invalid argument device-mapper: reload ioctl failed: Invalid argument gx260:~ # ll /dev/disk/by-id lrwxrwxrwx 1 root root 9 Jun 5 23:30 ata-ST3160023A_4JS0L8FE -> ../../sda lrwxrwxrwx 1 root root 10 Jun 5 23:30 ata-ST3160023A_4JS0L8FE-part1 -> ./../sda1 lrwxrwxrwx 1 root root 11 Jun 5 23:30 ata-ST3160023A_4JS0L8FE-part10 -> ./../sda10 lrwxrwxrwx 1 root root 11 Jun 5 23:30 ata-ST3160023A_4JS0L8FE-part11 -> ./../sda11 lrwxrwxrwx 1 root root 11 Jun 5 23:30 ata-ST3160023A_4JS0L8FE-part12 -> ./../sda12 lrwxrwxrwx 1 root root 11 Jun 5 23:30 ata-ST3160023A_4JS0L8FE-part13 -> ./../sda13 lrwxrwxrwx 1 root root 11 Jun 5 23:30 ata-ST3160023A_4JS0L8FE-part14 -> ./../sda14 lrwxrwxrwx 1 root root 11 Jun 5 23:30 ata-ST3160023A_4JS0L8FE-part15 -> ./../sda15 lrwxrwxrwx 1 root root 10 Jun 5 23:30 ata-ST3160023A_4JS0L8FE-part2 -> ./../sda2 lrwxrwxrwx 1 root root 10 Jun 5 23:30 ata-ST3160023A_4JS0L8FE-part3 -> ./../sda3 lrwxrwxrwx 1 root root 10 Jun 5 23:30 ata-ST3160023A_4JS0L8FE-part4 -> ./../sda4 lrwxrwxrwx 1 root root 10 Jun 5 23:30 ata-ST3160023A_4JS0L8FE-part5 -> ./../sda5 lrwxrwxrwx 1 root root 10 Jun 5 23:30 ata-ST3160023A_4JS0L8FE-part6 -> ./../sda6 lrwxrwxrwx 1 root root 10 Jun 5 23:30 ata-ST3160023A_4JS0L8FE-part7 -> ./../sda7 lrwxrwxrwx 1 root root 10 Jun 5 23:30 ata-ST3160023A_4JS0L8FE-part8 -> ./../sda8 lrwxrwxrwx 1 root root 10 Jun 5 23:30 ata-ST3160023A_4JS0L8FE-part9 -> ./../sda9 lrwxrwxrwx 1 root root 9 Jun 5 23:30 edd-int13_dev80 -> ../../sda lrwxrwxrwx 1 root root 10 Jun 5 23:30 edd-int13_dev80-part1 -> ../../sda1 lrwxrwxrwx 1 root root 11 Jun 5 23:30 edd-int13_dev80-part10 -> ../../sda10 lrwxrwxrwx 1 root root 11 Jun 5 23:30 edd-int13_dev80-part11 -> ../../sda11 lrwxrwxrwx 1 root root 11 Jun 5 23:30 edd-int13_dev80-part12 -> ../../sda12 lrwxrwxrwx 1 root root 11 Jun 5 23:30 edd-int13_dev80-part13 -> ../../sda13 lrwxrwxrwx 1 root root 11 Jun 5 23:30 edd-int13_dev80-part14 -> ../../sda14 lrwxrwxrwx 1 root root 11 Jun 5 23:30 edd-int13_dev80-part15 -> ../../sda15 lrwxrwxrwx 1 root root 10 Jun 5 23:30 edd-int13_dev80-part2 -> ../../sda2 lrwxrwxrwx 1 root root 10 Jun 5 23:30 edd-int13_dev80-part3 -> ../../sda3 lrwxrwxrwx 1 root root 10 Jun 5 23:30 edd-int13_dev80-part4 -> ../../sda4 lrwxrwxrwx 1 root root 10 Jun 5 23:30 edd-int13_dev80-part5 -> ../../sda5 lrwxrwxrwx 1 root root 10 Jun 5 23:30 edd-int13_dev80-part6 -> ../../sda6 lrwxrwxrwx 1 root root 10 Jun 5 23:30 edd-int13_dev80-part7 -> ../../sda7 lrwxrwxrwx 1 root root 10 Jun 5 23:30 edd-int13_dev80-part8 -> ../../sda8 lrwxrwxrwx 1 root root 10 Jun 5 23:30 edd-int13_dev80-part9 -> ../../sda9 lrwxrwxrwx 1 root root 9 Jun 5 23:30 scsi-SATA_ST3160023A_4JS0L8FE -> ./../sda lrwxrwxrwx 1 root root 10 Jun 5 23:30 scsi-SATA_ST3160023A_4JS0L8FE-part1 -> ./../sda1 lrwxrwxrwx 1 root root 11 Jun 5 23:30 scsi-SATA_ST3160023A_4JS0L8FE-part10 -> ./../sda10 lrwxrwxrwx 1 root root 11 Jun 5 23:30 scsi-SATA_ST3160023A_4JS0L8FE-part11 -> ./../sda11 lrwxrwxrwx 1 root root 11 Jun 5 23:30 scsi-SATA_ST3160023A_4JS0L8FE-part12 -> ./../sda12 lrwxrwxrwx 1 root root 11 Jun 5 23:30 scsi-SATA_ST3160023A_4JS0L8FE-part13 -> ./../sda13 lrwxrwxrwx 1 root root 11 Jun 5 23:30 scsi-SATA_ST3160023A_4JS0L8FE-part14 -> ./../sda14 lrwxrwxrwx 1 root root 11 Jun 5 23:30 scsi-SATA_ST3160023A_4JS0L8FE-part15 -> ./../sda15 lrwxrwxrwx 1 root root 10 Jun 5 23:30 scsi-SATA_ST3160023A_4JS0L8FE-part2 -> ./../sda2 lrwxrwxrwx 1 root root 10 Jun 5 23:30 scsi-SATA_ST3160023A_4JS0L8FE-part3 -> ./../sda3 lrwxrwxrwx 1 root root 10 Jun 5 23:30 scsi-SATA_ST3160023A_4JS0L8FE-part4 -> ./../sda4 lrwxrwxrwx 1 root root 10 Jun 5 23:30 scsi-SATA_ST3160023A_4JS0L8FE-part5 -> ./../sda5 lrwxrwxrwx 1 root root 10 Jun 5 23:30 scsi-SATA_ST3160023A_4JS0L8FE-part6 -> ./../sda6 lrwxrwxrwx 1 root root 10 Jun 5 23:30 scsi-SATA_ST3160023A_4JS0L8FE-part7 -> ./../sda7 lrwxrwxrwx 1 root root 10 Jun 5 23:30 scsi-SATA_ST3160023A_4JS0L8FE-part8 -> ./../sda8 lrwxrwxrwx 1 root root 10 Jun 5 23:30 scsi-SATA_ST3160023A_4JS0L8FE-part9 -> ./../sda9 total 0 gx260:~ # ll /dev/mapper lrwxrwxrwx 1 root root 16 Jun 5 23:30 control -> ../device-mapper sda is on ata_piix (ICH4) on original 11.0B3 installation that was upgraded to current Factory mirror about an hour before running kpartx as above. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=397816
User mrmazda@ij.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=397816#c1
--- Comment #1 from Felix Miata
https://bugzilla.novell.com/show_bug.cgi?id=397816
Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=397816
User mrmazda@ij.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=397816#c2
--- Comment #2 from Felix Miata
https://bugzilla.novell.com/show_bug.cgi?id=397816
User hare@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=397816#c3
Hannes Reinecke
https://bugzilla.novell.com/show_bug.cgi?id=397816
User mrmazda@ij.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=397816#c4
--- Comment #4 from Felix Miata
Please verify that the kpartx changelog contains:
# changelog kpartx -bash: changelog: not found # kpartx --changelog kpartx: invalid option # kpartx -v (usage) # rpm -qa | grep kpartx kpartx-0.4.7-127 # I have no idea how to find this changelog info. 0.4.7-127 is what is now on the mirrors. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=397816
User hare@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=397816#c5
--- Comment #5 from Hannes Reinecke
https://bugzilla.novell.com/show_bug.cgi?id=397816
User mrmazda@ij.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=397816#c6
Felix Miata
https://bugzilla.novell.com/show_bug.cgi?id=397816
User hare@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=397816#c7
Hannes Reinecke
https://bugzilla.novell.com/show_bug.cgi?id=397816
User hare@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=397816#c8
--- Comment #8 from Hannes Reinecke
https://bugzilla.novell.com/show_bug.cgi?id=397816
User hare@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=397816#c9
--- Comment #9 from Hannes Reinecke
https://bugzilla.novell.com/show_bug.cgi?id=397816
User hare@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=397816#c10
Hannes Reinecke
https://bugzilla.novell.com/show_bug.cgi?id=397816
User mrmazda@ij.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=397816#c11
--- Comment #11 from Felix Miata
Oh for crying out loud. The DFSee tool is _so_ broken. If you ever come across the author please let him know that there are systems with more than 8 disks.
He will normally reply to bug reports within 24 hours, but this week and next he is on holiday. I don't know what the "broken" is, so you'll need to report what makes you cry out loud. http://tech.groups.yahoo.com/group/dfsee-support/?yguid=12054984 http://www.dfsee.com/dfsee/ -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=397816
User mrmazda@ij.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=397816#c12
--- Comment #12 from Felix Miata
https://bugzilla.novell.com/show_bug.cgi?id=397816
User hare@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=397816#c13
--- Comment #13 from Hannes Reinecke
https://bugzilla.novell.com/show_bug.cgi?id=397816
User mrmazda@ij.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=397816#c14
--- Comment #14 from Felix Miata
Does it work with OpenSUSE 11.0?
This particular install reports itself as 11.0 and was updated after report on mailing list of Factory lockdown for 11.0 release. When I try to access gwdg or mirrors.kernel.org ftp 11.0 dirs I get access denied messages. (In reply to comment #13 from Hannes Reinecke)
Can you try to switch off smartd? There might be a chance that smartd is keeping the device busy and device is refusing to do something with it.
I turned it off and rebooted but get the same result. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=397816
User mrmazda@ij.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=397816#c15
--- Comment #15 from Felix Miata
https://bugzilla.novell.com/show_bug.cgi?id=397816
User mrmazda@ij.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=397816#c16
Felix Miata
And 'kpartx -v -a /dev/sda' might be helpful, too. .
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=397816
User mrmazda@ij.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=397816#c17
--- Comment #17 from Felix Miata
https://bugzilla.novell.com/show_bug.cgi?id=397816
User mrmazda@ij.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=397816#c18
--- Comment #18 from Felix Miata
There might be a chance that ... keeping the device busy and device is refusing to do something with it.
Could this problem have anything to do with the fact that the system is a single disk system? /etc/mtab: /dev/sda10 / ext3 rw,noatime,nodiratime,acl 0 0 /dev/sda3 /disks/C msdos rw,noexec,nosuid,nodev,dmask=0000,fmask=0111 0 0 /dev/sda5 /disks/hda/boot ext2 rw,noatime,nodiratime,noacl 0 0 /dev/sda6 /disks/D vfat rw,noexec,nosuid,nodev,dmask=0000,fmask=0111,utf8=true 0 0 /dev/sda7 /disks/E msdos rw,noexec,nosuid,nodev,dmask=0000,fmask=0111 0 0 /dev/sda12 /home ext3 rw,noatime,nodiratime,acl 0 0 /dev/sda13 /pub ext3 rw,noatime,nodiratime,acl 0 0 /dev/sda14 /srv ext3 rw,noatime,nodiratime,noacl 0 0 /dev/sda15 /usr/local ext3 rw,noatime,nodiratime,noacl 0 0 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=397816
User mrmazda@ij.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=397816#c19
--- Comment #19 from Felix Miata
https://bugzilla.novell.com/show_bug.cgi?id=397816
User hare@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=397816#c20
--- Comment #20 from Hannes Reinecke
https://bugzilla.novell.com/show_bug.cgi?id=397816
User mrmazda@ij.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=397816#c21
--- Comment #21 from Felix Miata
What you need to do is to create a initrd script
Literally? I'm no script writer.
Let's see how the mkinitrd script could look like ...
I can only guess one line, same as subject, 'kpartx -a /dev/sda', which would only be good if sda is the only disk you want it done on. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=397816
User hare@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=397816#c22
Hannes Reinecke
https://bugzilla.novell.com/show_bug.cgi?id=397816
User mrmazda@ij.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=397816#c23
--- Comment #23 from Felix Miata
https://bugzilla.novell.com/show_bug.cgi?id=397816
User mrmazda@ij.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=397816#c24
Felix Miata
There is a script /sbin/activate_dm_linear, which takes the device name as an argument. That will create the required udev rules.
So all /lib/mkinitrd/scripts/boot-dm_linear.sh needs is? -> /sbin/activate_dm_linear /dev/sda
And you need to set 'DM_BLOCK=yes' in /etc/sysconfig/kernel.
With, or without, quotes aroung yes? I tried with.
Then re-run mkinitrd, reboot and you should be set.
It booted, but paused waiting for root to appear, then gave: Waiting for device /dev/root to appear: ..............................Could not find /dev/root. Want me to fall back to /dev/disk/by-id/ata-ST3160023A_4JS0L8FE-part10? (Y/n) Waiting for device /dev/disk/by-id/ata-ST3160023A_4JS0L8FE-part10 to appear: ok I don't see anything new in the /dev tree. /dev/mapper only has control. Nothing in /dev/disk beyond 15. Only 3 /dev/d* files. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=397816
User hare@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=397816#c25
--- Comment #25 from Hannes Reinecke
https://bugzilla.novell.com/show_bug.cgi?id=397816
User hare@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=397816#c26
Hannes Reinecke
https://bugzilla.novell.com/show_bug.cgi?id=397816
User mrmazda@ij.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=397816#c27
Felix Miata
https://bugzilla.novell.com/show_bug.cgi?id=397816
User mrmazda@ij.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=397816#c28
--- Comment #28 from Felix Miata
participants (1)
-
bugzilla_noreply@novell.com