Discussion:
[PVE-User] SAN and correctly propagate 'discard'...
Marco Gaiarin
2018-10-09 13:12:18 UTC
Permalink
My SAN (HP MSA 1040) have 'virtual volume' enabled, eg discard.

I've had to use directly some LUN in some VM, via iSCSI, and 'fstrim'
works as expected.


Now i'm using for some disks in my VMs, as storage of type 'LVM'.

But if i look at disk space on SAN, it is coherent with the real disk
space occupied.
While, in Proxmox, the storage volume are full or near full.

Example, VM:
***@vdmsv1:~# df -h | grep sdc
/dev/sdc1 800G 519G 282G 65% /home
/dev/sdc2 1000G 152G 848G 16% /srv

Proxmox node:
***@tessier:~# pvesm status | grep DATA0
DATA0 lvm 1 1953120256 1887436800 65683456 97.14%
***@tessier:~# pvesm list DATA0
DATA0:vm-120-disk-1 raw 1932735283200 120

and SAN report 730GB allocated.


Clearly disks of VM have 'discard' enabled, but seems that discard/trim
does not ''traverse'' all the storage chains (partition in the VM,
LV/PV/VG in proxmox node, iSCSI in the SAN).

Clearly i cannot use 'LVM Thin', because is not shared.

https://pve.proxmox.com/wiki/Storage:_LVM_Thin


Someone can give me some clue? Thanks.
--
dott. Marco Gaiarin GNUPG Key ID: 240A3D66
Associazione ``La Nostra Famiglia'' http://www.lanostrafamiglia.it/
Polo FVG - Via della Bontà, 7 - 33078 - San Vito al Tagliamento (PN)
marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 f +39-0434-842797

Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000
(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)
Alexandre DERUMIER
2018-10-09 14:54:19 UTC
Permalink
Post by Marco Gaiarin
Clearly i cannot use 'LVM Thin', because is not shared.
[ https://pve.proxmox.com/wiki/Storage:_LVM_Thin | https://pve.proxmox.com/wiki/Storage:_LVM_Thin ]
Post by Marco Gaiarin
Someone can give me some clue? Thanks.
Indeed, LVM thin can't work with shared SAN, only on local disk.
So you can't have thin provisioning, and can't use discard.

It's just not possible, sorry.


----- Mail original -----
De: "Marco Gaiarin" <***@sv.lnf.it>
À: "proxmoxve" <pve-***@pve.proxmox.com>
Envoyé: Mardi 9 Octobre 2018 15:12:18
Objet: [PVE-User] SAN and correctly propagate 'discard'...

My SAN (HP MSA 1040) have 'virtual volume' enabled, eg discard.

I've had to use directly some LUN in some VM, via iSCSI, and 'fstrim'
works as expected.


Now i'm using for some disks in my VMs, as storage of type 'LVM'.

But if i look at disk space on SAN, it is coherent with the real disk
space occupied.
While, in Proxmox, the storage volume are full or near full.

Example, VM:
***@vdmsv1:~# df -h | grep sdc
/dev/sdc1 800G 519G 282G 65% /home
/dev/sdc2 1000G 152G 848G 16% /srv

Proxmox node:
***@tessier:~# pvesm status | grep DATA0
DATA0 lvm 1 1953120256 1887436800 65683456 97.14%
***@tessier:~# pvesm list DATA0
DATA0:vm-120-disk-1 raw 1932735283200 120

and SAN report 730GB allocated.


Clearly disks of VM have 'discard' enabled, but seems that discard/trim
does not ''traverse'' all the storage chains (partition in the VM,
LV/PV/VG in proxmox node, iSCSI in the SAN).

Clearly i cannot use 'LVM Thin', because is not shared.

https://pve.proxmox.com/wiki/Storage:_LVM_Thin


Someone can give me some clue? Thanks.
--
dott. Marco Gaiarin GNUPG Key ID: 240A3D66
Associazione ``La Nostra Famiglia'' http://www.lanostrafamiglia.it/
Polo FVG - Via della Bontà, 7 - 33078 - San Vito al Tagliamento (PN)
marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 f +39-0434-842797

Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000
(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)
_______________________________________________
pve-user mailing list
pve-***@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
Marco Gaiarin
2018-10-11 09:41:51 UTC
Permalink
Mandi! Alexandre DERUMIER
In chel di` si favelave...
Post by Alexandre DERUMIER
It's just not possible, sorry.
OK. Thanks.
--
dott. Marco Gaiarin GNUPG Key ID: 240A3D66
Associazione ``La Nostra Famiglia'' http://www.lanostrafamiglia.it/
Polo FVG - Via della Bontà, 7 - 33078 - San Vito al Tagliamento (PN)
marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 f +39-0434-842797

Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000
(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)
Marco Gaiarin
2018-10-23 12:53:17 UTC
Permalink
Post by Marco Gaiarin
Someone can give me some clue? Thanks.
Only for the sake of google: trim correctly propagate between virtual
disks to the SAN.

After rebooting the SAN controllers(s), all ''numbers'' go OK.


Sorry. Thanks.
--
dott. Marco Gaiarin GNUPG Key ID: 240A3D66
Associazione ``La Nostra Famiglia'' http://www.lanostrafamiglia.it/
Polo FVG - Via della Bontà, 7 - 33078 - San Vito al Tagliamento (PN)
marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 f +39-0434-842797

Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000
(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)
Loading...