Hello everyone,
Here is something that is driving me crazy.
I have a Xen VM running CentOS 5.8, on that VM I have 2 mount points that I want manage by autofs, there is a block-attach device(external drive) mapped to the VM and the VM sees it just as expected, as a matter of fact I have created a partition table and format it by hand.
Now since the device will not always be connected to the VM, and to prevent it from hanging on reboot, I want to manage this device with autofs
I have added the mount points into the auto.master as:
Code:
/media /etc/auto.media
/backups /etc/auto.backups
And the auto.media file looks like this:
Code:
media -fstype=ext3,noatime,sync,umask=002 :/dev/xvdb1
* -fstype=nfs,rw,wsize=32768,wsize=32768,intr,bg,soft server:/backups
When I restart autofs this is what I get on the log over and over again:
Code:
Jun 13 20:07:25 mirrors automount[1512]: st_ready: st_ready(): state = 2 path /media
Jun 13 20:07:28 mirrors automount[1512]: st_expire: state 1 path /media
Jun 13 20:07:28 mirrors automount[1512]: expire_proc: exp_proc = 3065531280 path /media
Jun 13 20:07:28 mirrors automount[1512]: expire_cleanup: got thid 3065531280 path /media stat 0
Jun 13 20:07:28 mirrors automount[1512]: expire_cleanup: sigchld: exp 3065531280 finished, switching from 2 to 1
Same for the backups one
Oddly enough, I know that autofs is doing something because when is up, I cannot write anything inside /media or /backups but there is no lost+found either, besides the directories are created by autofs and they are gone when I stop it.
Any help will be more than welcome.
Cheers,
Max L