Solved

Finding available partitions

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

803 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