Friday 21 August 2015

How to mount iSCSI devices at boot time in RHEL ?

Logical Volumes residing on my iSCSI devices are not activated after booting?
Resolution
To mount iSCSI LUNs in /etc/fstab, add _netdev to the mount options near the end of the line. Properly formatted /etc/fstab lines for two different iSCSI mount points are shown below:
Raw
#device         mount point     FS      Options Backup  fsck
LABEL=data1     /mnt/data1      ext3    _netdev 0       0
LABEL=data2     /mnt/data2      ext3    _netdev 0       0
The netfs service also needs to be enabled at boot time, as it is responsible for mounting devices that use _netdev:

# chkconfig netfs on

No comments:

Post a Comment