Debian
Debian:在啟動時掛載 NFS 卷且 fstab 不起作用,如何在啟動時嘗試更改
因此,伺服器上有一堆 NIC 和 vlan,在添加最後一個之後,網路卷的自動掛載不起作用。如果我通過 SSH 登錄並使用它,我可以做到這一點,
mount
但它不會發生在fstab
.我猜測的是到達網路儲存所需的介面出現得太晚了,我沒有啟動經驗,所以我只有一些調試資訊,例如
# chkconfig --list networking 0:off 1:off 2:off 3:off 4:off 5:off 6:off S:on nfs-common 0:off 1:off 2:on 3:on 4:on 5:on 6:off S:on
(除其他外,請詢問您是否需要查看其他條目,我實際上不知道需要什麼)
我怎樣才能使 nfs 安裝在以後完成,上面的這表明我可能 nfs 的東西發生得太早了?
# ls -lh /etc/rc5.d/ total 4.0K -rw-r--r-- 1 root root 677 Mar 27 2012 README lrwxrwxrwx 1 root root 17 Apr 10 13:46 S14portmap -> ../init.d/portmap lrwxrwxrwx 1 root root 20 Apr 10 13:46 S15nfs-common -> ../init.d/nfs-common lrwxrwxrwx 1 root root 20 Apr 11 11:19 S17fancontrol -> ../init.d/fancontrol lrwxrwxrwx 1 root root 17 Apr 10 13:46 S17rsyslog -> ../init.d/rsyslog lrwxrwxrwx 1 root root 14 Apr 10 15:59 S17sudo -> ../init.d/sudo lrwxrwxrwx 1 root root 17 Apr 11 11:18 S18apache2 -> ../init.d/apache2 lrwxrwxrwx 1 root root 15 Apr 11 11:18 S19acpid -> ../init.d/acpid lrwxrwxrwx 1 root root 13 Apr 11 11:18 S19atd -> ../init.d/atd lrwxrwxrwx 1 root root 14 Apr 11 11:18 S19cron -> ../init.d/cron lrwxrwxrwx 1 root root 15 Apr 11 11:18 S19exim4 -> ../init.d/exim4 lrwxrwxrwx 1 root root 21 Apr 11 11:18 S19mpt-statusd -> ../init.d/mpt-statusd lrwxrwxrwx 1 root root 17 Apr 11 11:18 S19nagios3 -> ../init.d/nagios3 lrwxrwxrwx 1 root root 17 Apr 11 20:49 S19postfix -> ../init.d/postfix lrwxrwxrwx 1 root root 15 Apr 12 19:15 S19rsync -> ../init.d/rsync lrwxrwxrwx 1 root root 13 Apr 11 11:18 S19ssh -> ../init.d/ssh lrwxrwxrwx 1 root root 18 Apr 11 11:18 S21bootlogs -> ../init.d/bootlogs lrwxrwxrwx 1 root root 18 Apr 11 11:18 S22rc.local -> ../init.d/rc.local lrwxrwxrwx 1 root root 19 Apr 11 11:18 S22rmnologin -> ../init.d/rmnologin lrwxrwxrwx 1 root root 23 Apr 11 11:18 S22stop-bootlogd -> ../init.d/stop-bootlogd
我怎樣才能延遲或更改事件的順序,以便它安裝
fstab
,無論如何要尋找什麼?
好的,我可以通過將 mount 命令放入
rc.local
(也可以像@reboot root mount -a
in一樣工作/etc/crontab
)來解決這個問題。但是,如果有人有關於通過更改服務啟動來修復它的建議,那將很高興知道。