Sponsored Content
Operating Systems Solaris How to count total HDD size of disk? Post 302873245 by omkar.jadhav on Monday 11th of November 2013 12:12:53 PM
Old 11-11-2013
How to count total HDD size of disk?

Hi,

I am trying to fetch total HDD size through command line on solaris machine:
Code:
 
bash-3.2# iostat -E
sd0       Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: VMware   Product: Virtual disk     Revision: 1.0  Serial No:
Size: 42.95GB <42949672448 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 3 Predictive Failure Analysis: 0
sd1       Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: NECVMWar Product: VMware IDE CDR10 Revision: 1.00 Serial No:
Size: 0.00GB <0 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 4 Predictive Failure Analysis: 0

is iostat command is the best way to grab the Total HDD space allocated for any machine or there is any other command/script by which we can get this information
 

9 More Discussions You Might Find Interesting

1. Solaris

command to find out total size of a specific file size (spread over the server)

hi all, in my server there are some specific application files which are spread through out the server... these are spread in folders..sub-folders..chid folders... please help me, how can i find the total size of these specific files in the server... (3 Replies)
Discussion started by: abhinov
3 Replies

2. Solaris

Solaris 10 - How to find the total size of my hard disk?

Friends, I have an 80 GB HDD, but I wish to know if there is a direct command in Solaris 10 to find out the size of my hard disk (similar to fdisk -l in Linux). Thank you saagar (3 Replies)
Discussion started by: saagar
3 Replies

3. Solaris

swap size, total disk space

Hi experts, In my solaris system when i run the command df -h i got the below response.I have some confusion which i want to share with you guys.1)there are two SWAP file system shows are they same or different?2)if i want to count the total disk space should i take both the swap space or only... (2 Replies)
Discussion started by: rafiassam
2 Replies

4. Shell Programming and Scripting

total size

I have a directory that contains files like aaa-2010-05-30.txt ddd-2010-05-30.txt www-2010-05-30.txt i have total 2000 files, i need to calculate total size of files for *2010-05-30.txt like aaa-2010-05-30.txt 200MB ddd-2010-05-30.txt 10GB www-2010-05-30.txt 4GB Total 14.2 GB... (5 Replies)
Discussion started by: learnbash
5 Replies

5. Shell Programming and Scripting

Total Count using AWK

Hi Everybody, I have the following example file... 199|TST-GURGAON|GURGAON|1 199|TST-GURGAON|GURGAON|1 199|TST-GURGAON|GURGAON|1 199|TST-GURGAON|GURGAON|1 199|TST-GURGAON|GURGAON|1 199|TST-GURGAON|GURGAON|1 199|TST-GURGAON|GURGAON|1 199|TST-GURGAON|GURGAON|1 199|TST-GURGAON|GURGAON|1... (8 Replies)
Discussion started by: sraj142
8 Replies

6. UNIX for Dummies Questions & Answers

Display total hard disk size?

Hi, Using Redhat, how do I display total hard disk size? I know how to do that in Solaris, you can type, format. It will show how big the disks are. This is what I did so for. $ df -t ext3 -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol00 ... (1 Reply)
Discussion started by: samnyc
1 Replies

7. UNIX for Advanced & Expert Users

Physical disk IO size smaller than fragment block filesystem size ?

Hello, in one default UFS filesystem we have 8K block size (bsize) and 1K fragmentsize (fsize). At this scenary I thought all "FileSytem IO" will be 8K (or greater) but never smaller than the fragment size (1K). If a UFS fragment/blocksize is allwasy several ADJACENTS sectors on disk (in a ... (4 Replies)
Discussion started by: rarino2
4 Replies

8. Red Hat

Total HDD size and count on Linux machine

Hi... I am trying to grab two information 1. Total size of HDD 2. Total number of HDD (if possible alongwith names) can someone suggest me how can we do that in linux machine.. though small scripts and commands like fdisk. (3 Replies)
Discussion started by: omkar.jadhav
3 Replies

9. UNIX for Dummies Questions & Answers

Ls directory size reporting byte size instead of file count

I have been searching both on Unix.com and Google and have not been able to find the answer to my question. I think it is partly because I can't come up with the right search terms. Recently, my virtual server switched storage devices and I think the problem may be related to that change.... (2 Replies)
Discussion started by: jmgibby
2 Replies
diskinfo(1M)															      diskinfo(1M)

NAME
diskinfo - describe characteristics of a disk device SYNOPSIS
character_devicefile DESCRIPTION
The command determines whether the character special file named by character_devicefile is associated with a SCSI or floppy disk drive. If so, summarizes the disk's characteristics. The command displays information about the following characteristics of disk drives: Vendor name Manufacturer of the drive (SCSI only) Product ID Product identification number or ASCII name Type Floppy or SCSI classification for the device Disk Size of disk specified in bytes Sector Specified as bytes per sector Both the size of disk and bytes per sector represent formatted media. Options The command recognizes the following options: Return the size of the disk in 1024-byte sectors. Display a verbose summary of all of the information available from the device. For floppy drives, this option has no effect. SCSI disk devices return the following: Vendor and product ID Device type Size (in bytes and in logical blocks) Bytes per sector Revision level SCSI conformance level data DIAGNOSTICS
Most of the diagnostic messages from are self-explanatory. However, one diagnostic message deserves further clarification. If the command fails to access the lunpath corresponding to a given special file, it displays the following diagnostics data, which contains device iden- tification and capability information: device type 127 (unknown); device is inaccessible iso ecma ansi rmb dtq resv rdf WARNINGS
As of release 10.20 of HP-UX, certain IDE devices, CD-ROMs in particular, will respond to inquiries as if they were SCSI devices. There- fore, the text "SCSI describe" in the output of the command does not definitively mean that the disk is in fact a SCSI drive (especially in the case of CD-ROMs). Use to check which type of INTERFACE node, SCSI or IDE, the device's hardware path lies beneath, in order to defini- tively determine a drive's interface. DEPENDENCIES
General The command supports floppy and HP SCSI disk devices. SCSI Devices The SCSI specification provides for a wide variety of device-dependent formats. For non-HP devices, may be unable to interpret all of the data returned by the device. Refer to the drive operating manual accompanying the unit for more information. AUTHOR
was developed by HP. SEE ALSO
ioscan(1M), lsdev(1M), disktab(4), disk(7). diskinfo(1M)
All times are GMT -4. The time now is 04:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy