Solved

Finding available partitions

Posted on 2011-03-18
3
227 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 76

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

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

707 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