1833796 Members
4419 Online
110063 Solutions
New Discussion

More Partition Info

 
Ted McLean
Occasional Advisor

More Partition Info

Hello,

I asked on an earlier post how I would resize a partition but now I have another question to ask. How do I find out how much space I have available to extend the partition? Can I just reduce another partition by a few hundred megabytes and then extend the other one and it will automatically pick up the extra unpartitioned space?

Thanks,
Ted
3 REPLIES 3
Hazem Mahmoud_3
Respected Contributor

Re: More Partition Info

The two main commands you want to look at are:
vgdisplay -v /dev/vg00 (for example)
lvdisplay -v /dev/vg00/lvol1 (for example)
Reducing another logical volume to free up more space is not a good idea, you can end up losing information.
However, it can be done. What I ended up doing when I needed to reduce space on the volume to add to another volume was I tar'd up all the contents in that file system, backed it up, reduced it, then restored the information back again.
That would be the only way to make sure you preserve the contents when reducing the file system.

-Hazem
Dave Wherry
Esteemed Contributor

Re: More Partition Info

Ted,
You also asked earlier if you could do it all through sam. The answer is yes. All of the information you are looking for is in sam.
If you do not have On-Line JFS, from sam you can also boot into single user mode and use sam.

Dave
Marvin Strong
Honored Contributor

Re: More Partition Info

if you do a vgdisplay {vgname} that will show you how much space you have left.

# vgdisplay vg00
Look for the following lines.

PE Size 4
Free PE 550

by multipling those you get the amount of free space in that vg. in the example above thats 2.2Gb

However in my example you probably really only have 1.1Gb because vg00 is typically mirrored to 2 disks and you would only use half of that so that you could mirror your LV to the other disk.

So you must keep mirroring in mind if you are mirroring your LV's.

I would not not recommend reducing one to increase another.