[Bug 218122] New: Support more than 15 partitions on SCSI (libata)
https://bugzilla.novell.com/show_bug.cgi?id=218122 Summary: Support more than 15 partitions on SCSI (libata) Product: openSUSE 10.2 Version: Beta 1 plus Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: hare@novell.com ReportedBy: kernel01@hailfinger.org QAContact: qa@suse.de CC: aj@novell.com AJ: This references our conversation on IRC. Moving IDE devices from classic ide drivers to libata reduces the available partition count from 63 to 15. Kernel support for more partitions on SCSI disks is unlikely to materialize in the next few years. That leaves us with a problem that has to be worked around in userspace. I have a solution which works reliably for all SCSI disks including libata-driven IDE disks. Working principle: Deregister all partitions for a given disk so that the use count drops to zero. The establish partition mappings via device mapper. At the moment, up to 63 partition mappings per disk are supported. There are no problems to stack LVM and other disk management on top of my solution. /etc/fstab does not have to be changed if you use mount-by-{label,uuid}. The SCSI partitions appear under /dev/disk/by-name instead of /dev directly and can be accessed as usual. I even booted with my root filesystem mounted by label on top of a logical volume in a physical volume on top of a device mapper partition mapping of sda63 on top of a SATA disk. To create an initrd with this feature turned on for all SCSI disks (unpartitioned disks and cd drives are ignored), simply apply the attached patch to mkinitrd and run "mkinitrd -f libata_partitions". You need an updated util-linux with partx support (see attachment 103559 for the patch) before running mkinitrd. The patch for mkinitrd has no effect if "-f libata_partitions" is not specified, so a regression will not happen. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=218122 ------- Comment #1 from kernel01@hailfinger.org 2006-11-03 21:54 MST ------- Created an attachment (id=103772) --> (https://bugzilla.novell.com/attachment.cgi?id=103772&action=view) Patch for mkinitrd to support up to 63 partitions on libata -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=218122 kernel01@hailfinger.org changed: What |Removed |Added ---------------------------------------------------------------------------- OtherBugsDependingO| |214992 nThis| | -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=218122 aj@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hare@novell.com Status|NEW |RESOLVED Resolution| |WONTFIX ------- Comment #3 from aj@novell.com 2006-11-08 02:06 MST ------- Carl-Daniel, thanks for the patch but we're not going to use it for 10.2. I discussed this a bit and since we're not using with beta2 anymore sda instead of hda, so the problem that triggered does not exist anymore. For the future when we're going to use libata everywhere, we need a proper solution and I've filed an enhancement request in our internal tools that this problem is taken care of. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=218122 ------- Comment #4 from mrmazda@ij.net 2006-11-08 09:27 MST ------- seems to me that if it is to be fixed later that wontfix is not an appropriate resolution, because: 1-there is only no resolution now (for 10.2) 2-a future resolution of type fixed is planned (post-10.2) marking this wontfix is like telling the public to switch from suse to windoz or ecomstation, which have no such limitation, rather than saying we have no current solution, but plan to have one in the future. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=218122 ------- Comment #5 from aj@novell.com 2006-11-08 10:27 MST ------- The problem does not exist in Beta2 anymore, so there is nothing to fix. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=218122 ------- Comment #6 from mrmazda@ij.net 2006-11-08 11:22 MST ------- Then the subject line surely needs clarification (to read libata only). AFAIK, the problem has always existed on real SCSI, and surely still exists on SCSI/USB (which I haven't tested for in a while). Is libata now providing access to more than 15 partitions on real SCSI and on USB? -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=218122 cthiel@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Support more than 15 |Support more than 15 partitions on libata |partitions on SCSI (libata) | ------- Comment #7 from cthiel@novell.com 2006-11-08 12:39 MST ------- 1.) The SCSI limitation is still there -- and we won't change/fix that for openSUSE 10.2. 2.) It's still there in libata, too. 3.) As we won't use libata by default for PATA, you're save, in case you had disk with more than 15 partitions. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=218122 ------- Comment #8 from mrmazda@ij.net 2006-11-08 12:59 MST ------- Actually I'm not safe on this, my only system running SATA. All my other systems either don't support SATA, or aren't using supported SATA, precisely because of the lack of Linux support flowing from the arbitrary SCSI partition limitation. This system's primary HD was cloned from PATA on being put into service initially. It has SUSE 9.0 on partition 16, which is the target for the first Linux that happens to come along with support for for all of its (currently) 46 partitions and which can be installed on #16 to replace SUSE 9.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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=218122 kernel01@hailfinger.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Component|Basesystem |Basesystem Product|openSUSE 10.2 |openSUSE 10.3 Resolution|WONTFIX | Version|Beta 1 plus |Alpha 1 ------- Comment #9 from kernel01@hailfinger.org 2007-02-20 19:37 MST ------- Reopening with a new patch against factory mkinitrd because of the switch to libata. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=218122 ------- Comment #10 from kernel01@hailfinger.org 2007-02-20 19:43 MST ------- Created an attachment (id=120231) --> (https://bugzilla.novell.com/attachment.cgi?id=120231&action=view) Patch for mkinitrd from FACTORY @AJ: This patch is a response to your mail from a few weeks ago. Sorry it took me so long, I had a major car accident and a bike accident shortly after - both of them made it impossible for me to work for a longer time in front of the screen. That is now fixed ;-) -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=218122 aj@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|aj@novell.com |hare@novell.com Status|REOPENED |NEW ------- Comment #11 from aj@novell.com 2007-03-16 03:16 MST ------- Hannes, could you look further into this as discussed? -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=218122 hare@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=218122 ------- Comment #12 from hare@novell.com 2007-04-27 04:32 MST ------- Actually, you don't need to delete the partitions; eg multipath-tools work quite well without this hack. So, what we should do is to: a) Create a linear mapping across the whole device; this is not strictly speaking required but multipath-tools & dmraid use the same setup, so this matches better with our current infrastructure. This mapping should have a proper UUID, eg the disk ID prefixed with 'disk-'. b) Run kpartx on that device (like we do nowadays anyway) and access the disk via the kpartx-generated dm devices. So we'd need some udev rules which setup the initial table from a) automatically. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=218122 hare@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|hare@novell.com |agraf@novell.com Status|ASSIGNED |NEW ------- Comment #13 from hare@novell.com 2007-05-11 07:29 MST ------- Alexander, we'd need to implement the above in the new mkinitrd. What we should do is: 1) Implement a feature 'dmroot' which would just create a linear partition on the entire root disk. 2) Fixup the udev rules to invoke kpartx on this disk 3) Implement detection code in mkinitrd which will enable this feature if detected. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=218122 ------- Comment #14 from kernel01@hailfinger.org 2007-05-11 08:16 MST ------- You'll need the detection code in the initrd itself to make sure the system still boots after changing the partitioning. But a "dmroot" feature sounds like the way to go. If you need any help coding/testing, tell me. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=218122#c16
Hannes Reinecke
https://bugzilla.novell.com/show_bug.cgi?id=218122#c17
--- Comment #17 from Felix Miata
https://bugzilla.novell.com/show_bug.cgi?id=218122#c18
Hannes Reinecke
https://bugzilla.novell.com/show_bug.cgi?id=218122
Alexander Graf
https://bugzilla.novell.com/show_bug.cgi?id=218122#c19
Hannes Reinecke
https://bugzilla.novell.com/show_bug.cgi?id=218122#c20
--- Comment #20 from Felix Miata
Updated rpms have been checked in.
Did checkin occur prior to beta3 freeze? -- 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=218122#c21
Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=218122#c22
--- Comment #22 from Hannes Reinecke
https://bugzilla.novell.com/show_bug.cgi?id=218122#c23
Hannes Reinecke
https://bugzilla.novell.com/show_bug.cgi?id=218122#c24
--- Comment #24 from Felix Miata
https://bugzilla.novell.com/show_bug.cgi?id=218122#c25
--- Comment #25 from Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=218122#c26
--- Comment #26 from Felix Miata
participants (1)
-
bugzilla_noreply@novell.com