How do I remount an iSCSI backed, Folder Storage mount?

Mar 14, 2013
14
0
1
Havant, United Kingdom
I've figured how to manually mount an iSCSI target's LUN /dev/sdb, formatted it as ext3 /dev/sdb1 and created 'Folder Storage' for Proxmox to use the LUN /mnt/iSCSI for Images, Templates and Backups rather than just LVM volumes. Can anyone give me some pointers as to how I'd go about automatically re-mounting this type of storage in the event of a network disconnection or the storage going offline. An iSCSI LUN with LVM reconnects gracefully when browsing the storage content in the web interface, as does NFS, so is it possible to achieve this with a 'normal' disk mounted over iSCSI?
 
No, the actually mounting of the disk must be placed in /etc/fstab. To ensure the mount does not depend on whether the disk is attached to sdb every time I would use the UUID mount feature (blkid /dev/sdb1 will show the current UUID).