Announcement

Collapse
No announcement yet.

Linux Defragmenting?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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


  • #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


    • #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 :

      http://www.salmar.com/pipermail/wftl...ch/000603.html

      http://www.linuxquestions.org/questi...d.php?t=137586
      I wrote ImpEx.

      Blog | Me

      Comment


      • #4
        Originally posted by Jerry View Post

        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


        • #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


          • #6
            Originally posted by Raz Meister View Post
            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


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

              Comment


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

                Comment


                • #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


                  • #10
                    Yes you are.

                    Comment


                    • #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


                      • #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


                        • #13
                          Originally posted by Zachery View Post
                          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


                          • #14
                            Originally posted by Sergio68 View Post
                            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


                            • #15
                              Originally posted by Sergio68 View Post
                              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...
                              X