Solved How to automatically mount iSCSI disk after booting

Hi,

My system is 11.0-RELEASE-p9.

I have one iSCSI disk /dev/da1p1 mounted on /foo by fstab.

The problem is that in case any network or iSCSI server failure, the iSCSI disk could lost connection.
In that time if FreeBSD rebooting, the system booting will be stopped by iSCSI mounting in fstab.

I am thinking to specify noauto option to /dev/da1p1 mounting and mount it after the system booting. In this case even the iSCSI failed the system is running fine.

May I know how to mount the disk after booting automatically?
 
The problem is that in case any network or iSCSI server failure, the iSCSI disk could lost connection.
In that time if FreeBSD rebooting, the system booting will be stopped by iSCSI mounting in fstab.
Look into fstab(5). You could consider using options such as failok. This will ensure that any possible errors during mounting are ignored so that the system will boot no matter what.
 
You might want to try the late option in /etc/fstab as well besides failok. If this isn't late enough, then put a regular mount command into the start up script /etc/rc.local.
 
Back
Top