Files
pve-storage/PVE/Storage
Alexandre Derumier c9eeac0131 add check_connection in storage_check_enabled.
Currently, if a storage have an infinite timeout (nfs hard option or iscsi with high timeout for failover),
and if the storage is down or is doing ha failover with dual controller

- pvestatd hang on storage_info. (So pve-manager see the host as down, and hang on differents parts, gui,rrds display)

- pvedaemon hang on differents place (storage disk list,vm_status, hardware info,...)

- I also see a lot of qemu-img info process hanging in uninterruptible sleep state with iscsi storage.

This patch add a check to see if the storage is accessible.

For nfs and iscsi : ping with a timeout of 2 second.  (Maybe this can be polish with some kind of filesystem/storage read test with timeout...)

Default for other storage plugins is to check nothing. (not a problem with sheepdog,ceph,libiscsi... as commands have timeout)

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2012-07-19 10:58:19 +02:00
..
2012-05-23 08:00:13 +02:00
2012-05-23 13:11:20 +02:00
2012-05-23 13:11:20 +02:00
2012-07-17 11:49:53 +02:00
2012-07-17 11:55:38 +02:00
2012-05-23 12:56:25 +02:00
2012-07-18 06:04:09 +02:00
2012-07-17 15:12:49 +02:00