may you simply have to stop nfs-server after pve-manager?
lets try in my testing environment by modifying a systemd script:
# cp /lib/systemd/system/pve-manager.service /etc/systemd/system/
# vim /etc/systemd/system/pve-manager.service
# diff -u /lib/systemd/system/pve-manager.service
/etc/systemd/system/pve-manager.service
--- /lib/systemd/system/pve-manager.service 2016-10-29
07:54:19.000000000 +0200
+++ /etc/systemd/system/pve-manager.service 2016-11-02
04:51:05.646879765 +0100
@@ -10,6 +10,7 @@
After=pvestatd.service
After=spiceproxy.service
After=open-iscsi.service
+After=nfs-kernel-server.service
After=pve-firewall.service
After=lxc.service
After=pve-ha-crm.service pve-ha-lrm.service
After this modification, nfs-kernel-server stops after all vms are stopped.
regards Lutz
Am 21.10.2016 um 18:09 schrieb Marco Gaiarin:
I've noted that one of my node, '3jane', tend to ''crash'' on shutdown,
so unattended reboots are painful.
That node is also a NFS server for the cluster, with /etc/exports:
/srv/pve tessier(rw,async,no_root_squash,no_subtree_check)
ashpool(rw,async,no_root_squash,no_subtree_check)
3jane(rw,async,no_root_squash,no_subtree_check)
i've defined a NFS type storage, like (in /etc/pve/storage.cfg):
nfs: Backup
server 3jane
export /srv/pve
path /mnt/pve/Backup
content images,vztmpl,backup,iso
options vers=3,soft,intr
maxfiles 60
and so the NFS share get mounted by itself on 3jane:
root@3jane:~# df
File system 1K-blocchi Usati Disponib. Uso% Montato su
udev 10240 0 10240 0% /dev
tmpfs 2451660 9176 2442484 1% /run
/dev/md0 1899146548 625786412 1176866008 35% /
tmpfs 6129148 64368 6064780 2% /dev/shm
tmpfs 5120 0 5120 0% /run/lock
tmpfs 6129148 0 6129148 0% /sys/fs/cgroup
cgmfs 100 0 100 0% /run/cgmanager/fs
/dev/fuse 30720 48 30672 1% /etc/pve
3jane:/srv/pve 1899147264 625786880 1176866816 35% /mnt/pve/Backup
Note that ive added the 'soft' opton to NFS mount, but seems to not
suffice to solve the hang on shutdown/reboot.
Can i do something? Thanks.
Freundliche Grüße / Best Regards
Lutz Willek
--
________________________________creating IT solutions
Lutz Willek science + computing ag
Senior Systems Engineer Geschäftsstelle Berlin
IT Services Berlin Friedrichstraße 187
phone +49(0)30 2007697-21 10117 Berlin, Germany
fax +49(0)30 2007697-11 http://de.atos.net/sc
S/MIME-Sicherheit:
http://www.science-computing.de/cacert.crt
http://www.science-computing.de/cacert-sha512.crt
_______________________________________________
pve-user mailing list
[email protected]
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user