[linux-lvm] strange usage stats for thin LV

Andres Toomsalu andres at active.ee
Fri Nov 2 11:29:49 UTC 2012


Apparently that does not work - FITRIM ioctl not backported to RHEL6 kernel perhaps?

fstrim -v /backup
fstrim: /backup: FITRIM ioctl failed: Operation not supported

df -h
/dev/mapper/VolGroupL0-thin_backup 591G  104G  458G  19% /backup

mount (added discard option today)
/dev/mapper/VolGroupL0-thin_backup on /backup type ext4 (rw,discard)

Cheers,
-- 
----------------------------------------------
Andres Toomsalu
On 02.11.2012, at 13:20, Zdenek Kabelac wrote:

> Dne 2.11.2012 11:46, Andres Toomsalu napsal(a):
>> Thanks a lot for a detailed explanation - now everything fits into places :)
>> 
>> Some answers:
>> 
>> 1) Filesystem in use is ext4 at all cases
>> 2) Im not using discard option as Im not very aware how to use it  - is it a filesystem mount option for fstab?
>> 3) OS is CentOS 6.3 with RHEL OpenVZ patched kernel (2.6.32-042stab061.2 #1 SMP Fri Aug 24 09:07:21 MSK 2012 x86_64 x86_64 x86_64 GNU/Linux)
>> 
> 
> So check for  'fstrim' command - it's usage is quite simple, and should be already pretty matured tool.
> 
> i.e. you could run it once a week in cron.
> 
> Zdenek
> 
> 
> 





More information about the linux-lvm mailing list