From Fedora Project Wiki

(Created page with "{{QA/Test_Case |description= A complete installation using a multipath device for the root (''/'') file system . For more details on multipath please consult [http://en.wiki...")
 
No edit summary
 
Line 8: Line 8:
multipath -ll
multipath -ll
ls -l /dev/mapper/
ls -l /dev/mapper/
</pre>
For example, on a system that does not have a multipath disk:
<pre>
[anaconda root@sharpie /]# lsmod | grep multipath
dm_multipath          27759  1 dm_round_robin
[anaconda root@sharpie /]# multipath -ll
[anaconda root@sharpie /]# ls -l /dev/mapper/
total 0
crw-------. 1 root root 10, 236 May  6 14:37 control
lrwxrwxrwx. 1 root root      7 May  6 14:37 live-rw -> ../dm-0
</pre>
And on a system that does have a multipath disk:
<pre>
[anaconda root@riley6 ~]# lsmod | grep multipath
dm_multipath          27759  3 dm_round_robin,dm_service_time
[anaconda root@riley6 ~]# multipath -ll
mpatha (3600507680281026d6800000000000001) dm-0 IBM    ,2145           
size=15G features='1 queue_if_no_path' hwhandler='0' wp=rw
|-+- policy='service-time 0' prio=50 status=active
| |- 1:0:4:0 sda 8:0  active ready running
| `- 2:0:4:0 sdc 8:32 active ready running
`-+- policy='service-time 0' prio=10 status=enabled
  |- 1:0:5:0 sdb 8:16 active ready running
  `- 2:0:5:0 sdd 8:48 active ready running
[anaconda root@riley6 ~]# ls -l /dev/mapper/
total 0
crw-------. 1 root root 10, 236 May  8 14:01 control
lrwxrwxrwx. 1 root root      7 May  8 14:01 live-rw -> ../dm-6
lrwxrwxrwx. 1 root root      7 May  8 14:01 mpatha -> ../dm-0
lrwxrwxrwx. 1 root root      7 May  8 14:01 mpatha1 -> ../dm-1
lrwxrwxrwx. 1 root root      7 May  8 14:01 mpatha2 -> ../dm-2
lrwxrwxrwx. 1 root root      7 May  8 14:01 mpatha3 -> ../dm-3
lrwxrwxrwx. 1 root root      7 May  8 14:01 mpatha4 -> ../dm-4
lrwxrwxrwx. 1 root root      7 May  8 14:01 mpatha5 -> ../dm-5
</pre>
</pre>
# Proceed to the partitioning step
# Proceed to the partitioning step

Latest revision as of 14:02, 8 May 2013

Description

A complete installation using a multipath device for the root (/) file system . For more details on multipath please consult http://en.wikipedia.org/wiki/Multipath_I/O .


How to test

  1. Boot the installer using any available means (boot.iso, CD, DVD, PXE or live image)
  2. Verify that there is a multipath disk in your system
multipath -ll
ls -l /dev/mapper/

For example, on a system that does not have a multipath disk:

[anaconda root@sharpie /]# lsmod | grep multipath
dm_multipath           27759  1 dm_round_robin
[anaconda root@sharpie /]# multipath -ll
[anaconda root@sharpie /]# ls -l /dev/mapper/
total 0
crw-------. 1 root root 10, 236 May  6 14:37 control
lrwxrwxrwx. 1 root root       7 May  6 14:37 live-rw -> ../dm-0

And on a system that does have a multipath disk:

[anaconda root@riley6 ~]# lsmod | grep multipath
dm_multipath           27759  3 dm_round_robin,dm_service_time
[anaconda root@riley6 ~]# multipath -ll
mpatha (3600507680281026d6800000000000001) dm-0 IBM     ,2145            
size=15G features='1 queue_if_no_path' hwhandler='0' wp=rw
|-+- policy='service-time 0' prio=50 status=active
| |- 1:0:4:0 sda 8:0  active ready running
| `- 2:0:4:0 sdc 8:32 active ready running
`-+- policy='service-time 0' prio=10 status=enabled
  |- 1:0:5:0 sdb 8:16 active ready running
  `- 2:0:5:0 sdd 8:48 active ready running
[anaconda root@riley6 ~]# ls -l /dev/mapper/
total 0
crw-------. 1 root root 10, 236 May  8 14:01 control
lrwxrwxrwx. 1 root root       7 May  8 14:01 live-rw -> ../dm-6
lrwxrwxrwx. 1 root root       7 May  8 14:01 mpatha -> ../dm-0
lrwxrwxrwx. 1 root root       7 May  8 14:01 mpatha1 -> ../dm-1
lrwxrwxrwx. 1 root root       7 May  8 14:01 mpatha2 -> ../dm-2
lrwxrwxrwx. 1 root root       7 May  8 14:01 mpatha3 -> ../dm-3
lrwxrwxrwx. 1 root root       7 May  8 14:01 mpatha4 -> ../dm-4
lrwxrwxrwx. 1 root root       7 May  8 14:01 mpatha5 -> ../dm-5
  1. Proceed to the partitioning step
  2. Delete all partitions to start with empty disk(s)
  3. Create the required boot partitions needed for your architecture. This includes /boot and swap.
  4. Create the root filesystem /
  5. Complete with installation as desired

Expected Results

  1. Anaconda completes successfully
  2. Reboot successfully into installed system
  3. Confirm that the root filesystem is a multipath device
[root@riley6 ~]# multipath -ll
mpatha (3600507680281026d6800000000000001) dm-0 IBM     ,2145            
size=15G features='1 queue_if_no_path' hwhandler='0' wp=rw
|-+- policy='service-time 0' prio=50 status=active
| |- 2:0:4:0 sdc 8:32 active ready running
| `- 1:0:4:0 sde 8:64 active ready running
`-+- policy='service-time 0' prio=10 status=enabled
  |- 2:0:5:0 sdd 8:48 active ready running
  `- 1:0:5:0 sdf 8:80 active ready running
[root@riley6 ~]# mount | grep ' / '
/dev/mapper/fedora_riley6-root on / type ext4 (rw,relatime,seclabel,data=ordered)
[root@riley6 ~]# lvscan
  ACTIVE            '/dev/fedora_riley6/swap' [2.91 GiB] inherit
  ACTIVE            '/dev/fedora_riley6/root' [11.59 GiB] inherit
[root@riley6 ~]# pvscan
  PV /dev/mapper/mpatha5   VG fedora_riley6   lvm2 [14.50 GiB / 0    free]
  Total: 1 [14.50 GiB] / in use: 1 [14.50 GiB] / in no VG: 0 [0   ]