Zhen Ren
2015-Jul-23 08:56 UTC
[Ocfs2-users] Fail to mount iscsi volume at boot using o2cb
Hi all, I hope to mount an iscsi volume at boot time by using o2cb cluster stack. But a reboot breaks at the time when kernel mounts device in /etc/fstab. Error screenshot is attached. From error message, kernel was waiting for iscsi volume to be available until timeout. ISCSI volume is common for shared storage disk. But I don't know why this happened. Any hint is appreciated. Thanks! The following is what I did: Environment: 3 nodes with sle12, an iscsi volume from a remote iscsi server. 1. 'blkid /dev/sdb' to get UUID of volume, add 'UUID=e7274365-4c97-4292-9367-f8be382a2872 /mnt/shared ocfs2 defaults 0 0' to /etc/fstab. 2. referring to 'man ocfs2.cluster.conf' and 'man o2cb.sysconfig ', and configure o2cb as the following shows. s2:~ # o2cb list-cluster hacluster node: number = 1 name = s1 ip_address = 147.2.208.159 ip_port = 7777 cluster = hacluster node: number = 2 name = s2 ip_address = 147.2.208.137 ip_port = 7777 cluster = hacluster node: number = 3 name = s3 ip_address = 147.2.208.93 ip_port = 7777 cluster = hacluster cluster: node_count = 3 heartbeat_mode = local name = hacluster 3. enable o2cb and ocfs2 service by chkconfig 4.reboot -- Eric, Ren -------------- next part -------------- A non-text attachment was scrubbed... Name: reboot.JPG Type: image/jpeg Size: 589913 bytes Desc: JPEG Url : http://oss.oracle.com/pipermail/ocfs2-users/attachments/20150723/22856af9/attachment-0001.jpe
Adi Kriegisch
2015-Jul-23 09:19 UTC
[Ocfs2-users] Fail to mount iscsi volume at boot using o2cb
Hi!> I hope to mount an iscsi volume at boot time by using o2cb cluster stack. But a reboot breaks at the time when kernel > mounts device in /etc/fstab. Error screenshot is attached. From error message, kernel was waiting for iscsi volume to be available > until timeout. > > ISCSI volume is common for shared storage disk. But I don't know why this happened. > Any hint is appreciated. Thanks! > > The following is what I did: > Environment: 3 nodes with sle12, an iscsi volume from a remote iscsi server. > > 1. 'blkid /dev/sdb' to get UUID of volume, add 'UUID=e7274365-4c97-4292-9367-f8be382a2872 /mnt/shared ocfs2 defaults 0 0' > to /etc/fstab.Maybe you need to add the '_netdev' option to /etc/fstab? Like so: UUID=e7274365-4c97-4292-9367-f8be382a2872 /mnt/shared ocfs2 defaults,_netdev 0 0 This should postpone the mount until later in the boot process. -- Adi