[Bug 1020077] New: fstrim.service should not run fstrim -a
http://bugzilla.suse.com/show_bug.cgi?id=1020077 Bug ID: 1020077 Summary: fstrim.service should not run fstrim -a Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: asn@cryptomilk.org QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- The fstrim.service of the util-linux-systemd package should not run 'fstrim -a'. If you install openSUSE Tumbleweed is chooses btrfs for the root filesystem and creates subvolumes. For example: /dev/sda3 on /tmp type btrfs (rw,relatime,ssd,space_cache,subvolid=264,subvol=/@/tmp) /dev/sda3 on /var/lib/mysql type btrfs (rw,relatime,ssd,space_cache,subvolid=272,subvol=/@/var/lib/mysql) /dev/sda3 on /var/lib/pgsql type btrfs (rw,relatime,ssd,space_cache,subvolid=274,subvol=/@/var/lib/pgsql) /dev/sda3 on /var/lib/machines type btrfs (rw,relatime,ssd,space_cache,subvolid=269,subvol=/@/var/lib/machines) /dev/sda3 on /opt type btrfs (rw,relatime,ssd,space_cache,subvolid=262,subvol=/@/opt) /dev/sda3 on /usr/local type btrfs (rw,relatime,ssd,space_cache,subvolid=265,subvol=/@/usr/local) /dev/sda3 on /var/lib/named type btrfs (rw,relatime,ssd,space_cache,subvolid=273,subvol=/@/var/lib/named) /dev/sda3 on /var/log type btrfs (rw,relatime,ssd,space_cache,subvolid=275,subvol=/@/var/log) /dev/sda3 on /var/tmp type btrfs (rw,relatime,ssd,space_cache,subvolid=278,subvol=/@/var/tmp) /dev/sda3 on /var/cache type btrfs (rw,relatime,ssd,space_cache,subvolid=266,subvol=/@/var/cache) /dev/sda3 on /srv type btrfs (rw,relatime,ssd,space_cache,subvolid=263,subvol=/@/srv) /dev/sda3 on /var/lib/mailman type btrfs (rw,relatime,ssd,space_cache,subvolid=270,subvol=/@/var/lib/mailman) /dev/sda3 on /.snapshots type btrfs (rw,relatime,ssd,space_cache,subvolid=258,subvol=/@/.snapshots) /dev/sda3 on /var/crash type btrfs (rw,relatime,ssd,space_cache,subvolid=267,subvol=/@/var/crash) /dev/sda3 on /var/lib/mariadb type btrfs (rw,relatime,ssd,space_cache,subvolid=271,subvol=/@/var/lib/mariadb) /dev/sda3 on /boot/grub2/x86_64-efi type btrfs (rw,relatime,ssd,space_cache,subvolid=261,subvol=/@/boot/grub2/x86_64-efi) /dev/sda3 on /var/spool type btrfs (rw,relatime,ssd,space_cache,subvolid=277,subvol=/@/var/spool) /dev/sda3 on /var/lib/libvirt/images type btrfs (rw,relatime,ssd,space_cache,subvolid=268,subvol=/@/var/lib/libvirt/images)
From the fstrim manpage:
"fstrim is used on a mounted filesystem" So 'fstrim -a' trims each subvolume of /dev/sda3. This means it trims /dev/sda3 in the exmaple more than 15 times! Please implement a more intelligent solution for trimming. A script which works on the output of 'lsblk -o MOUNTPOINT,FSTYPE' output would be more intelligent. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1020077
Andreas Schneider
http://bugzilla.suse.com/show_bug.cgi?id=1020077
Arvin Schnell
http://bugzilla.suse.com/show_bug.cgi?id=1020077
http://bugzilla.suse.com/show_bug.cgi?id=1020077#c1
Stanislav Brabec
http://bugzilla.suse.com/show_bug.cgi?id=1020077
http://bugzilla.suse.com/show_bug.cgi?id=1020077#c2
--- Comment #2 from Stanislav Brabec
http://bugzilla.suse.com/show_bug.cgi?id=1020077
http://bugzilla.suse.com/show_bug.cgi?id=1020077#c3
Stanislav Brabec
http://bugzilla.suse.com/show_bug.cgi?id=1020077
http://bugzilla.suse.com/show_bug.cgi?id=1020077#c4
--- Comment #4 from Andreas Schneider
http://bugzilla.suse.com/show_bug.cgi?id=1020077
http://bugzilla.suse.com/show_bug.cgi?id=1020077#c5
--- Comment #5 from Ruediger Meier
http://bugzilla.suse.com/show_bug.cgi?id=1020077
Chenzi Cao
http://bugzilla.suse.com/show_bug.cgi?id=1020077
http://bugzilla.suse.com/show_bug.cgi?id=1020077#c6
--- Comment #6 from Stanislav Brabec
http://bugzilla.suse.com/show_bug.cgi?id=1020077
http://bugzilla.suse.com/show_bug.cgi?id=1020077#c7
--- Comment #7 from Stanislav Brabec
http://bugzilla.suse.com/show_bug.cgi?id=1020077
http://bugzilla.suse.com/show_bug.cgi?id=1020077#c8
--- Comment #8 from Stanislav Brabec
http://bugzilla.suse.com/show_bug.cgi?id=1020077
http://bugzilla.suse.com/show_bug.cgi?id=1020077#c9
--- Comment #9 from Stanislav Brabec
http://bugzilla.suse.com/show_bug.cgi?id=1020077
http://bugzilla.suse.com/show_bug.cgi?id=1020077#c10
--- Comment #10 from Andreas Schneider
http://bugzilla.suse.com/show_bug.cgi?id=1020077
http://bugzilla.suse.com/show_bug.cgi?id=1020077#c11
--- Comment #11 from Stanislav Brabec
http://bugzilla.suse.com/show_bug.cgi?id=1020077
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1020077
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1020077
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1020077
http://bugzilla.suse.com/show_bug.cgi?id=1020077#c12
--- Comment #12 from Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1020077
http://bugzilla.suse.com/show_bug.cgi?id=1020077#c13
--- Comment #13 from Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1020077
http://bugzilla.suse.com/show_bug.cgi?id=1020077#c14
--- Comment #14 from Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1020077
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1020077
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1020077
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1020077
http://bugzilla.suse.com/show_bug.cgi?id=1020077#c15
--- Comment #15 from Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1020077
http://bugzilla.suse.com/show_bug.cgi?id=1020077#c16
--- Comment #16 from Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1020077
http://bugzilla.suse.com/show_bug.cgi?id=1020077#c20
Stanislav Brabec
participants (1)
-
bugzilla_noreply@novell.com