[PVE-User] Unprivileged container and fstrim...

Marco Gaiarin gaio at sv.lnf.it
Mon Mar 9 11:34:32 CET 2020


I was abused to do a 'fstrim /' weekly run on my privileged containers,
and seems that the command was effective:

	root at vdcsv1:~# fstrim -v /
	/: 18,6 GiB (19946131456 bytes) trimmed

but after convert many of them to unprivileged ones:

	root at vmw:~# fstrim -v /
	fstrim: /: FITRIM ioctl failed: Operazione non permessa

Clearly, underlying storage is 'trimmable'.


Two question.

1) trim on container generally works, or simply on privileged ones does
 not throw errors but do nothing? ;-)
Container space change slowly, so could be that trim was simply
ignored...

2) there's another way to 'trim' container disk space? Eg, from the
host?


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)


More information about the pve-user mailing list