1. Howto Get the Hard Disk Size Under Linux?

    Tue 18 August 2009

    A: There is no single tool for this job, but it seems that Fdisk is just fine:

    server:~# fdisk -l 2> /dev/null | grep Disk | grep -v identifier

    Disk /dev/sda: 500.0 GB, 500028145664 bytes

    Disk /dev/sdb: 500.0 GB, 500028145664 bytes

    Disk /dev/sdc: 1000.1 GB, 1000123400192 bytes

    Disk /dev/sdd: 500.0 GB, 500028145664 bytes

    Disk /dev/sde: 500.0 GB, 500028145664 bytes

    Disk /dev/hda: 80.0 GB, 80026361856 bytes

    Disk /dev/md5: 1500.0 GB, 1500084240384 bytes

    The nice thing about using fdisk is that it automatically lists the size of all block devices.

    Here is a list of my NAS, mentioned earlier.

    Beast:~# fdisk -l 2> /dev/null | grep Disk | grep -v identifier

    Disk /dev/sda: 60.0 GB, 60011642880 bytes

    Disk /dev/sdb: 60.0 GB, 60011642880 bytes

    Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes

    Disk /dev/sdd: 1000.2 GB, 1000204886016 bytes

    Disk /dev/sde: 1000.2 GB, 1000204886016 bytes

    Disk /dev/sdf: 1000.2 GB, 1000204886016 bytes

    Disk /dev/md0: 57.9 GB, 57996345344 bytes

    Disk /dev/md1: 2015 MB, 2015100928 bytes

    Disk /dev/sdg: 1000.1 GB, 1000123400192 bytes

    Disk /dev/sdh: 1000.1 GB, 1000123400192 bytes

    Disk /dev/sdi: 1000.1 GB, 1000123400192 bytes

    Disk /dev/sdj: 1000.1 GB, 1000123400192 bytes

    Disk /dev/sdk: 1000.1 GB, 1000123400192 bytes

    Disk /dev/sdl: 1000.1 GB, 1000123400192 bytes

    Disk /dev/sdm: 1000.1 GB, 1000123400192 bytes

    Disk /dev/sdn: 1000.1 GB, 1000123400192 bytes

    Disk /dev/sdo: 1000.1 GB, 1000123400192 bytes

    Disk /dev/sdp: 1000.1 GB, 1000123400192 bytes

    Disk /dev/sdq: 1000.1 GB, 1000123400192 bytes

    Disk /dev/sdr: 1000.1 GB, 1000123400192 bytes

    Disk /dev/sds: 1000.1 GB, 1000123400192 bytes

    Disk /dev/sdt: 1000.1 GB, 1000123400192 bytes

    Disk /dev/sdu: 1000.1 GB, 1000123400192 bytes

    Disk /dev/sdv: 1000.1 GB, 1000123400192 bytes

    Disk /dev/md5: 18002.2 GB, 18002220023808 bytes

    Tagged as : Uncategorized
    If you have any comments email me, see the About page for contact details.
  2. 20 Disk 18 TB RAID 6 Storage Based on Debian Linux

    Tue 21 July 2009

    This system is no longer operational and has been decomissioned (2017)

    This is my NAS storage server based on Debian Linux. It uses software RAID and 20 one terrabyte hard drives. It provides a total usable storage capacity of 18 terrabytes in a single RAID 6 array.

    One of the remarkable side effects of using 20 drives within a single array is the read performance of over one gigabyte per second.

    norco nas

    Case:Norco RPC-4020
    Processor:Core 2 duo E7400 @ 2.8GHz
    RAM:4 GB
    Motherboard: Asus P5Q-EM DO
    LAN:Intel Gigabit
    PSU:Coolermaster 600 Watt Corsair CMPSU-750HX 750 Watt (Coolermaster died)
    Controller: HighPoint RocketRAID 2340 (16) and on-board controller (6).
    Disks:20 x Samsung Spinpoint F1 (1 TB) and 2 x FUJITSU MHY2060BH (60 GB)
    Arrays:Boot: 2x 60 GB RAID 1 and storage: 20 x 1 TB RAID 6
    RAID setup:Linux software RAID using MDADM.
    RAM:4 GB
    Read performance:1.1 GB/s (yes this is correct, not a typo)
    Write performance:350 450 MB/s. (suddenly faster after Debian update)
    OS:Linux Debian Squeeze 64-bit
    Filesystem:XFS (can handle > 16 TB partitions.)
    Rebuild time:about 5 hours.
    UPS:Back-UPS RS 1200 LCD using Apcupsd
    Idle power usage:about  140 Watt

    norco nas

    setup

    If you have any comments email me, see the About page for contact details.

Page 101 / 115