The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Setting up Logical Volumes in Solaris 10 jimthompson UNIX for Dummies Questions & Answers 3 09-25-2006 04:43 AM
filesystems and logical volumes uXion AIX 1 08-15-2006 08:39 PM
Did not know about logical volumes gezi News, Links, Events and Announcements 2 04-27-2005 07:10 AM
How to resize a logical volume to free up some space using sam? emplate HP-UX 4 04-15-2005 11:08 AM
AIC logical volumes 98_1LE UNIX for Dummies Questions & Answers 1 09-14-2002 06:33 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 04-19-2007
Registered User
 

Join Date: Apr 2005
Posts: 62
Used Space on Logical Volumes

Hi Everybody,

Is there any way to know the used space on a specific Logical Volume?

Note, my question related to the LVs that have no mount point & not belong to any FileSystem.

Thanks in advance
Reply With Quote
Forum Sponsor
  #2  
Old 04-19-2007
Registered User
 

Join Date: May 2006
Location: England
Posts: 265
Which filesystems do you mean and are these on rootvg by chance? You can run the command lsvg -l <vgname> to show to number of LP / PP being used.
Reply With Quote
  #3  
Old 04-20-2007
Registered User
 

Join Date: Apr 2005
Posts: 62
Thank johnf for your reply.

I will clarify my question with a small example.

Lets say, we have a new Physical Volume with size of 400GB. A new Volume Group has been created on this PV, after that we created 5 Logical Volumes on this VG each LV with 10 PPs.

How can I know after that how much space really used on these LVs?
Reply With Quote
  #4  
Old 04-20-2007
Registered User
 

Join Date: Nov 2006
Location: Austria/Vienna
Posts: 235
lslv <lvname>
Reply With Quote
  #5  
Old 04-21-2007
Registered User
 

Join Date: Apr 2006
Location: Iraq
Posts: 34
dear
follow the followinf steps:

1- lsvg <VG_Name>
from the result of the above command locate the PP size:

2- lsvg -l <VG_Name>
this will give you the list of the logical volumes that has been created on the <VG_Name> along with how many PP's has been assigned to them.

3- to know how much size is occupied by a certain LV multiply the PP size (from step1) by the No of PP's allocated for the LV (from step2)

4- consider if there are any mirroring configured for the LP from step2 unedr LP.
if the value is more than 1 then the logical partition is mirrored and the total size is double than that got from step3
Reply With Quote
  #6  
Old 04-22-2007
Registered User
 

Join Date: Dec 2006
Location: Maryland
Posts: 144
An LV is basically a raw storage unit from an operating system point of view. It will be hard for the operating system commands to say 'how much is actually used'. Let's say if there is,

a). A filesystem on that, filesystem commands [ df ] needs to be used to identify the usage.
b). If that is a paging space, then you may use lsps command.
c) If that is used by an application like oracle or so for raw storage, the application will be able to tell you how much of that space is 'actually used'.

It is as simple as I gave you some money , You invested it in many places that I have no control on. Now if someone asks ME , how much of that money is actually used, I may not have an answer, unless 'you tell me'. But for sure, you will have an answer. "I" am the operating system, "money" is a logical volume and "you" are an application responsible for data storage [filesystem ... etc ]

Regards, Kaps
Reply With Quote
  #7  
Old 04-23-2007
Registered User
 

Join Date: Apr 2005
Posts: 62
Thanks alot guys for the responds, and special thank for kapilraj because he exactly answer my question.

So, as I understand from kapilraj answer there is no way to know the used space on a specific LV unless it is belong to a specific FileSystem, or through the Application that using this LV.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 05:19 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0