I have several multipath iSCSI LUN's formatted as ocfs2
filesystems. They are part of an Ubuntu 14.04 cluster using local heartbeat. This all appears to be working fine if I mount them manually after rebooting.
If I try to automatically mount them by UUID via fstab
(even with _netdev
option) I run into issues.
If I have fstab entries (such as the following) commented out during a boot
UUID=094c02f6-bfbb-4fe5-8a90-3b6992c81a60 /mnt/lun-1 ocfs2 _netdev 0 0
and then uncomment them once logged in and run mount -a
everything seems fine. i.e. multipath -ll
shows multiple paths to each iSCSI device. e.g.:
3603be8bfce91e3e06e63e5ad426f4d98 dm-5 EQLOGIC ,100E-00
size=15T features='1 queue_if_no_path' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=1 status=active
|- 19:0:0:0 sdr 65:16 active ready running
`- 20:0:0:0 sdf 8:80 active ready running
and mount
shows that /dev/mapper/*
devices for my iSCSI LUN's:
/dev/mapper/3603be8bfce91e3e06e63e5ad426f4d98-part1 on /mnt/lun-1 type ocfs2 (rw,_netdev,heartbeat=local)
However, if I then reboot with the same fstab
entry uncommented, I don't get the same multipath -ll
output. Namely, only a single multipath device is present, not one for each iSCSI LUN.
mount
shows the device not as /dev/mapper/*
but to just a single non-multipath'd device like /dev/sdc1
.:
/dev/sdk1 on /mnt/lun-1 type ocfs2 (rw,_netdev,heartbeat=local)
Am I doing something wrong, or is this caused by multipath
not being fully up-and-running before my ocfs2
multipath devices are mounted?