* Configuring multipath for root device @ 2007-12-19 21:02 Pradipmaya Maharana 2007-12-19 21:18 ` Chandra Seetharaman 0 siblings, 1 reply; 25+ messages in thread From: Pradipmaya Maharana @ 2007-12-19 21:02 UTC (permalink / raw) To: device-mapper development Hi All, Is there a process/document that talks about how to configure root/boot device for multipath? Thanks and Regards, Pradipmaya. ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Configuring multipath for root device 2007-12-19 21:02 Configuring multipath for root device Pradipmaya Maharana @ 2007-12-19 21:18 ` Chandra Seetharaman 2007-12-19 21:26 ` Pradipmaya Maharana ` (2 more replies) 0 siblings, 3 replies; 25+ messages in thread From: Chandra Seetharaman @ 2007-12-19 21:18 UTC (permalink / raw) To: device-mapper development [-- Attachment #1: Type: text/plain, Size: 779 bytes --] I am working on a multipath usage document. Attached is the installation section of that document. Note that it is written for RHEL5 U1 and SLES10 SP1. Good Luck, chandra On Wed, 2007-12-19 at 13:02 -0800, Pradipmaya Maharana wrote: > Hi All, > > Is there a process/document that talks about how to configure > root/boot device for multipath? > > Thanks and Regards, > Pradipmaya. > > -- > dm-devel mailing list > dm-devel@redhat.com > https://www.redhat.com/mailman/listinfo/dm-devel -- ---------------------------------------------------------------------- Chandra Seetharaman | Be careful what you choose.... - sekharan@us.ibm.com | .......you may get it. ---------------------------------------------------------------------- [-- Attachment #2: f1 --] [-- Type: text/plain, Size: 2970 bytes --] 4.1. Installation instructions for SLES10 Note: This is tested on SLES10 SP1. If you have any other version, your mileage may vary. 1. Install the OS in a device that has multiple paths. Make sure the root device's "Mount by" option is set to "Device by-id" (this option is available under "expert partitioner" as "fstab options"). 2. Complete the installation. Let the system boot up in multiuser mode. Make sure the root device, swap device are all referenced by their by-id device node entries instead of /dev/sd* type names. If they are not, fix them first. 3. Once booted, update /etc/multipath.conf If you have to make changes to /etc/multipath.conf, make the changes. Note: the option "user_friendly_names" is not supported by initrd. So, if you have user_friendly_names in your /etc/multipath.conf file, comment it for now, you can uncomment it later. 4. Enable multipathing by running the following commands * chkconfig boot.multipath on * chkconfig multipathd on 5. Add multipath module to initrd Edit the file /etc/sysconfig/kernel and add "dm-multipath" to INITRD_MODULES". Note: If your storage devices needs a hardware handler, add the corresponding module to INITRD_MODULES, in addition to "dm-multipath". For example add "dm-rdac" and "dm-multipath" to support IBM's DS4K storage devices 6. Run mkinitrd Note: You can uncomment the user friendly name if you have commented it above. 7. Reboot The system will come up with the root disk on a multipathed device. Note: You can switch off multipathing to the root device by adding multipath=off to the kernel command line. 4.2. Installation instructions for RHEL5 Note: This is tested on RHEL5 U1. If you have any other version, your mileage may vary. 1. Start the installation with the kernel command line "linux mpath" * You will see multipathed devices (/dev/mapper/mpath*) as * installation devices. 2. Finish the installation. 3. Reboot. * If your boot device does not need multipath.conf and does not * have a special hardware handler, then you are done. If you have * either of these, follow the steps below. 4. Once booted, update multipath.conf file, if needed. 5. Run mkinitrd, if you need a hardware handler, add it to initrd with --with option. * # mkinitrd /boot/initrd.final.img --with=dm-rdac 6. Replace the initrd in your grub.conf/lilo.conf/yaboot.conf with the newly built initrd. 7. Reboot. The system will come up with the root disk on a multipathed device. Note: You can switch off multipathing to the root device by adding multipath=off to the kernel command line. Note: By default, RedHat disables dm-multipath by blacklisting all devices in /etc/multipath.conf. It just excludes your root device. If you do not see your other multipath devices through "multipath -ll", then check and fix the blacklist in /etc/multipath.conf [-- Attachment #3: Type: text/plain, Size: 0 bytes --] ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Configuring multipath for root device 2007-12-19 21:18 ` Chandra Seetharaman @ 2007-12-19 21:26 ` Pradipmaya Maharana 2007-12-20 16:46 ` Pradipmaya Maharana 2008-01-07 7:38 ` Hannes Reinecke 2008-01-07 20:19 ` Pradipmaya Maharana 2 siblings, 1 reply; 25+ messages in thread From: Pradipmaya Maharana @ 2007-12-19 21:26 UTC (permalink / raw) To: sekharan, device-mapper development Hi Chandra, Thanks. I will givei it a try. Regards, Pradipmaya. On 12/19/07, Chandra Seetharaman <sekharan@us.ibm.com> wrote: > I am working on a multipath usage document. Attached is the installation > section of that document. > > Note that it is written for RHEL5 U1 and SLES10 SP1. > > Good Luck, > > chandra > > On Wed, 2007-12-19 at 13:02 -0800, Pradipmaya Maharana wrote: > > Hi All, > > > > Is there a process/document that talks about how to configure > > root/boot device for multipath? > > > > Thanks and Regards, > > Pradipmaya. > > > > -- > > dm-devel mailing list > > dm-devel@redhat.com > > https://www.redhat.com/mailman/listinfo/dm-devel > -- > > ---------------------------------------------------------------------- > Chandra Seetharaman | Be careful what you choose.... > - sekharan@us.ibm.com | .......you may get it. > ---------------------------------------------------------------------- > > > -- > dm-devel mailing list > dm-devel@redhat.com > https://www.redhat.com/mailman/listinfo/dm-devel > > ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Configuring multipath for root device 2007-12-19 21:26 ` Pradipmaya Maharana @ 2007-12-20 16:46 ` Pradipmaya Maharana 2007-12-21 16:26 ` Benjamin Marzinski 0 siblings, 1 reply; 25+ messages in thread From: Pradipmaya Maharana @ 2007-12-20 16:46 UTC (permalink / raw) To: sekharan, device-mapper development Hi, Pardon my knowledge on Linux, but in your article did you mean that the /boot should be on a local disk and /root, swap can be on multipath device. I am trying to install /boot, /root and swap all on one multipath device and try to boot from it. It does not boot, no error just blank screen. My equirement is to install everything on multipath device; so is it possible at all? I mean can I have the boot device (/boot) too on a multipath device. Following is what I tried on RHEL - selected "linux mpath" - I could see one local disk and 3 multipath devices - I chose custom partition type - instead of going for LVM, I selected one single multipath device and installed everything on it (/boot, / and swap). - Tried rebooting, it won't boot :( What am I missing here? Thanks and Regards, Pradipmaya. On 12/19/07, Pradipmaya Maharana <pradipmaya@gmail.com> wrote: > Hi Chandra, > > Thanks. I will givei it a try. > > Regards, > Pradipmaya. > > On 12/19/07, Chandra Seetharaman <sekharan@us.ibm.com> wrote: > > I am working on a multipath usage document. Attached is the installation > > section of that document. > > > > Note that it is written for RHEL5 U1 and SLES10 SP1. > > > > Good Luck, > > > > chandra > > > > On Wed, 2007-12-19 at 13:02 -0800, Pradipmaya Maharana wrote: > > > Hi All, > > > > > > Is there a process/document that talks about how to configure > > > root/boot device for multipath? > > > > > > Thanks and Regards, > > > Pradipmaya. > > > > > > -- > > > dm-devel mailing list > > > dm-devel@redhat.com > > > https://www.redhat.com/mailman/listinfo/dm-devel > > -- > > > > ---------------------------------------------------------------------- > > Chandra Seetharaman | Be careful what you choose.... > > - sekharan@us.ibm.com | .......you may get it. > > ---------------------------------------------------------------------- > > > > > > -- > > dm-devel mailing list > > dm-devel@redhat.com > > https://www.redhat.com/mailman/listinfo/dm-devel > > > > > ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Configuring multipath for root device 2007-12-20 16:46 ` Pradipmaya Maharana @ 2007-12-21 16:26 ` Benjamin Marzinski 2007-12-21 19:06 ` Pradipmaya Maharana 0 siblings, 1 reply; 25+ messages in thread From: Benjamin Marzinski @ 2007-12-21 16:26 UTC (permalink / raw) To: device-mapper development On Thu, Dec 20, 2007 at 08:46:41AM -0800, Pradipmaya Maharana wrote: > Hi, > > Pardon my knowledge on Linux, but in your article did you mean that > the /boot should be on a local disk and /root, swap can be on > multipath device. > > I am trying to install /boot, /root and swap all on one multipath > device and try to boot from it. It does not boot, no error just blank > screen. My equirement is to install everything on multipath device; so > is it possible at all? I mean can I have the boot device (/boot) too > on a multipath device. > > Following is what I tried on RHEL > - selected "linux mpath" > - I could see one local disk and 3 multipath devices > - I chose custom partition type > - instead of going for LVM, I selected one single multipath device > and installed everything on it (/boot, / and swap). > - Tried rebooting, it won't boot :( > > What am I missing here? I haven't ever tried putting swap on a multipath device, but I believe it should work. Your steps seem correct. Are you getting any messages at all on the console when you boot up? One thing you need to be aware of is that while multipathed root is pretty simple, for multipathed boot to work, your machine needs to be able to boot from the device that your are multipathing with no help from any linux device drivers (since they obviously can't be loaded until you run the boot loader). I believe some machines need something to be set in BIOS in order to try and boot off SAN storage. To narrow down the problem, I would try setting up the same configuration, but without multipathing the device. If this doesn't work, then you are probably having problems booting from your storage. If it does work, then when you set it up with multipathing, you should at least be making it past GRUB, and looking at the console output should shed some light on what's going wrong. Note, if you have a device that needs a prio_callout, multipath will still fail in the all paths down case, because it can't access the callout program. The upstream code currently fixes that by using callout library functions, and the next device-mapper-multipath package from RHEL will fix it by caching the callouts in a private namespace. -Ben > Thanks and Regards, > Pradipmaya. > > > On 12/19/07, Pradipmaya Maharana <pradipmaya@gmail.com> wrote: > > Hi Chandra, > > > > Thanks. I will givei it a try. > > > > Regards, > > Pradipmaya. > > > > On 12/19/07, Chandra Seetharaman <sekharan@us.ibm.com> wrote: > > > I am working on a multipath usage document. Attached is the installation > > > section of that document. > > > > > > Note that it is written for RHEL5 U1 and SLES10 SP1. > > > > > > Good Luck, > > > > > > chandra > > > > > > On Wed, 2007-12-19 at 13:02 -0800, Pradipmaya Maharana wrote: > > > > Hi All, > > > > > > > > Is there a process/document that talks about how to configure > > > > root/boot device for multipath? > > > > > > > > Thanks and Regards, > > > > Pradipmaya. > > > > > > > > -- > > > > dm-devel mailing list > > > > dm-devel@redhat.com > > > > https://www.redhat.com/mailman/listinfo/dm-devel > > > -- > > > > > > ---------------------------------------------------------------------- > > > Chandra Seetharaman | Be careful what you choose.... > > > - sekharan@us.ibm.com | .......you may get it. > > > ---------------------------------------------------------------------- > > > > > > > > > -- > > > dm-devel mailing list > > > dm-devel@redhat.com > > > https://www.redhat.com/mailman/listinfo/dm-devel > > > > > > > > > > -- > dm-devel mailing list > dm-devel@redhat.com > https://www.redhat.com/mailman/listinfo/dm-devel ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Configuring multipath for root device 2007-12-21 16:26 ` Benjamin Marzinski @ 2007-12-21 19:06 ` Pradipmaya Maharana 0 siblings, 0 replies; 25+ messages in thread From: Pradipmaya Maharana @ 2007-12-21 19:06 UTC (permalink / raw) To: device-mapper development Hey Ben, Thanks for your inputs. I will give it another try and let you know if it worked. Regards, Pradipmaya. On 12/21/07, Benjamin Marzinski <bmarzins@redhat.com> wrote: > On Thu, Dec 20, 2007 at 08:46:41AM -0800, Pradipmaya Maharana wrote: > > Hi, > > > > Pardon my knowledge on Linux, but in your article did you mean that > > the /boot should be on a local disk and /root, swap can be on > > multipath device. > > > > I am trying to install /boot, /root and swap all on one multipath > > device and try to boot from it. It does not boot, no error just blank > > screen. My equirement is to install everything on multipath device; so > > is it possible at all? I mean can I have the boot device (/boot) too > > on a multipath device. > > > > Following is what I tried on RHEL > > - selected "linux mpath" > > - I could see one local disk and 3 multipath devices > > - I chose custom partition type > > - instead of going for LVM, I selected one single multipath device > > and installed everything on it (/boot, / and swap). > > - Tried rebooting, it won't boot :( > > > > What am I missing here? > > I haven't ever tried putting swap on a multipath device, but I believe > it should work. Your steps seem correct. Are you getting any messages > at all on the console when you boot up? > > One thing you need to be aware of is that while multipathed root is > pretty simple, for multipathed boot to work, your machine needs to be > able to boot from the device that your are multipathing with no help > from any linux device drivers (since they obviously can't be loaded > until you run the boot loader). I believe some machines need something > to be set in BIOS in order to try and boot off SAN storage. > > To narrow down the problem, I would try setting up the same > configuration, but without multipathing the device. If this doesn't > work, then you are probably having problems booting from your storage. > If it does work, then when you set it up with multipathing, you should > at least be making it past GRUB, and looking at the console output > should shed some light on what's going wrong. > > Note, if you have a device that needs a prio_callout, multipath will > still fail in the all paths down case, because it can't access the > callout program. The upstream code currently fixes that by using > callout library functions, and the next device-mapper-multipath package > from RHEL will fix it by caching the callouts in a private namespace. > > -Ben > > > Thanks and Regards, > > Pradipmaya. > > > > > > On 12/19/07, Pradipmaya Maharana <pradipmaya@gmail.com> wrote: > > > Hi Chandra, > > > > > > Thanks. I will givei it a try. > > > > > > Regards, > > > Pradipmaya. > > > > > > On 12/19/07, Chandra Seetharaman <sekharan@us.ibm.com> wrote: > > > > I am working on a multipath usage document. Attached is the installation > > > > section of that document. > > > > > > > > Note that it is written for RHEL5 U1 and SLES10 SP1. > > > > > > > > Good Luck, > > > > > > > > chandra > > > > > > > > On Wed, 2007-12-19 at 13:02 -0800, Pradipmaya Maharana wrote: > > > > > Hi All, > > > > > > > > > > Is there a process/document that talks about how to configure > > > > > root/boot device for multipath? > > > > > > > > > > Thanks and Regards, > > > > > Pradipmaya. > > > > > > > > > > -- > > > > > dm-devel mailing list > > > > > dm-devel@redhat.com > > > > > https://www.redhat.com/mailman/listinfo/dm-devel > > > > -- > > > > > > > > ---------------------------------------------------------------------- > > > > Chandra Seetharaman | Be careful what you choose.... > > > > - sekharan@us.ibm.com | .......you may get it. > > > > ---------------------------------------------------------------------- > > > > > > > > > > > > -- > > > > dm-devel mailing list > > > > dm-devel@redhat.com > > > > https://www.redhat.com/mailman/listinfo/dm-devel > > > > > > > > > > > > > > > -- > > dm-devel mailing list > > dm-devel@redhat.com > > https://www.redhat.com/mailman/listinfo/dm-devel > > -- > dm-devel mailing list > dm-devel@redhat.com > https://www.redhat.com/mailman/listinfo/dm-devel > ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Configuring multipath for root device 2007-12-19 21:18 ` Chandra Seetharaman 2007-12-19 21:26 ` Pradipmaya Maharana @ 2008-01-07 7:38 ` Hannes Reinecke 2008-01-07 18:11 ` Pradipmaya Maharana 2008-01-07 20:19 ` Pradipmaya Maharana 2 siblings, 1 reply; 25+ messages in thread From: Hannes Reinecke @ 2008-01-07 7:38 UTC (permalink / raw) To: sekharan, device-mapper development Chandra Seetharaman wrote: > I am working on a multipath usage document. Attached is the installation > section of that document. > > Note that it is written for RHEL5 U1 and SLES10 SP1. > > Good Luck, > > chandra > > On Wed, 2007-12-19 at 13:02 -0800, Pradipmaya Maharana wrote: >> Hi All, >> >> Is there a process/document that talks about how to configure >> root/boot device for multipath? >> >> Thanks and Regards, >> Pradipmaya. >> >> -- >> dm-devel mailing list >> dm-devel@redhat.com >> https://www.redhat.com/mailman/listinfo/dm-devel >> >> ------------------------------------------------------------------------ >> >> 4.1. Installation instructions for SLES10 >> >> Note: This is tested on SLES10 SP1. If you have any other version, your >> mileage may vary. >> >> 1. Install the OS in a device that has multiple paths. Make sure the >> root device's "Mount by" option is set to "Device by-id" (this option is >> available under "expert partitioner" as "fstab options"). >> 2. Complete the installation. Let the system boot up in multiuser mode. >> Make sure the root device, swap device are all referenced by their by-id >> device node entries instead of /dev/sd* type names. If they are not, fix >> them first. >> 3. Once booted, update /etc/multipath.conf If you have to make changes >> to /etc/multipath.conf, make the changes. >> Note: the option "user_friendly_names" is not supported by initrd. >> So, if you have user_friendly_names in your /etc/multipath.conf file, >> comment it for now, you can uncomment it later. >> 4. Enable multipathing by running the following commands >> * chkconfig boot.multipath on >> >> * chkconfig multipathd on >> 5. Add multipath module to initrd >> >> Edit the file /etc/sysconfig/kernel and add "dm-multipath" to >> INITRD_MODULES". Note: If your storage devices needs a hardware handler, >> add the corresponding module to INITRD_MODULES, in addition to >> "dm-multipath". For example add "dm-rdac" and "dm-multipath" to support >> IBM's DS4K storage devices >> 6. Run mkinitrd >> Note: You can uncomment the user friendly name if you have commented it above. >> 7. Reboot >> >> The system will come up with the root disk on a multipathed device. >> >> Note: You can switch off multipathing to the root device by adding >> multipath=off to the kernel command line. >> ACK. This is the correct way. Thanks for writing this up. Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage hare@suse.de +49 911 74053 688 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Markus Rex, HRB 16746 (AG Nürnberg) ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Configuring multipath for root device 2008-01-07 7:38 ` Hannes Reinecke @ 2008-01-07 18:11 ` Pradipmaya Maharana 0 siblings, 0 replies; 25+ messages in thread From: Pradipmaya Maharana @ 2008-01-07 18:11 UTC (permalink / raw) To: device-mapper development Hi All, Yes, I tried the steps and it worked for me. Thanks for your help. Regards, Pradipmaya. On Jan 6, 2008 11:38 PM, Hannes Reinecke <hare@suse.de> wrote: > Chandra Seetharaman wrote: > > I am working on a multipath usage document. Attached is the installation > > section of that document. > > > > Note that it is written for RHEL5 U1 and SLES10 SP1. > > > > Good Luck, > > > > chandra > > > > On Wed, 2007-12-19 at 13:02 -0800, Pradipmaya Maharana wrote: > >> Hi All, > >> > >> Is there a process/document that talks about how to configure > >> root/boot device for multipath? > >> > >> Thanks and Regards, > >> Pradipmaya. > >> > >> -- > >> dm-devel mailing list > >> dm-devel@redhat.com > >> https://www.redhat.com/mailman/listinfo/dm-devel > >> > >> ------------------------------------------------------------------------ > >> > >> 4.1. Installation instructions for SLES10 > >> > >> Note: This is tested on SLES10 SP1. If you have any other version, your > >> mileage may vary. > >> > >> 1. Install the OS in a device that has multiple paths. Make sure the > >> root device's "Mount by" option is set to "Device by-id" (this option is > >> available under "expert partitioner" as "fstab options"). > >> 2. Complete the installation. Let the system boot up in multiuser mode. > >> Make sure the root device, swap device are all referenced by their by-id > >> device node entries instead of /dev/sd* type names. If they are not, fix > >> them first. > >> 3. Once booted, update /etc/multipath.conf If you have to make changes > >> to /etc/multipath.conf, make the changes. > >> Note: the option "user_friendly_names" is not supported by initrd. > >> So, if you have user_friendly_names in your /etc/multipath.conf file, > >> comment it for now, you can uncomment it later. > >> 4. Enable multipathing by running the following commands > >> * chkconfig boot.multipath on > >> > >> * chkconfig multipathd on > >> 5. Add multipath module to initrd > >> > >> Edit the file /etc/sysconfig/kernel and add "dm-multipath" to > >> INITRD_MODULES". Note: If your storage devices needs a hardware handler, > >> add the corresponding module to INITRD_MODULES, in addition to > >> "dm-multipath". For example add "dm-rdac" and "dm-multipath" to support > >> IBM's DS4K storage devices > >> 6. Run mkinitrd > >> Note: You can uncomment the user friendly name if you have commented it above. > >> 7. Reboot > >> > >> The system will come up with the root disk on a multipathed device. > >> > >> Note: You can switch off multipathing to the root device by adding > >> multipath=off to the kernel command line. > >> > ACK. This is the correct way. > > Thanks for writing this up. > > Cheers, > > Hannes > -- > Dr. Hannes Reinecke zSeries & Storage > hare@suse.de +49 911 74053 688 > SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg > GF: Markus Rex, HRB 16746 (AG Nürnberg) > > > -- > dm-devel mailing list > dm-devel@redhat.com > https://www.redhat.com/mailman/listinfo/dm-devel > ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Configuring multipath for root device 2007-12-19 21:18 ` Chandra Seetharaman 2007-12-19 21:26 ` Pradipmaya Maharana 2008-01-07 7:38 ` Hannes Reinecke @ 2008-01-07 20:19 ` Pradipmaya Maharana 2008-01-07 20:28 ` malahal 2008-01-08 7:17 ` Hannes Reinecke 2 siblings, 2 replies; 25+ messages in thread From: Pradipmaya Maharana @ 2008-01-07 20:19 UTC (permalink / raw) To: sekharan, device-mapper development RHEL Steps worked perfectly for me but i have a question for SLES installation. Question. While installing SLES on multipath devices, the second step says: " 2. Complete the installation. Let the system boot up in multiuser mode. Make sure the root device, swap device are all referenced by their by-id device node entries instead of /dev/sd* type names. If they are not, fix them first." How do you check that root device and swap device are referenced by their by-id? And if it is not referenced by the by-id, how do I fix it? Re-install? Thanks and Regards, Pradipmaya. On Dec 19, 2007 1:18 PM, Chandra Seetharaman <sekharan@us.ibm.com> wrote: > I am working on a multipath usage document. Attached is the installation > section of that document. > > Note that it is written for RHEL5 U1 and SLES10 SP1. > > Good Luck, > > chandra > > > On Wed, 2007-12-19 at 13:02 -0800, Pradipmaya Maharana wrote: > > Hi All, > > > > Is there a process/document that talks about how to configure > > root/boot device for multipath? > > > > Thanks and Regards, > > Pradipmaya. > > > > -- > > dm-devel mailing list > > dm-devel@redhat.com > > https://www.redhat.com/mailman/listinfo/dm-devel > -- > > ---------------------------------------------------------------------- > Chandra Seetharaman | Be careful what you choose.... > - sekharan@us.ibm.com | .......you may get it. > ---------------------------------------------------------------------- > > > -- > dm-devel mailing list > dm-devel@redhat.com > https://www.redhat.com/mailman/listinfo/dm-devel > ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Configuring multipath for root device 2008-01-07 20:19 ` Pradipmaya Maharana @ 2008-01-07 20:28 ` malahal 2008-01-07 20:40 ` Pradipmaya Maharana 2008-01-08 7:17 ` Hannes Reinecke 1 sibling, 1 reply; 25+ messages in thread From: malahal @ 2008-01-07 20:28 UTC (permalink / raw) To: dm-devel Pradipmaya Maharana [pradipmaya@gmail.com] wrote: > RHEL Steps worked perfectly for me but i have a question for SLES installation. > > Question. While installing SLES on multipath devices, the second step says: > > " 2. Complete the installation. Let the system boot up in multiuser mode. > Make sure the root device, swap device are all referenced by their by-id > device node entries instead of /dev/sd* type names. If they are not, fix > them first." > > How do you check that root device and swap device are referenced by their by-id? > And if it is not referenced by the by-id, how do I fix it? Re-install? Look at your grub.conf and see what is there for root and also look at /etc/fstab and make sure everything there is also ID based. Malahal. ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Configuring multipath for root device 2008-01-07 20:28 ` malahal @ 2008-01-07 20:40 ` Pradipmaya Maharana 2008-01-07 20:46 ` malahal 0 siblings, 1 reply; 25+ messages in thread From: Pradipmaya Maharana @ 2008-01-07 20:40 UTC (permalink / raw) To: device-mapper development I followed the instruction for SLES, that is, while installing, selected the option for mounting the device by "device id" but after reboot mount, fstab shows device names, like /dev/sda2, etc. What am I missing. Regards, Pradipmaya. On Jan 7, 2008 12:28 PM, <malahal@us.ibm.com> wrote: > Pradipmaya Maharana [pradipmaya@gmail.com] wrote: > > RHEL Steps worked perfectly for me but i have a question for SLES installation. > > > > Question. While installing SLES on multipath devices, the second step says: > > > > " 2. Complete the installation. Let the system boot up in multiuser mode. > > Make sure the root device, swap device are all referenced by their by-id > > device node entries instead of /dev/sd* type names. If they are not, fix > > them first." > > > > How do you check that root device and swap device are referenced by their by-id? > > And if it is not referenced by the by-id, how do I fix it? Re-install? > > Look at your grub.conf and see what is there for root and also look at > /etc/fstab and make sure everything there is also ID based. > > Malahal. > > > -- > dm-devel mailing list > dm-devel@redhat.com > https://www.redhat.com/mailman/listinfo/dm-devel > ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Configuring multipath for root device 2008-01-07 20:40 ` Pradipmaya Maharana @ 2008-01-07 20:46 ` malahal 2008-01-07 20:56 ` Pradipmaya Maharana 0 siblings, 1 reply; 25+ messages in thread From: malahal @ 2008-01-07 20:46 UTC (permalink / raw) To: dm-devel Pradipmaya Maharana [pradipmaya@gmail.com] wrote: > I followed the instruction for SLES, that is, while installing, > selected the option for mounting the device by "device id" but after > reboot mount, fstab shows device names, like /dev/sda2, etc. > What am I missing. That is odd. You will have to select "device id" for each file system including swap. I only used 'expert partition' on SLES10 SP1 installs and it put everything with ID names. -Malahal. ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Configuring multipath for root device 2008-01-07 20:46 ` malahal @ 2008-01-07 20:56 ` Pradipmaya Maharana 2008-01-07 21:57 ` malahal 0 siblings, 1 reply; 25+ messages in thread From: Pradipmaya Maharana @ 2008-01-07 20:56 UTC (permalink / raw) To: device-mapper development I did exactly what you said for SLES 10.1, - Create custom partition - Created partitions for /boot, / and swap of 100MB, 5GB and 1024MB respectively on /dev/sda. So /dev/sda1 is for "/boot", /dev/sda2 for "/" and /dev/sda3 for "swap" - Under fstab option, selected Mount by device-id for each of the partition - Reboot is fine - But as I said earlier, mount, fstab, everything shows devcie names, not id Any way to mount it by device-id? Is there a way that it can be chaned after installation? Or re-install is the only way. Regards, Pradipmaya. On Jan 7, 2008 12:46 PM, <malahal@us.ibm.com> wrote: > Pradipmaya Maharana [pradipmaya@gmail.com] wrote: > > I followed the instruction for SLES, that is, while installing, > > selected the option for mounting the device by "device id" but after > > reboot mount, fstab shows device names, like /dev/sda2, etc. > > What am I missing. > > That is odd. You will have to select "device id" for each file system > including swap. I only used 'expert partition' on SLES10 SP1 installs > and it put everything with ID names. > > -Malahal. > > > -- > dm-devel mailing list > dm-devel@redhat.com > https://www.redhat.com/mailman/listinfo/dm-devel > ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Configuring multipath for root device 2008-01-07 20:56 ` Pradipmaya Maharana @ 2008-01-07 21:57 ` malahal 2008-01-08 0:13 ` Pradipmaya Maharana 0 siblings, 1 reply; 25+ messages in thread From: malahal @ 2008-01-07 21:57 UTC (permalink / raw) To: dm-devel Pradipmaya Maharana [pradipmaya@gmail.com] wrote: > I did exactly what you said for SLES 10.1, > - Create custom partition > - Created partitions for /boot, / and swap of 100MB, 5GB and 1024MB > respectively on /dev/sda. So /dev/sda1 is for "/boot", /dev/sda2 for > "/" and /dev/sda3 for "swap" > - Under fstab option, selected Mount by device-id for each of the partition > - Reboot is fine > - But as I said earlier, mount, fstab, everything shows devcie names, not id > > Any way to mount it by device-id? > Is there a way that it can be chaned after installation? Or re-install > is the only way. I would just replace sd* names by their equivalent by-id names in fstab and grub.conf. Do 'ls -l /dev/disk/by-id/*' to get the by-id names corresponding to your named partitions' No need to re-install. -Malahal. ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Configuring multipath for root device 2008-01-07 21:57 ` malahal @ 2008-01-08 0:13 ` Pradipmaya Maharana 2008-01-08 0:29 ` malahal 0 siblings, 1 reply; 25+ messages in thread From: Pradipmaya Maharana @ 2008-01-08 0:13 UTC (permalink / raw) To: device-mapper development Ok, so this is what the scene is : linux-g78h:~ # ls -al /dev/disk/by-id/ total 0 drwxr-xr-x 2 root root 220 Jan 7 12:44 . drwxr-xr-x 5 root root 100 Jan 7 12:44 .. lrwxrwxrwx 1 root root 9 Jan 7 12:44 edd-int13_dev80 -> ../../sda lrwxrwxrwx 1 root root 10 Jan 7 12:44 edd-int13_dev80-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Jan 7 12:44 edd-int13_dev80-part2 -> ../../sda2 lrwxrwxrwx 1 root root 10 Jan 7 12:44 edd-int13_dev80-part3 -> ../../sda3 lrwxrwxrwx 1 root root 9 Jan 7 12:44 scsi-2221b000155f5d2d4 -> ../../sdb lrwxrwxrwx 1 root root 10 Jan 7 12:44 scsi-2221b000155f5d2d4-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Jan 7 12:44 scsi-2221b000155f5d2d4-part2 -> ../../sda2 lrwxrwxrwx 1 root root 10 Jan 7 12:44 scsi-2221b000155f5d2d4-part3 -> ../../sda3 lrwxrwxrwx 1 root root 9 Jan 7 12:44 usb-ASUS_CB-5216A_DEF10A4090DF -> ../../sr0 linux-g78h:~ # linux-g78h:~ # uname -a Linux linux-g78h 2.6.16.46-0.12-smp #1 SMP Thu May 17 14:00:09 UTC 2007 i686 i686 i386 GNU/Linux linux-g78h:~ # linux-g78h:~ # cat /etc/grub.conf setup --stage2=/boot/grub/stage2 (hd0,0) (hd0,0) quit linux-g78h:~ # linux-g78h:~ # cat /boot/grub/menu.lst # Modified by YaST2. Last modification on Mon Jan 7 19:40:30 UTC 2008 default 0 timeout 8 ##YaST - generic_mbr gfxmenu (hd0,0)/message ##YaST - activate ###Don't change this comment - YaST2 identifier: Original name: linux### title SUSE Linux Enterprise Server 10 SP1 root (hd0,0) kernel /vmlinuz-2.6.16.46-0.12-smp root=/dev/sda2 vga=0x31a resume=/dev/sda3 showopts initrd /initrd-2.6.16.46-0.12-smp ###Don't change this comment - YaST2 identifier: Original name: failsafe### title Failsafe -- SUSE Linux Enterprise Server 10 SP1 root (hd0,0) kernel /vmlinuz-2.6.16.46-0.12-smp root=/dev/sda2 vga=normal showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off 3 initrd /initrd-2.6.16.46-0.12-smp ###Don't change this comment - YaST2 identifier: Original name: linux### title SUSE Linux Enterprise Server 10 SP1 ORG root (hd0,0) kernel /vmlinuz-2.6.16.46-0.12-smp root=/dev/sda2 vga=0x31a resume=/dev/sda3 showopts initrd /initrd-2.6.16.46-0.org.12-smp So, I modified the fstab and menu.lst to replace all /dev/sdaX with /dev/scsi-2221b000155f5d2d4-partX. It won't boot. Any comments? Thanks and Regards, Pradipmaya. On Jan 7, 2008 1:57 PM, <malahal@us.ibm.com> wrote: > Pradipmaya Maharana [pradipmaya@gmail.com] wrote: > > I did exactly what you said for SLES 10.1, > > - Create custom partition > > - Created partitions for /boot, / and swap of 100MB, 5GB and 1024MB > > respectively on /dev/sda. So /dev/sda1 is for "/boot", /dev/sda2 for > > "/" and /dev/sda3 for "swap" > > - Under fstab option, selected Mount by device-id for each of the partition > > - Reboot is fine > > - But as I said earlier, mount, fstab, everything shows devcie names, not id > > > > Any way to mount it by device-id? > > Is there a way that it can be chaned after installation? Or re-install > > is the only way. > > I would just replace sd* names by their equivalent by-id names in fstab > and grub.conf. Do 'ls -l /dev/disk/by-id/*' to get the by-id names > corresponding to your named partitions' > > No need to re-install. > > > > -Malahal. > > -- > dm-devel mailing list > dm-devel@redhat.com > https://www.redhat.com/mailman/listinfo/dm-devel > ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Configuring multipath for root device 2008-01-08 0:13 ` Pradipmaya Maharana @ 2008-01-08 0:29 ` malahal 0 siblings, 0 replies; 25+ messages in thread From: malahal @ 2008-01-08 0:29 UTC (permalink / raw) To: dm-devel Pradipmaya Maharana [pradipmaya@gmail.com] wrote: > Ok, so this is what the scene is : > > linux-g78h:~ # ls -al /dev/disk/by-id/ > total 0 > drwxr-xr-x 2 root root 220 Jan 7 12:44 . > drwxr-xr-x 5 root root 100 Jan 7 12:44 .. > lrwxrwxrwx 1 root root 9 Jan 7 12:44 edd-int13_dev80 -> ../../sda > lrwxrwxrwx 1 root root 10 Jan 7 12:44 edd-int13_dev80-part1 -> ../../sda1 > lrwxrwxrwx 1 root root 10 Jan 7 12:44 edd-int13_dev80-part2 -> ../../sda2 > lrwxrwxrwx 1 root root 10 Jan 7 12:44 edd-int13_dev80-part3 -> ../../sda3 > lrwxrwxrwx 1 root root 9 Jan 7 12:44 scsi-2221b000155f5d2d4 -> ../../sdb > lrwxrwxrwx 1 root root 10 Jan 7 12:44 scsi-2221b000155f5d2d4-part1 > -> ../../sda1 > lrwxrwxrwx 1 root root 10 Jan 7 12:44 scsi-2221b000155f5d2d4-part2 > -> ../../sda2 > lrwxrwxrwx 1 root root 10 Jan 7 12:44 scsi-2221b000155f5d2d4-part3 > -> ../../sda3 > lrwxrwxrwx 1 root root 9 Jan 7 12:44 usb-ASUS_CB-5216A_DEF10A4090DF > -> ../../sr0 > linux-g78h:~ # > linux-g78h:~ # uname -a > Linux linux-g78h 2.6.16.46-0.12-smp #1 SMP Thu May 17 14:00:09 UTC > 2007 i686 i686 i386 GNU/Linux > linux-g78h:~ # > linux-g78h:~ # cat /etc/grub.conf > setup --stage2=/boot/grub/stage2 (hd0,0) (hd0,0) > quit > linux-g78h:~ # > linux-g78h:~ # cat /boot/grub/menu.lst > # Modified by YaST2. Last modification on Mon Jan 7 19:40:30 UTC 2008 > default 0 > timeout 8 > ##YaST - generic_mbr > gfxmenu (hd0,0)/message > ##YaST - activate > > ###Don't change this comment - YaST2 identifier: Original name: linux### > title SUSE Linux Enterprise Server 10 SP1 > root (hd0,0) > kernel /vmlinuz-2.6.16.46-0.12-smp root=/dev/sda2 vga=0x31a > resume=/dev/sda3 showopts > initrd /initrd-2.6.16.46-0.12-smp > > ###Don't change this comment - YaST2 identifier: Original name: failsafe### > title Failsafe -- SUSE Linux Enterprise Server 10 SP1 > root (hd0,0) > kernel /vmlinuz-2.6.16.46-0.12-smp root=/dev/sda2 vga=normal > showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 > edd=off 3 > initrd /initrd-2.6.16.46-0.12-smp > > ###Don't change this comment - YaST2 identifier: Original name: linux### > title SUSE Linux Enterprise Server 10 SP1 ORG > root (hd0,0) > kernel /vmlinuz-2.6.16.46-0.12-smp root=/dev/sda2 vga=0x31a > resume=/dev/sda3 showopts > initrd /initrd-2.6.16.46-0.org.12-smp > > > So, I modified the fstab and menu.lst to replace all /dev/sdaX with > /dev/scsi-2221b000155f5d2d4-partX. It won't boot. /dev/scsi-2221b000155f5d2d4-partX is bogus! Your root device /dev/sda2 actually is edd-int13_dev80-part2, specifically it is /dev/disk/by-id/edd-int13_dev80-part2. You should replace /dev/sdaX with /dev/disk/by-id/edd-int13_dev80-partX Also, make sure that what ever you replace with is a valid name. For example, /dev/scsi-2221b000155f5d2d4-partX will NOT exist on your system where as /dev/disk/by-id/edd-int13_dev80-part2 should exist. ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Configuring multipath for root device 2008-01-07 20:19 ` Pradipmaya Maharana 2008-01-07 20:28 ` malahal @ 2008-01-08 7:17 ` Hannes Reinecke 2008-01-16 2:25 ` Pradipmaya Maharana 2008-01-16 4:24 ` Romanowski, John (OFT) 1 sibling, 2 replies; 25+ messages in thread From: Hannes Reinecke @ 2008-01-08 7:17 UTC (permalink / raw) To: device-mapper development Pradipmaya Maharana wrote: > RHEL Steps worked perfectly for me but i have a question for SLES installation. > > Question. While installing SLES on multipath devices, the second step says: > > " 2. Complete the installation. Let the system boot up in multiuser mode. > Make sure the root device, swap device are all referenced by their by-id > device node entries instead of /dev/sd* type names. If they are not, fix > them first." > > How do you check that root device and swap device are referenced by their by-id? > And if it is not referenced by the by-id, how do I fix it? Re-install? > Check /etc/fstab. Those devices should be listed as /dev/disk/by-id/XXX. If not (ie if their names are /dev/sdXX) look for the appropriate symlink in /dev/disk/by-id and edit /etc/fstab. Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage hare@suse.de +49 911 74053 688 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Markus Rex, HRB 16746 (AG Nürnberg) ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Configuring multipath for root device 2008-01-08 7:17 ` Hannes Reinecke @ 2008-01-16 2:25 ` Pradipmaya Maharana 2008-01-16 2:32 ` Chandra Seetharaman 2008-01-16 17:36 ` malahal 2008-01-16 4:24 ` Romanowski, John (OFT) 1 sibling, 2 replies; 25+ messages in thread From: Pradipmaya Maharana @ 2008-01-16 2:25 UTC (permalink / raw) To: device-mapper development Hi All, Thanks for all your comments, it worked for installaions on partitions. Now the question is: Is it supposed to work the same way if the SLES is installed on LVM? On SLES, under fstab, I do not see any device, except for the boot device; other entries does not have /dev/deisk mention. In such scenario, how am I supposed to make the /root device multipath-aware? I tried the same with RHEL, but with RHEL installed (with linux mpath) on LVM, it seems to be working fine. Is there anything I am missing on SLES? Thanks and Regards, Pradipmaya. On Jan 7, 2008 11:17 PM, Hannes Reinecke <hare@suse.de> wrote: > Pradipmaya Maharana wrote: > > RHEL Steps worked perfectly for me but i have a question for SLES installation. > > > > Question. While installing SLES on multipath devices, the second step says: > > > > " 2. Complete the installation. Let the system boot up in multiuser mode. > > Make sure the root device, swap device are all referenced by their by-id > > device node entries instead of /dev/sd* type names. If they are not, fix > > them first." > > > > How do you check that root device and swap device are referenced by their by-id? > > And if it is not referenced by the by-id, how do I fix it? Re-install? > > > Check /etc/fstab. Those devices should be listed as /dev/disk/by-id/XXX. > If not (ie if their names are /dev/sdXX) look for the appropriate symlink > in /dev/disk/by-id and edit /etc/fstab. > > Cheers, > > Hannes > -- > Dr. Hannes Reinecke zSeries & Storage > hare@suse.de +49 911 74053 688 > SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg > GF: Markus Rex, HRB 16746 (AG Nürnberg) > > -- > > dm-devel mailing list > dm-devel@redhat.com > https://www.redhat.com/mailman/listinfo/dm-devel > ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Configuring multipath for root device 2008-01-16 2:25 ` Pradipmaya Maharana @ 2008-01-16 2:32 ` Chandra Seetharaman 2008-01-16 17:36 ` malahal 1 sibling, 0 replies; 25+ messages in thread From: Chandra Seetharaman @ 2008-01-16 2:32 UTC (permalink / raw) To: device-mapper development On Tue, 2008-01-15 at 18:25 -0800, Pradipmaya Maharana wrote: > Hi All, > > Thanks for all your comments, it worked for installaions on partitions. Cool. > > Now the question is: > Is it supposed to work the same way if the SLES is installed on LVM? Supposed to :) > On SLES, under fstab, I do not see any device, except for the boot > device; other entries does not have /dev/deisk mention. In such I am not clear about what you are mentioning here. Can you annotate with a cut-n-paste of /etc/fstab ? > scenario, how am I supposed to make the /root device multipath-aware? > > I tried the same with RHEL, but with RHEL installed (with linux mpath) > on LVM, it seems to be working fine. Is there anything I am missing on > SLES? > > Thanks and Regards, > Pradipmaya. > > > > On Jan 7, 2008 11:17 PM, Hannes Reinecke <hare@suse.de> wrote: > > Pradipmaya Maharana wrote: > > > RHEL Steps worked perfectly for me but i have a question for SLES installation. > > > > > > Question. While installing SLES on multipath devices, the second step says: > > > > > > " 2. Complete the installation. Let the system boot up in multiuser mode. > > > Make sure the root device, swap device are all referenced by their by-id > > > device node entries instead of /dev/sd* type names. If they are not, fix > > > them first." > > > > > > How do you check that root device and swap device are referenced by their by-id? > > > And if it is not referenced by the by-id, how do I fix it? Re-install? > > > > > Check /etc/fstab. Those devices should be listed as /dev/disk/by-id/XXX. > > If not (ie if their names are /dev/sdXX) look for the appropriate symlink > > in /dev/disk/by-id and edit /etc/fstab. > > > > Cheers, > > > > Hannes > > -- > > Dr. Hannes Reinecke zSeries & Storage > > hare@suse.de +49 911 74053 688 > > SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg > > GF: Markus Rex, HRB 16746 (AG Nürnberg) > > > > -- > > > > dm-devel mailing list > > dm-devel@redhat.com > > https://www.redhat.com/mailman/listinfo/dm-devel > > > > -- > dm-devel mailing list > dm-devel@redhat.com > https://www.redhat.com/mailman/listinfo/dm-devel -- ---------------------------------------------------------------------- Chandra Seetharaman | Be careful what you choose.... - sekharan@us.ibm.com | .......you may get it. ---------------------------------------------------------------------- ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Configuring multipath for root device 2008-01-16 2:25 ` Pradipmaya Maharana 2008-01-16 2:32 ` Chandra Seetharaman @ 2008-01-16 17:36 ` malahal 2008-01-16 18:49 ` Pradipmaya Maharana 1 sibling, 1 reply; 25+ messages in thread From: malahal @ 2008-01-16 17:36 UTC (permalink / raw) To: dm-devel Pradipmaya Maharana [pradipmaya@gmail.com] wrote: > Hi All, > > Thanks for all your comments, it worked for installaions on partitions. > > Now the question is: > Is it supposed to work the same way if the SLES is installed on LVM? Hmmm, I don't know if LVM devices have by-id names. I never installed SLES on LVM with multipath. Label is your best friend with LVM and that is what RHEL uses, I believe. > On SLES, under fstab, I do not see any device, except for the boot > device; other entries does not have /dev/deisk mention. In such > scenario, how am I supposed to make the /root device multipath-aware? They probably have labels??? ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Configuring multipath for root device 2008-01-16 17:36 ` malahal @ 2008-01-16 18:49 ` Pradipmaya Maharana 2008-01-17 20:21 ` malahal 0 siblings, 1 reply; 25+ messages in thread From: Pradipmaya Maharana @ 2008-01-16 18:49 UTC (permalink / raw) To: device-mapper development Here are some details: linux-qeh4:~ # ls -al /dev/disk/by-id/ total 0 drwxr-xr-x 2 root root 180 Jan 16 10:39 . drwxr-xr-x 5 root root 100 Jan 16 10:12 .. lrwxrwxrwx 1 root root 9 Jan 16 10:12 edd-int13_dev80 -> ../../sda lrwxrwxrwx 1 root root 10 Jan 16 10:12 edd-int13_dev80-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Jan 16 10:12 edd-int13_dev80-part2 -> ../../sda2 lrwxrwxrwx 1 root root 9 Jan 16 10:12 scsi-222f2000155c11879 -> ../../sdb lrwxrwxrwx 1 root root 10 Jan 16 10:12 scsi-222f2000155c11879-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Jan 16 10:12 scsi-222f2000155c11879-part2 -> ../../sda2 linux-qeh4:~ # linux-qeh4:~ # linux-qeh4:~ # cat /etc/fstab /dev/system/root / reiserfs acl,user_xattr 1 1 /dev/sda1 /boot ext2 acl,user_xattr 1 2 /dev/system/swap swap swap defaults 0 0 proc /proc proc defaults 0 0 sysfs /sys sysfs noauto 0 0 debugfs /sys/kernel/debug debugfs noauto 0 0 usbfs /proc/bus/usb usbfs noauto 0 0 devpts /dev/pts devpts mode=0620,gid=5 0 0 linux-qeh4:~ # linux-qeh4:~ # linux-qeh4:~ # uname -a Linux linux-qeh4 2.6.16.46-0.12-smp #1 SMP Thu May 17 14:00:09 UTC 2007 i686 i686 i386 GNU/Linux linux-qeh4:~ # linux-qeh4:~ # mount /dev/mapper/system-root on / type reiserfs (rw,acl,user_xattr) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) debugfs on /sys/kernel/debug type debugfs (rw) udev on /dev type tmpfs (rw) devpts on /dev/pts type devpts (rw,mode=0620,gid=5) /dev/sda1 on /boot type ext2 (rw,acl,user_xattr) securityfs on /sys/kernel/security type securityfs (rw) Let me know if you need any other information. Malahal, are you saying that I should mount the "/" and "swap" by volume label and it should be able to boot fine? Thanks and Regards, Pradipmaya. On Jan 16, 2008 9:36 AM, <malahal@us.ibm.com> wrote: > Pradipmaya Maharana [pradipmaya@gmail.com] wrote: > > Hi All, > > > > Thanks for all your comments, it worked for installaions on partitions. > > > > Now the question is: > > Is it supposed to work the same way if the SLES is installed on LVM? > > Hmmm, I don't know if LVM devices have by-id names. I never installed > SLES on LVM with multipath. Label is your best friend with LVM and that > is what RHEL uses, I believe. > > > On SLES, under fstab, I do not see any device, except for the boot > > device; other entries does not have /dev/deisk mention. In such > > scenario, how am I supposed to make the /root device multipath-aware? > > They probably have labels??? > > > -- > dm-devel mailing list > dm-devel@redhat.com > https://www.redhat.com/mailman/listinfo/dm-devel > ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Configuring multipath for root device 2008-01-16 18:49 ` Pradipmaya Maharana @ 2008-01-17 20:21 ` malahal 2008-01-17 20:38 ` Pradipmaya Maharana 0 siblings, 1 reply; 25+ messages in thread From: malahal @ 2008-01-17 20:21 UTC (permalink / raw) To: dm-devel Pradipmaya Maharana [pradipmaya@gmail.com] wrote: > > Let me know if you need any other information. > > Malahal, are you saying that I should mount the "/" and "swap" by > volume label and it should be able to boot fine? What are /dev/system/root and /dev/system/swap? Are they symlinks or do they have same major/minor number of corresponding LVM LVs? Yes, volume labels may work but I never booted SLES with LVM. -Malahal. ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Configuring multipath for root device 2008-01-17 20:21 ` malahal @ 2008-01-17 20:38 ` Pradipmaya Maharana 2008-01-18 21:52 ` Pradipmaya Maharana 0 siblings, 1 reply; 25+ messages in thread From: Pradipmaya Maharana @ 2008-01-17 20:38 UTC (permalink / raw) To: device-mapper development # ls -al /dev/system/ total 0 drwx------ 2 root root 80 Jan 16 17:44 . drwxr-xr-x 11 root root 6660 Jan 16 17:46 .. lrwxrwxrwx 1 root root 23 Jan 16 17:44 root -> /dev/mapper/system-root lrwxrwxrwx 1 root root 23 Jan 16 17:44 swap -> /dev/mapper/system-swap Yes, /dev/system/root and swap are links, as shown above. About volume labels, I tried assigning label to mount /dev/system/root to label-root but it would fail. I tried doing it through YaST/partitioner and it failed with the following error: "Failure occurred during following action: Setting label on /dev/system/root to label-root. System error code was : -3024" Is there any other way to change the label. Further information: when I try to run "multipath -v3", it would not create any map , with following error 222f2000155c11879: set ACT_CREATE (map does not exist) 222f2000155c11879: domap (0) failure for create/reload map Thanks and Regards, Pradipmaya. On Jan 17, 2008 12:21 PM, <malahal@us.ibm.com> wrote: > Pradipmaya Maharana [pradipmaya@gmail.com] wrote: > > > > Let me know if you need any other information. > > > > Malahal, are you saying that I should mount the "/" and "swap" by > > volume label and it should be able to boot fine? > > What are /dev/system/root and /dev/system/swap? Are they symlinks or do > they have same major/minor number of corresponding LVM LVs? > Yes, volume labels may work but I never booted SLES with LVM. > > -Malahal. > > > -- > dm-devel mailing list > dm-devel@redhat.com > https://www.redhat.com/mailman/listinfo/dm-devel > ^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Configuring multipath for root device 2008-01-17 20:38 ` Pradipmaya Maharana @ 2008-01-18 21:52 ` Pradipmaya Maharana 0 siblings, 0 replies; 25+ messages in thread From: Pradipmaya Maharana @ 2008-01-18 21:52 UTC (permalink / raw) To: device-mapper development Any comment anyone? Thanks, Pradipmaya. On Jan 17, 2008 12:38 PM, Pradipmaya Maharana <pradipmaya@gmail.com> wrote: > # ls -al /dev/system/ > total 0 > drwx------ 2 root root 80 Jan 16 17:44 . > drwxr-xr-x 11 root root 6660 Jan 16 17:46 .. > lrwxrwxrwx 1 root root 23 Jan 16 17:44 root -> /dev/mapper/system-root > lrwxrwxrwx 1 root root 23 Jan 16 17:44 swap -> /dev/mapper/system-swap > > Yes, /dev/system/root and swap are links, as shown above. > > About volume labels, I tried assigning label to mount /dev/system/root > to label-root but it would fail. > I tried doing it through YaST/partitioner and it failed with the > following error: > > "Failure occurred during following action: > Setting label on /dev/system/root to label-root. > > System error code was : -3024" > > Is there any other way to change the label. > > > Further information: > when I try to run "multipath -v3", it would not create any map , with > following error > 222f2000155c11879: set ACT_CREATE (map does not exist) > 222f2000155c11879: domap (0) failure for create/reload map > > Thanks and Regards, > Pradipmaya. > > > On Jan 17, 2008 12:21 PM, <malahal@us.ibm.com> wrote: > > Pradipmaya Maharana [pradipmaya@gmail.com] wrote: > > > > > > Let me know if you need any other information. > > > > > > Malahal, are you saying that I should mount the "/" and "swap" by > > > volume label and it should be able to boot fine? > > > > What are /dev/system/root and /dev/system/swap? Are they symlinks or do > > they have same major/minor number of corresponding LVM LVs? > > Yes, volume labels may work but I never booted SLES with LVM. > > > > -Malahal. > > > > > > -- > > dm-devel mailing list > > dm-devel@redhat.com > > https://www.redhat.com/mailman/listinfo/dm-devel > > > ^ permalink raw reply [flat|nested] 25+ messages in thread
* RE: Configuring multipath for root device 2008-01-08 7:17 ` Hannes Reinecke 2008-01-16 2:25 ` Pradipmaya Maharana @ 2008-01-16 4:24 ` Romanowski, John (OFT) 1 sibling, 0 replies; 25+ messages in thread From: Romanowski, John (OFT) @ 2008-01-16 4:24 UTC (permalink / raw) To: sekharan, device-mapper development I'm very new to sles 10; sounds like you want to do root-on-LVM-on-multipath I don't know if sles10 supports that. Maybe 2 things to try: (1) if /dev/rootVG/rootLV has a /dev/disk/by-id/ link then use that persistent name along with putting dm-multipath in INITRD modules list; then run mkinitrd and zipl (2) Or, use the LVM persistent name, /dev/rootVG/rootLV, instead of a /dev/disk/by-id/ name good luck. -------------------------------------------------------- This e-mail, including any attachments, may be confidential, privileged or otherwise legally protected. It is intended only for the addressee. If you received this e-mail in error or from someone who was not authorized to send it to you, do not disseminate, copy or otherwise use this e-mail or its attachments. Please notify the sender immediately by reply e-mail and delete the e-mail from your system. -----Original Message----- From: dm-devel-bounces@redhat.com on behalf of Chandra Seetharaman Sent: Tue 1/15/2008 9:32 PM To: device-mapper development Subject: Re: [dm-devel] Configuring multipath for root device On Tue, 2008-01-15 at 18:25 -0800, Pradipmaya Maharana wrote: > Hi All, > > Thanks for all your comments, it worked for installaions on partitions. Cool. > > Now the question is: > Is it supposed to work the same way if the SLES is installed on LVM? Supposed to :) > On SLES, under fstab, I do not see any device, except for the boot > device; other entries does not have /dev/deisk mention. In such I am not clear about what you are mentioning here. Can you annotate with a cut-n-paste of /etc/fstab ? > scenario, how am I supposed to make the /root device multipath-aware? > > I tried the same with RHEL, but with RHEL installed (with linux mpath) > on LVM, it seems to be working fine. Is there anything I am missing on > SLES? > > Thanks and Regards, > Pradipmaya. > > > > On Jan 7, 2008 11:17 PM, Hannes Reinecke <hare@suse.de> wrote: > > Pradipmaya Maharana wrote: > > > RHEL Steps worked perfectly for me but i have a question for SLES installation. > > > > > > Question. While installing SLES on multipath devices, the second step says: > > > > > > " 2. Complete the installation. Let the system boot up in multiuser mode. > > > Make sure the root device, swap device are all referenced by their by-id > > > device node entries instead of /dev/sd* type names. If they are not, fix > > > them first." > > > > > > How do you check that root device and swap device are referenced by their by-id? > > > And if it is not referenced by the by-id, how do I fix it? Re-install? > > > > > Check /etc/fstab. Those devices should be listed as /dev/disk/by-id/XXX. > > If not (ie if their names are /dev/sdXX) look for the appropriate symlink > > in /dev/disk/by-id and edit /etc/fstab. > > > > Cheers, > > > > Hannes > > -- > > Dr. Hannes Reinecke zSeries & Storage > > hare@suse.de +49 911 74053 688 > > SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg > > GF: Markus Rex, HRB 16746 (AG Nürnberg) > > > > -- > > > > dm-devel mailing list > > dm-devel@redhat.com > > https://www.redhat.com/mailman/listinfo/dm-devel > > > > -- > dm-devel mailing list > dm-devel@redhat.com > https://www.redhat.com/mailman/listinfo/dm-devel -- ---------------------------------------------------------------------- Chandra Seetharaman | Be careful what you choose.... - sekharan@us.ibm.com | .......you may get it. ---------------------------------------------------------------------- -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel ^ permalink raw reply [flat|nested] 25+ messages in thread
end of thread, other threads:[~2008-01-18 21:52 UTC | newest] Thread overview: 25+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2007-12-19 21:02 Configuring multipath for root device Pradipmaya Maharana 2007-12-19 21:18 ` Chandra Seetharaman 2007-12-19 21:26 ` Pradipmaya Maharana 2007-12-20 16:46 ` Pradipmaya Maharana 2007-12-21 16:26 ` Benjamin Marzinski 2007-12-21 19:06 ` Pradipmaya Maharana 2008-01-07 7:38 ` Hannes Reinecke 2008-01-07 18:11 ` Pradipmaya Maharana 2008-01-07 20:19 ` Pradipmaya Maharana 2008-01-07 20:28 ` malahal 2008-01-07 20:40 ` Pradipmaya Maharana 2008-01-07 20:46 ` malahal 2008-01-07 20:56 ` Pradipmaya Maharana 2008-01-07 21:57 ` malahal 2008-01-08 0:13 ` Pradipmaya Maharana 2008-01-08 0:29 ` malahal 2008-01-08 7:17 ` Hannes Reinecke 2008-01-16 2:25 ` Pradipmaya Maharana 2008-01-16 2:32 ` Chandra Seetharaman 2008-01-16 17:36 ` malahal 2008-01-16 18:49 ` Pradipmaya Maharana 2008-01-17 20:21 ` malahal 2008-01-17 20:38 ` Pradipmaya Maharana 2008-01-18 21:52 ` Pradipmaya Maharana 2008-01-16 4:24 ` Romanowski, John (OFT)
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.