Find the answer to your Linux question:
Results 1 to 4 of 4
I'm trying to RAID 0 2 500gb sata hdd's. i did - fdisk /dev/sdb , new partition, primary, 1, type fd, w fdisk /dev/sdc , new partition, primary, 1, type ...
  1. #1
    Just Joined!
    Join Date
    Mar 2010
    Posts
    4

    df wont show true RAID size

    I'm trying to RAID 0 2 500gb sata hdd's.

    i did -

    fdisk /dev/sdb , new partition, primary, 1, type fd, w
    fdisk /dev/sdc , new partition, primary, 1, type fd, w

    then i created the raid -
    mdadm /dev/md10 -C -l 0 -n 2 -c 256 /dev/sdb1 /dev/sdc1

    filesystem -
    mkfs.ext3 -m0 -T largefile4 -Osparse_super /dev/md10
    tune2fs -i0 -c0 /dev/ md10

    added a mount in fstab -

    /dev/md10 /Clips auto defaults 0 0

    and a mounting point -

    mkdir /Clips

    mount and i see this instead of 1000gb -
    /dev/md10 72034 32152 39882 45% /Clips

    70gb?!??!?

    what did i do wrong?

  2. #2
    Linux Enthusiast Mudgen's Avatar
    Join Date
    Feb 2007
    Location
    Virginia
    Posts
    623
    That looks like about 70Mb, not Gb. I'm not sure what /dev/md10 actually is at this point. I think your create command should have been:

    mdadm -C /dev/md10 -l 0 -n 2 -c 256 /dev/sdb1 /dev/sdc1

    I.E. the raid device spec goes after the -C. You didn't get an error?

    What do you get from:

    mdadm --detail /dev/md0
    ?

  3. #3
    Just Joined! jippie's Avatar
    Join Date
    May 2006
    Location
    Eindhoven, the Netherlands
    Posts
    76
    What outputs:

    $ cat /proc/partitions

    also, you might want to use a more readable form for df:

    $ df -h

    BTW: Notice that if *any* of both drives fail, you loose *all* data on both drives. You effectively double the failure rate with RAID-0 by having a single filesystem across two drives. I'd always choose for at least RAID-5 or at least make sure you have a back up somewhere else, 1TB is an awful lot of data to loose.

  4. #4
    Just Joined!
    Join Date
    Apr 2010
    Posts
    1

    Lightbulb

    Hi!

    Are you sure you are not looking to sda?
    try "df -h"
    your clip player is sdb and sdc (md10).


    Regards

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...