1846070 Members
2630 Online
110253 Solutions
New Discussion

Re: command to be needed

 
M.sureshkumar
Regular Advisor

command to be needed

Hi All,

How to see the free disk space whether it is raw file system or HFSor VXFS in command prompt.Actuaaly i removed one logical volume in my server.i want to see the removed LV space then i will add that removed LV in another LV.So what coomand can i use to see that free space in this server.

3 REPLIES 3
B. Hulst
Trusted Contributor

Re: command to be needed

Hi,

Basicall bdf and mount will show you disk space and filesystem information.

From the device name in bdf you can also find out in most cases the type of filesystem.

LV information you get with lvdisplay.

See man lvdisplay for more information.

Regards,
Bob
Paul_481
Respected Contributor

Re: command to be needed

Hi,

If you are using LVM, when you remove a logical volume, you can check the freed space by checking the available PEs of the volume group.

(after lvremove)

#vgdisplay -v vg??

you will see the ff at the bottom:

--- Physical volumes ---
PV Name /dev/dsk/c?t?d?
PV Status available
Total PE 7678
Free PE 3
Autoswitch On

notice the Free PE before an after the logical volume remove.

Regds,

Paul


Ravi_8
Honored Contributor

Re: command to be needed

Hi,

#vgdisplay -v vgxx

Note the Free PE and PE size (in MB)

multiplying both gives you the free disk size
never give up