fstab for removable drives
Posted on 2014-11-25
Need to set up a virtual server where by I can shut it down, remove the LVM, and move it to another server for high-availability reasons.
So I would like to set up the /etc/fstab that allows the server to boot the server even though the LVM may not be there at the time the server boots.
My LVM looks like this and this seems to be working, but wanted to see if anyone had a better suggestions.
The LVM contains the working directry of Websphere MQ, and Application server, which would be set up to move to another server if the primary became unavailable, then, be moved back. So the /dev/sdc and /dev/sdd should be hot-swappable as well as the server should be able to boot without hanging, if a drive was missing,
/dev/mapper/vg1-data1_lv /var/mqm ext3 rw,auto,defaults,nofail 0 2
/dev/mapper/vg2-data2_lv /usr/mqm ext3 rw,auto,defaults,nofail 0 2