Ulli Horlacher
2024-10-12 10:02:06 UTC
Ich hab ein btrfs Filesystem auf einem mdadm RAID5 mit 4 SSDs.
Frueher konnte ich da mal fstrim durchfuehren, inzwischen geht das nicht
mehr (warum?):
***@juhu:~/bin# df -TH /local/
Filesystem Type Size Used Avail Use% Mounted on
/dev/md127 btrfs 4.4T 1.9T 2.6T 42% /local
***@juhu:~/bin# fstrim -v /local
fstrim: /local: the discard operation is not supported
***@juhu:~/bin# lshd
Device Size Type Label Mountpoint
sda 1490G SCSI:DOS/MBR "NETAPP_X439_TPM3V1T6AMD"
sda1 64G btrfs "tmp" /tmp
sda2 32G Linux
sda3 32G swap "swap1" [swap]
sda4 1362G linux_raid "mux:nts1"
md127 4086G btrfs "local" /local
sdb 1490G SCSI:DOS/MBR "NETAPP_X439_TPM3V1T6AMD"
sdb1 64G btrfs "U18b"
sdb2 32G Linux
sdb3 32G swap "swap2"
sdb4 1362G linux_raid "mux:nts1"
md127 4086G btrfs "local" /local
sdc 1490G SCSI:DOS/MBR "NETAPP_X439_TPM3V1T6AMD"
sdc1 64G btrfs "M21" /
sdc2 32G Linux
sdc3 32G Linux
sdc4 1362G linux_raid "mux:nts1"
md127 4086G btrfs "local" /local
sdd 1490G SCSI:DOS/MBR "NETAPP_X439_TPM3V1T6AMD"
sdd1 64G btrfs "M21b"
sdd2 32G Linux
sdd3 32G Linux
sdd4 1362G linux_raid "mux:nts1"
md127 4086G btrfs "local" /local
***@juhu:~/bin# diskcheck -v sda
Device: /dev/sda
Vendor: NETAPP
Product: X439_TPM3V1T6AMD
Serial number: 86J0A007TWJC
User Capacity: 1,600,321,314,816 bytes [1.60 TB]
Rotation Rate: Solid State Device
Total_GB_written: 256,745
Used_Lifetime: 4%
Temperature: 35 C
Temperature: 64 C
Defect list: 0
SMART Health Status: OK
***@juhu:~/bin# mdadm --detail /dev/md127
/dev/md127:
Version : 1.2
Creation Time : Thu Feb 10 09:38:22 2022
Raid Level : raid5
Array Size : 4285387776 (3.99 TiB 4.39 TB)
Used Dev Size : 1428462592 (1362.29 GiB 1462.75 GB)
Raid Devices : 4
Total Devices : 4
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Sat Oct 12 11:51:54 2024
State : clean
Active Devices : 4
Working Devices : 4
Failed Devices : 0
Spare Devices : 0
Layout : left-symmetric
Chunk Size : 512K
Consistency Policy : bitmap
Name : mux:nts1
UUID : 74388db3:3c3b30c3:e1295cc5:46f23ff7
Events : 18499
Number Major Minor RaidDevice State
0 8 20 0 active sync /dev/sdb4
1 8 4 1 active sync /dev/sda4
2 8 52 2 active sync /dev/sdd4
4 8 36 3 active sync /dev/sdc4
Auf nicht-RAID Partition funktioniertt es dagegen:
***@juhu:~/bin# df -TH /tmp
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda1 btrfs 69G 9.6M 67G 1% /tmp
***@juhu:~/bin# time fstrim -v /tmp
/tmp: 62 GiB (66583433216 bytes) trimmed
real 0m4.920s
user 0m0.000s
sys 0m0.019s
Frueher konnte ich da mal fstrim durchfuehren, inzwischen geht das nicht
mehr (warum?):
***@juhu:~/bin# df -TH /local/
Filesystem Type Size Used Avail Use% Mounted on
/dev/md127 btrfs 4.4T 1.9T 2.6T 42% /local
***@juhu:~/bin# fstrim -v /local
fstrim: /local: the discard operation is not supported
***@juhu:~/bin# lshd
Device Size Type Label Mountpoint
sda 1490G SCSI:DOS/MBR "NETAPP_X439_TPM3V1T6AMD"
sda1 64G btrfs "tmp" /tmp
sda2 32G Linux
sda3 32G swap "swap1" [swap]
sda4 1362G linux_raid "mux:nts1"
md127 4086G btrfs "local" /local
sdb 1490G SCSI:DOS/MBR "NETAPP_X439_TPM3V1T6AMD"
sdb1 64G btrfs "U18b"
sdb2 32G Linux
sdb3 32G swap "swap2"
sdb4 1362G linux_raid "mux:nts1"
md127 4086G btrfs "local" /local
sdc 1490G SCSI:DOS/MBR "NETAPP_X439_TPM3V1T6AMD"
sdc1 64G btrfs "M21" /
sdc2 32G Linux
sdc3 32G Linux
sdc4 1362G linux_raid "mux:nts1"
md127 4086G btrfs "local" /local
sdd 1490G SCSI:DOS/MBR "NETAPP_X439_TPM3V1T6AMD"
sdd1 64G btrfs "M21b"
sdd2 32G Linux
sdd3 32G Linux
sdd4 1362G linux_raid "mux:nts1"
md127 4086G btrfs "local" /local
***@juhu:~/bin# diskcheck -v sda
Device: /dev/sda
Vendor: NETAPP
Product: X439_TPM3V1T6AMD
Serial number: 86J0A007TWJC
User Capacity: 1,600,321,314,816 bytes [1.60 TB]
Rotation Rate: Solid State Device
Total_GB_written: 256,745
Used_Lifetime: 4%
Temperature: 35 C
Temperature: 64 C
Defect list: 0
SMART Health Status: OK
***@juhu:~/bin# mdadm --detail /dev/md127
/dev/md127:
Version : 1.2
Creation Time : Thu Feb 10 09:38:22 2022
Raid Level : raid5
Array Size : 4285387776 (3.99 TiB 4.39 TB)
Used Dev Size : 1428462592 (1362.29 GiB 1462.75 GB)
Raid Devices : 4
Total Devices : 4
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Sat Oct 12 11:51:54 2024
State : clean
Active Devices : 4
Working Devices : 4
Failed Devices : 0
Spare Devices : 0
Layout : left-symmetric
Chunk Size : 512K
Consistency Policy : bitmap
Name : mux:nts1
UUID : 74388db3:3c3b30c3:e1295cc5:46f23ff7
Events : 18499
Number Major Minor RaidDevice State
0 8 20 0 active sync /dev/sdb4
1 8 4 1 active sync /dev/sda4
2 8 52 2 active sync /dev/sdd4
4 8 36 3 active sync /dev/sdc4
Auf nicht-RAID Partition funktioniertt es dagegen:
***@juhu:~/bin# df -TH /tmp
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda1 btrfs 69G 9.6M 67G 1% /tmp
***@juhu:~/bin# time fstrim -v /tmp
/tmp: 62 GiB (66583433216 bytes) trimmed
real 0m4.920s
user 0m0.000s
sys 0m0.019s
--
Ullrich Horlacher Server und Virtualisierung
Rechenzentrum TIK
Universitaet Stuttgart E-Mail: ***@tik.uni-stuttgart.de
Allmandring 30a Tel: ++49-711-68565868
70569 Stuttgart (Germany) WWW: https://www.tik.uni-stuttgart.de/
Ullrich Horlacher Server und Virtualisierung
Rechenzentrum TIK
Universitaet Stuttgart E-Mail: ***@tik.uni-stuttgart.de
Allmandring 30a Tel: ++49-711-68565868
70569 Stuttgart (Germany) WWW: https://www.tik.uni-stuttgart.de/