I'm working with the DataDomain server in our Commvault solutions. Anytime this server is rebooted the network disk in use for the solution does not remount. Right now this means we need to stop some processes then run:
boostfs mount -d datastore.company.com -s Commvault /cvdisk
I didn't see a way to mount with fstab so I tried following a guide to run scripts at boot. Now I have two scripts. The first:
cat /etc/systemd/system/remountboostfs.service
[Unit]
Description=Remount boostfs commvault drive
After=network.target
[Service]
Type=simple
ExecStart=/usr/local/sbin/cvdiskmount.sh
RemainAfterExit=yes
[Install]
Wantedby=default.target
That calls the second which should handle the mounting
cat /usr/local/sbin/cvdiskmount.sh
#!/bin/bash
(cd /opt/emc/boostfs/bin && ./boostfs mount -d datastore.company.com -s Commvault /cvdisk)
After some trial and error I can confirm that the second script will remount the drive when run manual, and that the first service file is running (not not generating anything in the messages logs (not since I fixt the counting script).
Is there a better way to remount this file system on rebooting? What am I missing in the current scripts?
Edit 1: As seen in the notes the fstab works as written:
aemb01p.salemstate.edu:Commvault /cvdisk boostfs defaults 0 0
This works perfectly, but when I tried to convert this for automount/ autofs this doesn't appear to work. No errors, notices or logs I can find.
$cat /etc/auto.master| grep cvdisk
/cvdisk /etc/auto.cvdisk --timeout 120
$cat /etc/auto.cvdisk
/ -fstype=boostfs aemb01p.salemstate.edu:Commvault