Spiego prima la situazione.
Ho un server che ha /opt/slackers e /mnt/hd dove /mnt/hd è un disco usb che viene montato solo a volte
Sul client voglio che /opt/slackers e /mnt/hd puntino alle stesse dir del server.
Con nfs3 tutto ok, nel server ho
/etc/export
Codice: Seleziona tutto
/export 192.168.0.0/24(rw,fsid=0,async,no_subtree_check,no_root_squash)
/export/hd 192.168.0.0/24(rw,async,no_subtree_check,no_root_squash,nohide)
/export/slackers 192.168.0.0/24(rw,,async,no_subtree_check,no_root_squash,nohide)
Codice: Seleziona tutto
/opt/slackers /export/slackers none bind,auto 0 0
/mnt/hd /export/hd none bind 0 0
Codice: Seleziona tutto
mount /mnt/hd
mount /export/hd/
/etc/fstab
Codice: Seleziona tutto
192.168.0.100:/export/slackers /opt/slackers nfs4 rw,nosuid,nolock 0 0
192.168.0.100:/export/hd /mnt/hd nfs rw,nosuid,nolock 0 0
Insomma funziona. Con alcuni problemi se perde la connessione, ma va bene, ora non interessa.
Se faccio lo stesso con nfs4 non funziona, mi dice
Codice: Seleziona tutto
mount -t nfs4 192.168.0.100:/export/slackers /opt/slackers
mount.nfs4: mounting 192.168.0.100:/export/slackers failed, reason given by server: No such file or directory
Codice: Seleziona tutto
mount -t nfs4 192.168.0.100:/ /opt/slackers
mettendo
/export/slackers 192.168.0.0/24(rw,fsid=0,async,no_subtree_check,no_root_squash,nohide)
mi da sempre errore, ma comunque non ho indagato perché non andrebbe bene io voglio entrambe le dir e una è ahimè non disponibile al boot, altrimenti era semplice risolvere.
Come posso fare? dove mi sto perdendo?