[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

mounting multipath volumes with /etc/fstab



Hi,

I would like to mount multipath volumes with /etc/fstab.
I have storage attached to my Debian server with redundant paths.
There are 3 volumes and 2 possible paths to each.

Here goes the list displayed by multipath -ll:

# multipath -ll
3600c0ff00010b3e0a1e32d4d03000000 dm-2 HP,MSA2312fc
size=1.4T features='1 queue_if_no_path' hwhandler='0' wp=rw
|-+- policy='round-robin 0' prio=50 status=active
| `- 6:0:2:3 sdd 8:48 active ready running
`-+- policy='round-robin 0' prio=10 status=enabled
 `- 6:0:3:3 sdg 8:96 active ready running
3600c0ff00010b3e0a1e32d4d01000000 dm-0 HP,MSA2312fc
size=1.4T features='1 queue_if_no_path' hwhandler='0' wp=rw
|-+- policy='round-robin 0' prio=50 status=active
| `- 6:0:2:1 sdb 8:16 active ready running
`-+- policy='round-robin 0' prio=10 status=enabled
 `- 6:0:3:1 sde 8:64 active ready running
3600c0ff00010b3e0a1e32d4d02000000 dm-1 HP,MSA2312fc
size=1.4T features='1 queue_if_no_path' hwhandler='0' wp=rw
|-+- policy='round-robin 0' prio=50 status=active
| `- 6:0:2:2 sdc 8:32 active ready running
`-+- policy='round-robin 0' prio=10 status=enabled
 `- 6:0:3:2 sdf 8:80 active ready running

Disks by path:

# ls -l /dev/disk/by-path/
total 0
lrwxrwxrwx 1 root root  9 Mar 24 15:04 pci-0000:00:1f.1-scsi-0:0:0:0
-> ../../sr0
lrwxrwxrwx 1 root root  9 Mar 24 15:04 pci-0000:02:0e.0-scsi-0:2:0:0
-> ../../sda
lrwxrwxrwx 1 root root 10 Mar 24 15:04
pci-0000:02:0e.0-scsi-0:2:0:0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Mar 24 15:04
pci-0000:02:0e.0-scsi-0:2:0:0-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Mar 24 15:04
pci-0000:02:0e.0-scsi-0:2:0:0-part3 -> ../../sda3
lrwxrwxrwx 1 root root  9 Mar 24 15:04
pci-0000:0c:06.0-fc-0x217000c0ff10a22c:0x0001000000000000 -> ../../sdb
lrwxrwxrwx 1 root root 10 Mar 24 15:04
pci-0000:0c:06.0-fc-0x217000c0ff10a22c:0x0001000000000000-part1 ->
../../sdb1
lrwxrwxrwx 1 root root  9 Mar 24 15:04
pci-0000:0c:06.0-fc-0x217000c0ff10a22c:0x0002000000000000 -> ../../sdc
lrwxrwxrwx 1 root root 10 Mar 24 15:04
pci-0000:0c:06.0-fc-0x217000c0ff10a22c:0x0002000000000000-part1 ->
../../sdc1
lrwxrwxrwx 1 root root  9 Mar 24 15:04
pci-0000:0c:06.0-fc-0x217000c0ff10a22c:0x0003000000000000 -> ../../sdd
lrwxrwxrwx 1 root root 10 Mar 24 15:04
pci-0000:0c:06.0-fc-0x217000c0ff10a22c:0x0003000000000000-part1 ->
../../sdd1
lrwxrwxrwx 1 root root  9 Mar 24 15:04
pci-0000:0c:06.0-fc-0x257000c0ff10a22c:0x0001000000000000 -> ../../sde
lrwxrwxrwx 1 root root 10 Mar 24 15:04
pci-0000:0c:06.0-fc-0x257000c0ff10a22c:0x0001000000000000-part1 ->
../../sde1
lrwxrwxrwx 1 root root  9 Mar 24 15:04
pci-0000:0c:06.0-fc-0x257000c0ff10a22c:0x0002000000000000 -> ../../sdf
lrwxrwxrwx 1 root root 10 Mar 24 15:04
pci-0000:0c:06.0-fc-0x257000c0ff10a22c:0x0002000000000000-part1 ->
../../sdf1
lrwxrwxrwx 1 root root  9 Mar 24 15:04
pci-0000:0c:06.0-fc-0x257000c0ff10a22c:0x0003000000000000 -> ../../sdg
lrwxrwxrwx 1 root root 10 Mar 24 15:04
pci-0000:0c:06.0-fc-0x257000c0ff10a22c:0x0003000000000000-part1 ->
../../sdg1


Disks by UUID:
lrwxrwxrwx 1 root root 10 Mar 24 15:04
1ec887b9-6d38-4314-b472-9ca797c81715 -> ../../sdf1
lrwxrwxrwx 1 root root 10 Mar 24 15:04
7fa1c2b9-bc1d-456a-aedd-67f00eb99bf6 -> ../../sda2
lrwxrwxrwx 1 root root 10 Mar 24 15:04
f1325167-0ed8-4a5e-8719-6e2bb8e22cbd -> ../../sda1


I actually need to mount sdf1 partition through /etc/fstab.

I tried both ways:
UUID=1ec887b9-6d38-4314-b472-9ca797c81715 /backup ext4 errors=remount-ro 0 2
/dev/disk/by-id/dm-uuid-part1-mpath-3600c0ff00010b3e0a1e32d4d02000000
/backup ext4 errors=continue 0 2

but neither worked.
When booting there is following error message and the system goes into
maintenance (even though there is "errors=continue" in /etc/fstab):

device-mapper: table: multipath: error getting device done


Finally I took a work around method and I mount it by an entry in /etc/rc.local:

mount /dev/mapper/3600c0ff00010b3e0a1e32d4d02000000-part1 /backup

which actually works but I would rather do it by /etc/fstab, tho.

Could you please tell me why device-mapper can't "get device done"?


Best regards,
Mike


Reply to: