storage disk details

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat storage disk details
# 8  
Old 03-09-2012
Try this

Code:
cmdline #  lvdisplay|awk  '/LV Name/{n=$3} /Block device/{d=$3; sub(".*:","dm-",d); print d,n;}'


Last edited by pludi; 03-12-2012 at 06:02 AM..
# 9  
Old 03-09-2012
Quote:
Originally Posted by shrshah64
Thanks pludi,

So you mean dm-0 and dm-1 here are my hdd?
What they're keying off of is the minor number on the block device. A major number of 253 means it's a devicemapper device while the minor number is used in the dm-X naming scheme. Your "ls -l" shows the minor number of "0" (i.e "dm-0") is associated with VolGroup00-LogVol00. So the long and the short of it is that dm-0 is another name for the VolGroup00-LogVol00 logical volume.

Judging from your initial output it looks like sda is a local drive and I don't see anything to imply that VolGroup00 has anything but local volumes in it (you can check with "pvs" though. If sda is the only thing that shows up then you're good).

Quote:
Also, where can i see the details of storage disk's then? we have configured it on our system..
What specific details were you hoping to get at?

Last edited by thmnetwork; 03-09-2012 at 03:00 PM..
# 10  
Old 03-10-2012
The easiest way to get a clear picture of your storage layout would be to run:
Code:
pvs
vgs
lvs
mount
cat /proc/swaps

Could you please post the output of these commands?

/dev/sda is certainly the internal drive and by default /dev/sda1 is /boot and /dev/sda2 is a physical volume with the volume group VolGroup00 which contains the logical volumes LogVol00 and LogVol01. LogVol00 shows up as /dev/dm-0 and is typically used for the root filesystem (/) and LogVol01 is /dev/dm-1 and is typically used as swap. But the above commands will confirm this.

There doesn't appear to be any external storage in use on this system.

As to your performance problem, if the configuration assumptions above are correct, then you have minimal I/O activity to the root filesystem, but a ton of activity to dm-1, the swap partition.

Simply put, when Linux starts to run out of free memory it moves pages to and from disk space in the swap partition. If the system is actively paging, performance will be awful. (Memory access is about a million times faster than disk access).

Running:

Code:
free -m
sar -B
vmstat

will give you a quick view of your memory and swap usage. Please post the output of that, too.

Based on the limited information presented I'd bet your problem is that the system doesn't have enough RAM to properly support the application and the system is actively paging to/from swap. Under those circumstances, performance will be lousy. Some static use of swap space is OK, but active paging activity is to be avoided at all costs.

Last edited by sds9985; 03-10-2012 at 02:12 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script to monitor the disk space details in HP-UX

Hi, I need to monitor the disk space details in HP-UX . I need a command on how to display the information on below format File System Total_Space_KB Used_Space_KB Available_Space_KB %Used /u05 524288000 376235344 138799427 73% /u02 ... (0 Replies)
Discussion started by: ali560045
0 Replies

2. AIX

Command to get Disk Adapter details in AIX

Hi, What is the command to get the disk adapter performance details in AIX?. Guide me. (2 Replies)
Discussion started by: maruthu
2 Replies

3. Solaris

Disk Storage Need to Add more Disk

Hi, Anyone can help me, just want to confirm, if possible adding a disk storage that we have a RAWDATA with +ASM in our database. If possible, what would you recommend "workaround used" from us to do and the preparation. And also how long the downtime will take. Our disk continuous to grow,... (0 Replies)
Discussion started by: fpalero
0 Replies

4. Solaris

Need Hard Disk Details

Hi freinds, What is the command to find out the hard disk details (logical name, FS type etc,). Because i connected one ntfs partition and i don't know the hard disk logical and physical name to mount it.Kindly do the needful. Thanks | P.Bharathiraja. :mad: (2 Replies)
Discussion started by: bharathiraja
2 Replies

5. Shell Programming and Scripting

Disk space details from Unix to Outlook

Hi Friends, I am using sun Solaris . I want to find the disk space (df -k) for the Unix box and the data has to be sent to an email id. Can u please find me a code that checks the disk space 6 times a day, loads the data into an excel sheet and sends to an email id. Can u also tell me how to... (2 Replies)
Discussion started by: sridharnr
2 Replies

6. UNIX for Dummies Questions & Answers

Details on available disk

Hi everybody.. I am looking for an alternative command to 'format' since this is allowed only to the root user. How do I do to get the same information as command format does here below ? AVAILABLE DISK SELECTIONS: 0. c0t0d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848> ... (4 Replies)
Discussion started by: Riddick61
4 Replies
Login or Register to Ask a Question