Re: [pve-devel] nfs hard / soft mounts

2015-01-27 Thread Eneko Lacunza

Hi,

On 26/01/15 18:36, Michael Rasmussen wrote:

I usually change it to soft because eventually this kind of problems happen.


You just have to accept that using soft mounts does not guaranty
against data loss.


True, but this prevents the nodes using that NFS share to become unstable.

If you're using NFS only for backups, it's better to get an error and 
let the nodes continue working normally, without hanged processes.


Cheers
Eneko

--
Zuzendari Teknikoa / Director Técnico
Binovo IT Human Project, S.L.
Telf. 943575997
  943493611
Astigarraga bidea 2, planta 6 dcha., ofi. 3-2; 20180 Oiartzun (Gipuzkoa)
www.binovo.es

___
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


Re: [pve-devel] nfs hard / soft mounts

2015-01-27 Thread Eneko Lacunza

On 26/01/15 18:21, Dietmar Maurer wrote:

I usually change it to soft because eventually this kind of problems happen.

Maybe it would be helpful to be able to set soft mount on GUI storage
configuration, this would help not to forget it ;)

Somebody wants to provide a patch?



Will try to do so, seems a simple enough change for a first contribution.

GUI and API would need to be patched?

Thanks
Eneko

--
Zuzendari Teknikoa / Director Técnico
Binovo IT Human Project, S.L.
Telf. 943575997
  943493611
Astigarraga bidea 2, planta 6 dcha., ofi. 3-2; 20180 Oiartzun (Gipuzkoa)
www.binovo.es

___
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


Re: [pve-devel] nfs hard / soft mounts

2015-01-27 Thread Dietmar Maurer
 Will try to do so, seems a simple enough change for a first contribution.
 
 GUI and API would need to be patched?

The API is already complete:

# pvesh help /storage/local -v

so you need to implement the GUI.

___
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


Re: [pve-devel] nfs hard / soft mounts

2015-01-27 Thread Dietmar Maurer
 Will try to do so, seems a simple enough change for a first contribution.

Also read:

http://pve.proxmox.com/wiki/Developer_Documentation

before you start.

___
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


Re: [pve-devel] nfs hard / soft mounts

2015-01-26 Thread Eneko Lacunza

I usually change it to soft because eventually this kind of problems happen.

Maybe it would be helpful to be able to set soft mount on GUI storage 
configuration, this would help not to forget it ;)


On 26/01/15 16:59, Dietmar Maurer wrote:

Is it really expected to mount the nfs with hard instead of soft?

You can also set the 'soft' option if you want - that is up to you.

___
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel





--
Zuzendari Teknikoa / Director Técnico
Binovo IT Human Project, S.L.
Telf. 943575997
  943493611
Astigarraga bidea 2, planta 6 dcha., ofi. 3-2; 20180 Oiartzun (Gipuzkoa)
www.binovo.es

___
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


[pve-devel] nfs hard / soft mounts

2015-01-26 Thread Stefan Priebe - Profihost AG
Hi,

today i had some problems with a nfs share used for cdisoimages not
being available anymore to pve.

Somebody else tried to reboot one of the pve nodes but they seem to hang
on shutdown no beeing able to reach the nfs share.

Also some requests to pveapi seem to hang.

Is it really expected to mount the nfs with hard instead of soft?

mount looks like this one:
IP:/PVE-ISO on /mnt/pve/cdisoimages type nfs
(rw,relatime,vers=3,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=IP,mountvers=3,mountport=32767,mountproto=udp,local_lock=none,addr=IP)

Stefan
___
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


Re: [pve-devel] nfs hard / soft mounts

2015-01-26 Thread Dietmar Maurer
 Is it really expected to mount the nfs with hard instead of soft?

You can also set the 'soft' option if you want - that is up to you.

___
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


Re: [pve-devel] nfs hard / soft mounts

2015-01-26 Thread Stefan Priebe


Am 26.01.2015 um 16:59 schrieb Dietmar Maurer:

Is it really expected to mount the nfs with hard instead of soft?


You can also set the 'soft' option if you want - that is up to you.



Where or do you mean by edit the PVE code?

Stefan
___
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


Re: [pve-devel] nfs hard / soft mounts

2015-01-26 Thread Martin Maurer
 Stefan Priebe s.pri...@profihost.ag hat am 26. Januar 2015 um 19:54
 geschrieben:
 
 Am 26.01.2015 um 16:59 schrieb Dietmar Maurer:
  Is it really expected to mount the nfs with hard instead of soft?
 
  You can also set the 'soft' option if you want - that is up to you.
 
 
 Where or do you mean by edit the PVE code?
 
 Stefan

Just add the well known NFS options on your NFS storage definition in
/etc/pve/storage.cfg 
..
options vers=3,soft
...

Martin

___
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


Re: [pve-devel] nfs hard / soft mounts

2015-01-26 Thread Dietmar Maurer
 I usually change it to soft because eventually this kind of problems happen.
 
 Maybe it would be helpful to be able to set soft mount on GUI storage 
 configuration, this would help not to forget it ;)

Somebody wants to provide a patch?

___
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


Re: [pve-devel] nfs hard / soft mounts

2015-01-26 Thread Michael Rasmussen
On Mon, 26 Jan 2015 17:06:26 +0100
Eneko Lacunza elacu...@binovo.es wrote:

 I usually change it to soft because eventually this kind of problems happen.
 
You just have to accept that using soft mounts does not guaranty
against data loss.

-- 
Hilsen/Regards
Michael Rasmussen

Get my public GnuPG keys:
michael at rasmussen dot cc
http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xD3C9A00E
mir at datanom dot net
http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xE501F51C
mir at miras dot org
http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xE3E80917
--
/usr/games/fortune -es says:
That's what she said.


pgpH0ZkykMidq.pgp
Description: OpenPGP digital signature
___
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel