Navigation

    Netgate Discussion Forum
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    Abilitare trim pfsense 2.3.1

    Italiano
    3
    8
    2121
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • O
      ohifra last edited by

      Salve gente, sto cercando di abilitare il TRIM sul mio pfsense 2.3.1.
      Pfsense gira su un ssd da 32giga della sandisk.

      Ho seguito questi passi

      Login with SSH and open the shell.
      Run /usr/local/sbin/ufslabels.sh
      Add the line ahci_load="YES" to /boot/loader.conf.local
      reboot the machine
      Login with SSH and open the shell
      touch /root/TRIM_set; /etc/rc.reboot
      
      Once the machine has rebooted check the status with: tunefs -p /
      

      ma purtroppo dando il comando

      tunefs -p /
      

      ho ancora il trim disabilitato

      
      tunefs: POSIX.1e ACLs: (-a)                                disabled
      tunefs: NFSv4 ACLs: (-N)                                   disabled
      tunefs: MAC multilabel: (-l)                               disabled
      tunefs: soft updates: (-n)                                 enabled
      tunefs: soft update journaling: (-j)                       enabled
      tunefs: gjournal: (-J)                                     disabled
      tunefs: trim: (-t)                                         disabled
      tunefs: maximum blocks per file in a cylinder group: (-e)  4096
      tunefs: average file size: (-f)                            16384
      tunefs: average number of files in a directory: (-s)       64
      tunefs: minimum percentage of free space: (-m)             8%
      tunefs: space to hold for metadata blocks: (-k)            6408
      tunefs: optimization preference: (-o)                      time
      tunefs: volume label: (-L)
      
      

      Attendo vostri lumi per risolvgere questo problemino.
      Grazie in anticipo

      1 Reply Last reply Reply Quote 0
      • fabio.vigano
        fabio.vigano last edited by

        Ciao,
        Guarda qui
        http://www.pfsenseitaly.com/2015/07/abilitare-il-supporto-trim-in-pfsense.html?m=1
        Fabio

        1 Reply Last reply Reply Quote 0
        • O
          ohifra last edited by

          Grazie mille Fabio per la risposta.
          Niente non va. Ho eseguito il comando touch /root/TRIM_set, riavviato pfsense , ma il trim rimane disabilitato.
          Ora provo ad installare pfsense con la iso masterizzata su cd e non da memstick vediamo se cambia qualcosa.
          Ti terrò aggiornato.
          Grazie

          1 Reply Last reply Reply Quote 0
          • O
            ohifra last edited by

            niente da fare il trim rimane disabilitato  :(

            
            [2.3.1-RELEASE][root@pfSense.localdomain]/root: tunefs -p /
            tunefs: POSIX.1e ACLs: (-a)                                disabled
            tunefs: NFSv4 ACLs: (-N)                                   disabled
            tunefs: MAC multilabel: (-l)                               disabled
            tunefs: soft updates: (-n)                                 enabled
            tunefs: soft update journaling: (-j)                       enabled
            tunefs: gjournal: (-J)                                     disabled
            tunefs: trim: (-t)                                         disabled
            tunefs: maximum blocks per file in a cylinder group: (-e)  4096
            tunefs: average file size: (-f)                            16384
            tunefs: average number of files in a directory: (-s)       64
            tunefs: minimum percentage of free space: (-m)             8%
            tunefs: space to hold for metadata blocks: (-k)            6408
            tunefs: optimization preference: (-o)                      time
            tunefs: volume label: (-L)
            
            
            1 Reply Last reply Reply Quote 0
            • fabio.vigano
              fabio.vigano last edited by

              Ciao,
              dopo il tuo post ho fatto una verifica ed effettivamente sembra essere scomparso il codice che effettuava l'attivazione del trim
              Nello specifico il file /root/TRIM_set /root/TRIM_unset vengono eliminati all'avvio ma non trovo più la funzione che in loro presenza attiva il trim prima che il filesystem venga montato

              Per attivare a mano il trim puoi procedere come segue:

              • lancia dalla shell cat /etc/fstab
              • annota l'id del tuo disco es: /dev/ufsid/56c8cfe335a6e990
              • riavvia pfsense in single user mode
              • lancia tunefs -t enable /dev/ufsid/56c8cfe335a6e990
              • riavvia

              Io non ho potuto provare perchè tutti i pfsense che gestisco con ssd sono in remoto
              Ciao Fabio

              1 Reply Last reply Reply Quote 0
              • O
                ohifra last edited by

                Grazie per il post.
                Faccio io da cavia tranquillo

                Il tempo di ultimare tutti i comandi e posto il risultato

                Perfetto TRIM attivato seguendo i tuoi suggerimenti.
                Grazie mille

                1 Reply Last reply Reply Quote 0
                • W
                  Wolf666 last edited by

                  @fabio.vigano:

                  Ciao,
                  dopo il tuo post ho fatto una verifica ed effettivamente sembra essere scomparso il codice che effettuava l'attivazione del trim
                  Nello specifico il file /root/TRIM_set /root/TRIM_unset vengono eliminati all'avvio ma non trovo più la funzione che in loro presenza attiva il trim prima che il filesystem venga montato

                  Per attivare a mano il trim puoi procedere come segue:

                  • lancia dalla shell cat /etc/fstab
                  • annota l'id del tuo disco es: /dev/ufsid/56c8cfe335a6e990
                  • riavvia pfsense in single user mode
                  • lancia tunefs -t enable /dev/ufsid/56c8cfe335a6e990
                  • riavvia

                  Io non ho potuto provare perchè tutti i pfsense che gestisco con ssd sono in remoto
                  Ciao Fabio

                  Ciao Fabio,

                  scusa se riapro questo argomento.

                  Hai verificato se il semplice comando tunefs -t enable / funziona? Io ho usato questo dalla versione pfSense 2.2 Alpha ad oggi (2.3.2) e il Trim è sempre attivo.

                  1 Reply Last reply Reply Quote 0
                  • fabio.vigano
                    fabio.vigano last edited by

                    Ciao,
                    ho scritto recentemente un articolo, lo trovi qui

                    http://www.pfsenseitaly.com/2016/09/abilitare-il-trim-in-pfsense.html

                    il comando funziona ma va eseguito avviando pfsense in single user mode

                    Ciao fabio

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post

                    Products

                    • Platform Overview
                    • TNSR
                    • pfSense
                    • Appliances

                    Services

                    • Training
                    • Professional Services

                    Support

                    • Subscription Plans
                    • Contact Support
                    • Product Lifecycle
                    • Documentation

                    News

                    • Media Coverage
                    • Press
                    • Events

                    Resources

                    • Blog
                    • FAQ
                    • Find a Partner
                    • Resource Library
                    • Security Information

                    Company

                    • About Us
                    • Careers
                    • Partners
                    • Contact Us
                    • Legal
                    Our Mission

                    We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

                    Subscribe to our Newsletter

                    Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

                    © 2021 Rubicon Communications, LLC | Privacy Policy