Linux Defragmenting?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Joe Gronlund
    Senior Member
    • Nov 2001
    • 5789
    • 3.8.x

    Linux Defragmenting?

    Is there a way to actually defrag a linux server, and do so via SSH?
    I know you can optimize the MySQL tables, but i mean to actually defrag the drive on the server.
    Is this possible to do??
    MCSE, MVP, CCIE
    Microsoft Beta Team

  • Scott MacVicar
    Former vBulletin Developer
    • Dec 2000
    • 13286

    #2
    Linux servers dont need defragmenting, the file system used is actually better than NTFS / Fat32.

    See http://geekblog.oneandoneis2.org/ind..._defragmenting
    Scott MacVicar

    My Blog | Twitter

    Comment

    • Jerry
      Senior Member
      • Dec 2002
      • 9137
      • 1.1.x

      #3
      The file system tends to take care of itself, they don't defrag in the same way as windows as they are self optimising a lot of the time. This is one of the areas where *nix rules.

      What FS are you using ?

      My two fav links for this question :



      Is there a disk optimizer for Linux. I've noticed it's starting to run really slow, and there isn't much on it at all, just what came with the distro (
      I wrote ImpEx.

      Blog | Me

      Comment

      • Joe Gronlund
        Senior Member
        • Nov 2001
        • 5789
        • 3.8.x

        #4
        Originally posted by Jerry

        What FS are you using ?
        Thanks for your speedy replies Scott and Jerry..

        Wow, thats really cool to know.
        I'm not really sure of the FS i am running lol, i am running RedHat Enterprise 3...
        MCSE, MVP, CCIE
        Microsoft Beta Team

        Comment

        • Raz Meister
          Senior Member
          • Jun 2001
          • 1148

          #5
          If you're using ext2, there is a program called "defrag" as part of e2fsprogs. Also XFS provides xfs_fsr to defrag.
          Raz - KMC Forums

          Comment

          • Joe Gronlund
            Senior Member
            • Nov 2001
            • 5789
            • 3.8.x

            #6
            Originally posted by Raz Meister
            If you're using ext2, there is a program called "defrag" as part of e2fsprogs. Also XFS provides xfs_fsr to defrag.
            How do i find out what Filesystem i am using??
            Thanks for your reply..
            MCSE, MVP, CCIE
            Microsoft Beta Team

            Comment

            • Zachery
              Former vBulletin Support
              • Jul 2002
              • 59097

              #7
              Take a look at your /etc/fstab file, it should detail what file system each parition is.

              Comment

              • Joe Gronlund
                Senior Member
                • Nov 2001
                • 5789
                • 3.8.x

                #8
                Thanks Zack, will do
                MCSE, MVP, CCIE
                Microsoft Beta Team

                Comment

                • Joe Gronlund
                  Senior Member
                  • Nov 2001
                  • 5789
                  • 3.8.x

                  #9
                  I think i am using ext3, can you tell by this??

                  Code:
                  LABEL=/                 /                       ext3    defaults,usrquota        1 1
                  LABEL=/boot             /boot                   ext3    defaults        1 2
                  none                    /dev/pts                devpts  gid=5,mode=620  0 0
                  none                    /proc                   proc    defaults        0 0
                  none                    /dev/shm                tmpfs   defaults        0 0
                  /dev/sda2               swap                    swap    defaults        0 0
                  /dev/cdrom              /mnt/cdrom              udf,iso9660 noauto,owner,kudzu,ro 0 0
                  MCSE, MVP, CCIE
                  Microsoft Beta Team

                  Comment

                  • Zachery
                    Former vBulletin Support
                    • Jul 2002
                    • 59097

                    #10
                    Yes you are.

                    Comment

                    • Raz Meister
                      Senior Member
                      • Jun 2001
                      • 1148

                      #11
                      Unless you're using more than 80% of your partition, you shouldn't need to worry about fragmentation.

                      Also, an easier way to find the type of your root partition and the amount you're using is via "df -hT /"
                      Raz - KMC Forums

                      Comment

                      • Chousho
                        Senior Member
                        • Jan 2004
                        • 967
                        • 3.8.x

                        #12
                        Speaking of which, are there any programs out there that can defrag better than the built in one? I haven't really looked, but I'd like some more info from it if I have to wait a good 4 hours.

                        I'm not sure if me having a 400 GB hdd makes a difference in time, so... haha

                        Comment

                        • Sergio68
                          Senior Member
                          • May 2002
                          • 821
                          • 6.0.X

                          #13
                          Originally posted by Zachery
                          Yes you are.
                          Ext3, safer than ext2
                          Joe, you're switching to the "bright side of the force"
                          Italian Body Building & Fitness : www.BodyWeb.com
                          Italian unofficial support Forum : www.vBulletin.it

                          Comment

                          • Joe Gronlund
                            Senior Member
                            • Nov 2001
                            • 5789
                            • 3.8.x

                            #14
                            Originally posted by Sergio68
                            Ext3, safer than ext2
                            Joe, you're switching to the "bright side of the force"

                            Thats good to know lol
                            MCSE, MVP, CCIE
                            Microsoft Beta Team

                            Comment

                            • filburt1
                              Senior Member
                              • Feb 2002
                              • 6606

                              #15
                              Originally posted by Sergio68
                              Ext3, safer than ext2
                              Joe, you're switching to the "bright side of the force"
                              As much as I hate running Linux on a desktop, I do have to admit, Linux on a server (for my purposes) has been like night and day over Windows Server 2003. No way I'll switch back for the server. For desktops, still Windows (or Mac OS X).
                              --filburt1, vBulletin.org/vBulletinTemplates.com moderator
                              Web Design Forums.net: vB Board of the Month
                              vBulletin Mail System (vBMS): webmail for your forum users

                              Comment

                              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                              Working...