SSD-Trim-Opt where to declare in /etc/fstab ?

  • As my NAS is based on debian wheezy, I am testing OMV version 0.5 (squeeze-based) on my notebook. I 'll install OMV on my NAS as soon as wheezy is OMVs standard.


    Meanwhile I changed my notebooks HDD into a SSD, copied my partitions, and configured /etc new. All is running well.


    But there is one question left: as my SSD supports the TRIM-option, I modified the /etc/fstab of my OMV-installation by adding the option "discard" for the root- and for the swap-partition.


    Do I have to add "discard" also to this lines

    Code
    UUID=.... /media/.... ext4 defaults,nofail,acl,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vsfv0 0 2
    /media/.../name/ /export/share-name none bind 0 0
    ... next share


    Regards H.

  • Do I understand you right: its enough to declare my system drive this way, and not adding "discard" to other lines?

    Code
    UUID=....   /   ext4  errors=remount-ro,discard 0 1


    Do you think "noatime" (I know what this means) is really necessary?


    Here my /etc/fstab at the moment :

    Code
    proc            /proc           proc    defaults        0       0
    UUID=2f67806c-290c-4af3-8b4a-11edb832765e /               ext3    errors=remount-ro,discard 0 1
    UUID=85f743e3-731c-4ead-b30c-c5554e509f35 none            swap    sw,discard                0 0
    /dev/scd0       /media/cdrom0   udf,iso9660 user,noauto     0       0
    # >>> [openmediavault]
    #UUID=7236db9f-32f9-469e-bef4-783d3d960cff /media/7236db9f-32f9-469e-bef4-783d3d960cff ext4 defaults,nofail,acl,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 0 2
    UUID=2dca42ec-aa96-4794-a4a9-8886e9441fea /media/2dca42ec-aa96-4794-a4a9-8886e9441fea ext4 defaults,nofail,acl,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 0 2
    /media/2dca42ec-aa96-4794-a4a9-8886e9441fea/archive-1/ /export/FG-archive-1 none bind 0 0
    /media/2dca42ec-aa96-4794-a4a9-8886e9441fea/archive-2/ /export/FG-archive-2 none bind 0 0


    Couldt you please have a look at it? By the way: I don't know why OMV declared my root-partition as "ext3". Its formatted and obviously seen as "ext4".


    Regards H.

  • This is your system drive:


    Code
    UUID=2f67806c-290c-4af3-8b4a-11edb832765e /               ext3    errors=remount-ro,discard 0 1


    Correct? Why ext3?


    So this would be the edit:


    Code
    UUID=2f67806c-290c-4af3-8b4a-11edb832765e /              ext3 noatime,discard,errors=remount-ro 0       1
  • No, you only need to adjust the system drive uuid line. Do not mess with swap or any other line. Also, if you are on .5x OMV make sure you upgrade your kernel to backports with the button in OMV Extras.

  • Zitat von "tekkbebe"

    No, you only need to adjust the system drive uuid line. Do not mess with swap or any other line ...


    That's exact what I was asking for. Thank you for your tip.


    Zitat von "tekkbebe"

    ... Also, if you are on .5x OMV make sure you upgrade your kernel to backports with the button in OMV Extras.


    I don't know where to find this button. I can't see it anywhere in the web-gui.


    Anyway - I think OMV version 0.5.53 with kernel 3.2.0-0.bpo.1-amd64 is right?

  • Hi all,


    if I do a clean install directly on a SSD, do I have to ad

    Zitat

    noatime,discard

    or is it done by OMV during the normal install procedure?


    Thanks in advance!
    halfdan

  • Should be added by default. You can verify via 'cat /etc/fstab'.


    Greetings
    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

  • I had to add it by hand, too. Volker changed the installation to "auto-add" it, maybe I installed it before the change. Hopefully OMV doesn't remove it the next time fstab is saved :/

  • We are sorry for the bring out this old treeds.


    I have just installed on an SSD OMV cleen and in my fstab missing these items.UUID=58943c79-a6c4-47f5-a88b-47c8fd3b7b54


    the output of cat /etc/fstab is:




    And another question.


    The UUID=58943c79-a6c4-47f5-a88b-47c8fd3b7b54 is also an SSD. Must there also an entry to be inserted?


    My OMV info:


    = OS/Debian information
    ================================================================================
    Distributor ID: debian
    Description: Debian GNU/Linux 7 (wheezy)
    Release: 7.9
    Codename: wheezy


    ================================================================================
    = openmediavault information
    ================================================================================
    Release: 2.1.15
    Codename: Stone burner


    ================================================================================
    = Date
    ================================================================================
    Wed Sep 23 15:24:05 CEST 2015


    ================================================================================
    = Locale
    ================================================================================
    de_DE.UTF-8


    ================================================================================
    = System information
    ================================================================================
    Linux NAS3 3.2.0-4-amd64 #1 SMP Debian 3.2.68-1+deb7u4 x86_64 GNU/Linux


    thank you

  • Before you do this is your system drive SSD or did you just install a data drive that is an SSD???? Whatever drive is an SSD you can add the noatime,discard in the fstab line like below.


    Edit this line:


    Code
    UUID=e7397160-5948-491c-9908-0c32345fe6a8 /               ext4    errors=remount-ro 0       1



    Make is look like this. Save it and reboot:


    Code
    UUID=e7397160-5948-491c-9908-0c32345fe6a8 /               ext4    noatime,discard,errors=remount-ro 0       1
  • @tekkb Thank you for your quick response


    Before you do this is your system drive SSD or did you just install a data drive that is an SSD????


    Sorry...I have the wrong UUID reported..of course mean the UUID=e7397160-5948-491c-9908-0c32345fe6a8



    I just wanted to make out that when a new installation on a SSD of entry in the fstab is correct.


    Was just not so with me.


    Make is look like this. Save it and reboot:


    Thank you...Did I then added so.

Jetzt mitmachen!

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