Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    physical disk info in Red Hat AS?

    Hi all

    Hope this isn't a thread that's just been resolved

    Anyone know of any commands to run on RH AS2.1+ that can output the physical disk sizes in my server (combination of Dell PE's and Compaq's DL380's)

    Something similar to dmesg output would be grand, however dmesg:
    a) doesn't have timestamps
    b) is rather volatile and ages out quickly

    Basically I would like to see something from the CLI indicating that I have 1 x 36gb hdd, 1 x 146gb hdd etc etc etc ...

    dmidecode isn't doing it for me, and rebooting is the last resort really

    Many thanks in advance for your time.

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Chandigarh, India
    Execute this
    su -
    fdisk -l
    It will list all HDs including partitions.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3

    Thanks for replying; unfortuantely fdisk will show me all the disk devices that the OS is aware of but via another abstraction, for example a raid controller...e.g:

    # fdisk -l

    Disk /dev/sda: 586.7 GB, 586783129600 bytes
    255 heads, 63 sectors/track, 71338 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 13 104391 83 Linux
    /dev/sda2 14 71338 572918062+ 8e Linux LVM

    Now i know in the above example that /dev/sda is a bunch of disks raided in R5 to present one big 586,7gb LUN; this doesn't tell me what the size of each one of those disk members are.

    So i'm still expecting an output similar to:

    1 x 146gb disk
    1 x 146gb disk
    1 x 36gb disk etc etc

    (obviously not literally, but an output that tells me something similar )

    Again thanks for the reply anyway.

  4. $spacer_open

Posting Permissions

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