[DRBD-user] symlink /var/lib/nfs

mike mike503 at gmail.com
Wed Jun 7 05:37:07 CEST 2006

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


I was getting weird errors too trying to symlink the shared NFS dir
(I'm using NFS v4 on CentOS 4.3) so DRBD could propogate it.

What I realized (and I could be wrong, but it appears to work) is that
it doesn't *need* to be shared, as long as on failover you restart the
NFS services (portmapper, nfsd, all the RPC crap) - it seems to pick
up where it left off.

The only thing I can think is possibly if it was in the middle of some
process/transaction like writing a large file when it crashed, it
might have been able to persist that, but for my setup, those were
odds I could live with.

On 6/6/06, Montse Seisdedos <mseisdedos at mediafusion.es> wrote:
>
> Hello everybody:
>
> I'm trying to built a HA nfs server  in a FC4.
>
> I've been reading about link or not to link /var/lib/nfs to the share fs.
> I did it, but when i try to start nfs i get the following errors
>
> Jun  6 11:01:17 mfs-01 exportfs[5969]: can't open /var/lib/nfs/rmtab for
> reading
> Jun  6 11:01:17 mfs-01 exportfs[5969]: could not open /var/lib/nfs/xtab for
> locking
> Jun  6 11:01:17 mfs-01 exportfs[5969]: could not open /var/lib/nfs/etab for
> locking
> Jun  6 11:01:17 mfs-01 exportfs[5969]: can't lock /var/lib/nfs/etab for
> writing
> Jun  6 11:01:17 mfs-01 exportfs[5969]: could not open /var/lib/nfs/xtab for
> locking
> Jun  6 11:01:17 mfs-01 exportfs[5969]: can't lock /var/lib/nfs/xtab for
> writing
>
> # ls -l /var/lib/nfs
> lrwxrwxrwx  1 root root 12 jun  6 10:02 /var/lib/nfs -> /u/varlibnfs
> # ls -la /var/lib/nfs/
> total 120
> drwxr-xr-x   4 root    root     4096 jun  6 10:08 .
> drwxr-xr-x  17 root    root    77824 jun  6 10:07 ..
> -rw-r--r--   1 root    root        0 sep 27  2005 etab
> -rw-r--r--   1 root    root        0 sep 27  2005 rmtab
> drwxr-xr-x   2 root    root     4096 sep 27  2005 rpc_pipefs
> drwx------   2 rpcuser rpcuser  4096 sep 27  2005 statd
> -rw-------   1 root    root        0 sep 27  2005 state
> -rw-r--r--   1 root    root        0 sep 27  2005 xtab
>
>
> somebody can help me, is really necesary to mv /var/lib/nfs to the share fs?
>
> Thanks in advance.
>
>
>
> _______________________________________________
> drbd-user mailing list
> drbd-user at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user
>
>
>



More information about the drbd-user mailing list