External USB hard drive problems...

From: Greg (greg_at_gil.com.au)
Date: 10/11/03

  • Next message: Take a Walk: "Re: php and freehost"
    Date: Sat, 11 Oct 2003 08:45:34 +1000
    
    

    I am trying to use an external IDE HD plugged into a USB port for backups.
    I have chosen a WD 120Gb and RH9 recognises it as /dev/sda1

    I do fdisk and create the 120Gb partition OK, but when I do a:

    mkfs.ext3 /dev/sda1

    it creates the first 91 inode tables almost instantly and then it slows
    down to a crawl, doing 1 every couple of minutes. Then it will suddenly
    instantly do 5 or 10 and then slow down to a crawl again. It finally
    completes the 895 in about three quarters of an hour:

    ======================================================================= #
    mkfs.ext3 /dev/sda1
    mke2fs 1.32 (09-Nov-2002)
    Filesystem label=
    OS type: Linux
    Block size=4096 (log=2)
    Fragment size=4096 (log=2)
    14663680 inodes, 29304560 blocks
    1465228 blocks (5.00%) reserved for the super user First data block=0 895
    block groups
    32768 blocks per group, 32768 fragments per group 16384 inodes per group
    Superblock backups stored on blocks:
            32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632,
            2654208, 4096000, 7962624, 11239424, 20480000, 23887872
     
    Writing inode tables: 96/895

    =======================================================================

    After this completes, I can mount the drive and use rsync to write to it
    with no errors, no speed issues and no apparent problems. :-)

    However:

    When I re-run rsync to update the backups I get many errors, saying files
    don't exist. On further inspection I find that the file that it is looking
    for is ".thisisthefile", when the file backed up is "thisisthefile".
    However, many files names are correct (without the dot) and there are no
    errors when reading/writing to them. Huh?

    I try and rename the file with mv and it says that there is no space left
    on the device. I do a df and find that I have only used about 30Gb of the
    120Gb total. It seems as though this is a default error message as the OS
    is having trouble talking to the USB subsystem.

    I can create a file on the mounted /dev/sda1 with vi or touch with no
    problems, in spite of the "no space" error.

    All of this seems to point to some sort of HD/Controller/Interface type
    issue. I have 2 of these external WD drives and I have tried both of them
    and they both react the same way. The motherboard is an ASUS P4P800 with
    USB2 ports. I can't use hdparm to talk to the drive as Linux thinks that
    the USB drive is a SCSI drive. I understand that a 120Gb-sized partition
    can be easily accommodated by the 2.4.20-13.9 kernel.

    If you think that I am nonplussed, you would be correct!! :-)

    Does anyone have ANY IDEA what is going on????

    Cheers,
    Brad


  • Next message: Take a Walk: "Re: php and freehost"

    Relevant Pages

    • Re: Again: fsck_ffs memory requirements
      ... given the assumption that one inode is needed per ... along with disassembling drives in cleanrooms. ... worked for everything except _my_ home directory. ... so I didn't see a neccessartity for backups ("I'll do them next ...
      (freebsd-questions)
    • External USB HD problems...
      ... I am trying to use an external IDE HD plugged into a USB port for backups. ... Writing inode tables: 96/895 ... I have 2 of these external WD drives and I have tried both of them ...
      (linux.redhat.misc)
    • Re: Backup Solutions - Which one do you use...
      ... we setup the stock SBS backup to a USB hard ... I have grown somewhat accustomed to swapping out the drives, ... Is a Symantec/Veritas solution based on tape and/or tape libraries (many ... I've seen a number of companies switch to large NAS systems for backups, ...
      (microsoft.public.windows.server.sbs)
    • Re: Backup Verification Best Practise
      ... we find USB solution more reliable than tapes. ... Most small businesses choose to switch the drives every Monday morning. ... designed a schedule that will accommodate one or two weeks of daily backups ...
      (microsoft.public.windows.server.sbs)
    • Re: Replacing tape changer with USB disk drives.
      ... SCSI Drives seem to have a solid lifetime of about 3+ years with some of them lasting better than 6. ... I'm not trying to keep my backups that long though. ... While I really liked the AHA 1540/2940 controllers, I'm dubious about Adaptec's USB controllers. ... I've got a few external drives with both USB2 and Firewire 400 interfaces, and they are faster and more reliable going over Firewire. ...
      (freebsd-questions)