Solved

Finding available partitions

Posted on 2011-03-18
3
232 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 78

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

728 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