Solved

Finding available partitions

Posted on 2011-03-18
3
228 Views
Last Modified: 2012-05-11
I was in an environment in which I was on a virtual machine and had to find available partitions to provide make a physical volume.  The question is:  how would you find out all the available partitions on the system that have not been occupied if the file system is really messy -- raids, lvms, many virtual devices and stuff?  Is there anything better than lvmdiskscan command?
0
Comment
Question by:farzanj
3 Comments
 
LVL 77

Accepted Solution

by:
arnold earned 125 total points
ID: 35168480
You have to use all the tools:
fdisk -l (to see the physical drives)
mdstat
pvscan
pvdisplay
vgscan
vgdisplay
lvdisplay

IMHO, it is best to use multiple tools to be sure, than to rely on one that might miss some information.
0
 
LVL 3

Assisted Solution

by:Alberto Cortes
Alberto Cortes earned 125 total points
ID: 35169877
Solution, run as root:

To view partitions in all disks: fdisk -l
To view used space in all filesystems: df -k
0
 
LVL 31

Author Comment

by:farzanj
ID: 35306664
Sorry for the delay.
I was actually looking for all the available devices on the system.  I was looking for more like.
lshal | grep 'block.device'

Open in new window

Experts, I thank you for your time.
 
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now