How can I install my root filesystem on a multipathing device? (/dev/mapper/mpath0)

Posted on 2010-01-11
Medium Priority
Last Modified: 2013-12-15
Hi Experts,

I'm installing RHEL 5.4 on a native LPAR of System Z (z10BC) mainframe, which is connected to DS8300 via FCP. Here are my details:

[root@zlnx1 ~]# uname -a
Linux zlnx1 2.6.18-164.el5 #1 SMP Tue Aug 18 15:53:50 EDT 2009 s390x
s390x s390x GNU/Linux

[root@zlnx1 ~]# lsscsi
[0:0:0:1]    disk    IBM      2107900          .116  /dev/sda
[0:0:0:2]    disk    IBM      2107900          .116  /dev/sdb
[1:0:0:1]    disk    IBM      2107900          .116  /dev/sdc

[root@zlnx1 ~]# lszfcp -D
0.0.2200/0x500507630803005e/0x4016400000000000 0:0:0:1
0.0.2200/0x500507630803005e/0x4016400100000000 0:0:0:2
0.0.2300/0x500507630803405e/0x4016400100000000 1:0:0:1

[root@zlnx1 ~]# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sdb1              6092360   2658584   3119308  47% /
/dev/sda1               194442     15342    169061   9% /boot
tmpfs                  1029532         0   1029532   0% /dev/shm

Basically, /dev/sdb and /dev/sdc points to the same disk. And I would like to setup a multipathed device (e.g. /dev/mapper/mpath0) which points to /dev/sdb /dev/sdc and mount my root file system there.

Here are the steps I have done so far:
- My root is installed originally in /dev/sdb1
- My /boot is installed in /dev/sda1
- I have setup my second path /dev/sdc (same disk/LUN with /dev/sdb)
- I have correctly updated my /etc/multipath.conf
- Then recreate initrd, ===> mkinitrd -v --with=dm-mod --with=dm-multipath --with=dm-round-robin initrd-2.6.18-164.el5.img 2.6.18-164.el5
- Then zipl and reboot, ===> zipl -V

Am I missing something?
How can I start multipathing on Root before mounting my Root filesystem?

I hope you can give me some detailed example. Thank you very much.

Question by:dkaisla
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 43

Assisted Solution

ravenpl earned 1000 total points
ID: 26297157
I think You need
- create the mpath device, so current setup is seeing is OK
- create new /etc/fstab, that mounts / on the /dev/mapper/mpath0 device (backup old one)
- change /etc/grub.conf (it's symlink to /boot/grub/grub.conf), so root= refers to /dev/mapper/mpath0
- run mkinitrd and install in proper place (/boot)
  now mkinitrd should spot, that root filesystem is placed on the mpath device and setup it properly

Assisted Solution

martin_2110 earned 1000 total points
ID: 26299358

Accepted Solution

dkaisla earned 0 total points
ID: 26323485
I have solved this myself and the ultimate key here is to put the keyword "mpath" in your parm file so that anaconda will take care of the creation of mpath devices. After this, creating root on multipath is just a piece of cake.

Note: the above solution only applies to RHEL5+

Answers of ravenpl and martin_2110 are helpful and valid. Thanks.

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month8 days, 8 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question