SSD TRIM option

  • Hey,


    after successfully installing OMV 2.1 on a Samsung SSD 850 EVO I recognized that the related entry in /etc/fstab doesn't contain the 'discard' option. Isn't the SSD supposed to be recognized automatically during installation? I think I read something like this somewhere here. Does the missing entry mean it isn't properly recognized? Can I simply add the 'discard, noatime' options into the related fstab-entry or isn't it needed anyway with modern SSD's? I'm using the standard kernel 3.2 that gets shipped with OMV. Do I need to install the backports kernel?


    Thanks for any help.
    Greetings

  • Does i need to add the discard option to all ssd drive.
    Swap and ext4 for example?


    BR Robert

    OMV 5.x always up to date.
    Modded dell t20 into 19" rack case with Pearl LCD Display (Status Display!)

    xeon e3-1225v3 / 32GB RAM / 1x500GB WD Blue SSD (OS) / 1x250 SSD (not used) / 1x1 TB Toshiba HHD (MultiDisk) / 4x 4TB WD40EFRX (Raid5)

  • Hallo Zusammen


    Leider ist mein Englisch nicht so gut das ich hier alles verstehe aber ich habe das dazu ein Paar Fragen.


    Ich habe OMV auf einer Kingston V300 SSD 60 GB installiert. Muss ich den Trimbefehl nun aktivieren ?? Oder was anderes ??
    Wenn ja wie ?? Meine Konsolen erfahrung würde ich als mager ansehen wie kann ich das trotzdem hinbekommen??


    Vielen Dank Heiko

    Gehäuse :Coolermaster RC-550 Silencio
    MainBoard :Asus P5G41T M-LX2 /GB
    CPU :Intel® Core™2 Quad Processor Q9550 (12M Cache, 2.83 GHz, 1333 MHz FSB)
    Ram :Kingston 2* 4 GB
    OS Festpaltte :Kingston SV300S37A/60G SSDNow V300
    VM Festplatte :Samsung Spinpoint HD161HJ 160 GB 7200 U/min
    Daten/NoRaid :2* Seagate NAS HDD 3TB interne Festplatte, ST3000VN000 (3,5 Zoll), 5900rpm, SATA III) für NAS-Betrieb

  • @Heiko_Ger


    führe mal cat /etc/fstab aus.


    Hier sind alle festplatten drin welche bei dir gemountet / im filesystem eingebunden sind.
    Hier sollte bei der ssd die discard option stehen.


    Du kannst aber auch gerne mal die ausgabe hier posten und wir schauen wie du das ganze machen musst.


    @tekkb
    It looks more consistend to activated the trim option for all mounts of the ssds.
    But i'm not sure if there will be any effect.
    What do you think? Do it or not?


    BR Robert

    OMV 5.x always up to date.
    Modded dell t20 into 19" rack case with Pearl LCD Display (Status Display!)

    xeon e3-1225v3 / 32GB RAM / 1x500GB WD Blue SSD (OS) / 1x250 SSD (not used) / 1x1 TB Toshiba HHD (MultiDisk) / 4x 4TB WD40EFRX (Raid5)

  • Tried it yesterday.
    Now problem until boot for swap with discard option setted


    BR Robert

    OMV 5.x always up to date.
    Modded dell t20 into 19" rack case with Pearl LCD Display (Status Display!)

    xeon e3-1225v3 / 32GB RAM / 1x500GB WD Blue SSD (OS) / 1x250 SSD (not used) / 1x1 TB Toshiba HHD (MultiDisk) / 4x 4TB WD40EFRX (Raid5)

  • Geht alles wunderbar.
    Hab gestern bei swap und der Root Partition die Option gesetzt, ohne Probleme.


    Kann man also ohne Angst empfehlen beides zu setzen.

    OMV 5.x always up to date.
    Modded dell t20 into 19" rack case with Pearl LCD Display (Status Display!)

    xeon e3-1225v3 / 32GB RAM / 1x500GB WD Blue SSD (OS) / 1x250 SSD (not used) / 1x1 TB Toshiba HHD (MultiDisk) / 4x 4TB WD40EFRX (Raid5)

  • Danke....


    He said,


    "Everything works great. Yesterday set the swap and root partitions with the option (discard), without problems.

    Can recommend setting it for both, without worries".



    PS- I added discard option to my swap.

  • Hallo Zusammen


    Sorry hat etwas gedauert aber hier die Ausgabe von cat /etc/fstab






    # /etc/fstab: static file system information.
    #
    # Use 'blkid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    # / was on /dev/sda1 during installation
    UUID=ab2b693a-288e-4957-978a-a06e530ad9f3 / ext4 errors=remount-ro 0 1
    # swap was on /dev/sda5 during installation
    UUID=0ed17cf6-65a3-46ac-b199-882e8b2ea39b none swap sw 0 0
    /dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
    # >>> [openmediavault]
    UUID=af8f3e49-b5f6-4d57-b01c-7320fefd29f4 /media/af8f3e49-b5f6-4d57-b01c-7320fefd29f4 ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
    UUID=7fde36c2-4619-4796-ab30-5bcd7dc61d13 /media/7fde36c2-4619-4796-ab30-5bcd7dc61d13 ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
    UUID=9d1f008f-f0f0-43c9-b498-eb7581de258c /media/9d1f008f-f0f0-43c9-b498-eb7581de258c ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
    # <<< [openmediavault]

    Gehäuse :Coolermaster RC-550 Silencio
    MainBoard :Asus P5G41T M-LX2 /GB
    CPU :Intel® Core™2 Quad Processor Q9550 (12M Cache, 2.83 GHz, 1333 MHz FSB)
    Ram :Kingston 2* 4 GB
    OS Festpaltte :Kingston SV300S37A/60G SSDNow V300
    VM Festplatte :Samsung Spinpoint HD161HJ 160 GB 7200 U/min
    Daten/NoRaid :2* Seagate NAS HDD 3TB interne Festplatte, ST3000VN000 (3,5 Zoll), 5900rpm, SATA III) für NAS-Betrieb

  • @Heiko_Ger


    hier mit Anpassung:


    einfach die Datei mit sudo nano /etc/fstab öffnen und die discard Funktion hinzufügen, an den stellen wo ich es eingefügt habe.


    OMV 5.x always up to date.
    Modded dell t20 into 19" rack case with Pearl LCD Display (Status Display!)

    xeon e3-1225v3 / 32GB RAM / 1x500GB WD Blue SSD (OS) / 1x250 SSD (not used) / 1x1 TB Toshiba HHD (MultiDisk) / 4x 4TB WD40EFRX (Raid5)

  • @no_Legend
    Vielen dank für die Unterstützung


    So sieht die Datei nun nach der änderung aus:


    # <file system> <mount point> <type> <options> <dump> <pass>
    # / was on /dev/sda1 during installation
    UUID=ab2b693a-288e-4957-978a-a06e530ad9f3 / ext4 discard errors=remount-ro 0 1
    # swap was on /dev/sda5 during installation
    UUID=0ed17cf6-65a3-46ac-b199-882e8b2ea39b none swap sw discard 0 0
    /dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
    # >>> [openmediavault]
    UUID=af8f3e49-b5f6-4d57-b01c-7320fefd29f4 /media/af8f3e49-b5f6-4d57-b01c-7320fefd29f4 ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
    UUID=7fde36c2-4619-4796-ab30-5bcd7dc61d13 /media/7fde36c2-4619-4796-ab30-5bcd7dc61d13 ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
    UUID=9d1f008f-f0f0-43c9-b498-eb7581de258c /media/9d1f008f-f0f0-43c9-b498-eb7581de258c ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
    # <<< [openmediavault]


    Ist jetzt alles in Ordnung ???



    Grüße Heiko

    Gehäuse :Coolermaster RC-550 Silencio
    MainBoard :Asus P5G41T M-LX2 /GB
    CPU :Intel® Core™2 Quad Processor Q9550 (12M Cache, 2.83 GHz, 1333 MHz FSB)
    Ram :Kingston 2* 4 GB
    OS Festpaltte :Kingston SV300S37A/60G SSDNow V300
    VM Festplatte :Samsung Spinpoint HD161HJ 160 GB 7200 U/min
    Daten/NoRaid :2* Seagate NAS HDD 3TB interne Festplatte, ST3000VN000 (3,5 Zoll), 5900rpm, SATA III) für NAS-Betrieb

  • @tekkb
    Jetzt aber ...



    # Use 'blkid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    # / was on /dev/sda1 during installation
    UUID=ab2b693a-288e-4957-978a-a06e530ad9f3 / ext4 discard, errors=remount-ro 0 1
    # swap was on /dev/sda5 during installation
    UUID=0ed17cf6-65a3-46ac-b199-882e8b2ea39b none swap sw, discard 0 0
    /dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
    # >>> [openmediavault]
    UUID=af8f3e49-b5f6-4d57-b01c-7320fefd29f4 /media/af8f3e49-b5f6-4d57-b01c-7320fefd29f4 ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
    UUID=7fde36c2-4619-4796-ab30-5bcd7dc61d13 /media/7fde36c2-4619-4796-ab30-5bcd7dc61d13 ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
    UUID=9d1f008f-f0f0-43c9-b498-eb7581de258c /media/9d1f008f-f0f0-43c9-b498-eb7581de258c ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
    # <<< [openmediavault]

    Gehäuse :Coolermaster RC-550 Silencio
    MainBoard :Asus P5G41T M-LX2 /GB
    CPU :Intel® Core™2 Quad Processor Q9550 (12M Cache, 2.83 GHz, 1333 MHz FSB)
    Ram :Kingston 2* 4 GB
    OS Festpaltte :Kingston SV300S37A/60G SSDNow V300
    VM Festplatte :Samsung Spinpoint HD161HJ 160 GB 7200 U/min
    Daten/NoRaid :2* Seagate NAS HDD 3TB interne Festplatte, ST3000VN000 (3,5 Zoll), 5900rpm, SATA III) für NAS-Betrieb

  • Nein...



    UUID=ab2b693a-288e-4957-978a-a06e530ad9f3 / ext4 noatime,discard,errors=remount-ro 0 1
    # swap was on /dev/sda5 during installation
    UUID=0ed17cf6-65a3-46ac-b199-882e8b2ea39b none swap sw,noatime,discard 0 0

  • @tekkb
    Jetzt habe ich aber nichts mehr übersehen, glaub ich ..


    Vielen Dank für die Geduld


    UUID=ab2b693a-288e-4957-978a-a06e530ad9f3 / ext4 noatime,discard,errors=remount-ro 0 1
    # swap was on /dev/sda5 during installation
    UUID=0ed17cf6-65a3-46ac-b199-882e8b2ea39b none swap sw,noatime,discard 0 0

    Gehäuse :Coolermaster RC-550 Silencio
    MainBoard :Asus P5G41T M-LX2 /GB
    CPU :Intel® Core™2 Quad Processor Q9550 (12M Cache, 2.83 GHz, 1333 MHz FSB)
    Ram :Kingston 2* 4 GB
    OS Festpaltte :Kingston SV300S37A/60G SSDNow V300
    VM Festplatte :Samsung Spinpoint HD161HJ 160 GB 7200 U/min
    Daten/NoRaid :2* Seagate NAS HDD 3TB interne Festplatte, ST3000VN000 (3,5 Zoll), 5900rpm, SATA III) für NAS-Betrieb

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!