Used Space on Logical Volumes


 
Thread Tools Search this Thread
Operating Systems AIX Used Space on Logical Volumes
# 1  
Old 04-19-2007
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 Smilie
# 2  
Old 04-20-2007
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.
# 3  
Old 04-20-2007
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?
# 4  
Old 04-20-2007
lslv <lvname>
# 5  
Old 04-21-2007
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
# 6  
Old 04-22-2007
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
# 7  
Old 04-23-2007
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Check Solaris VM Databases metadb does not have enough information about logical volumes

Check Solaris VM Databases metadb does not have enough information about logical volumes. Current value is 0% I have checked the SVM status, all disks are good state and synched perfectly. no errors in metadb -i. what is this alert exact mean? what we have to check for the value? Please... (1 Reply)
Discussion started by: Naveen.6025
1 Replies

2. Solaris

command for List of logical volumes

On my solaris box, default Sun volume manager is running. I want to check the list of logical volumes and following details for each logical volume: freeSpace usedSpace type isClustered auxId permissions currentLogicalExtent segmentCount allocationType isOpen To know state of... (12 Replies)
Discussion started by: epriya2003
12 Replies

3. AIX

Does HACMP have bugs increasing filesystem or Logical volumes

Hello, Does HACMP have bugs ? I have version 5.4 on AIX 6.1 and when I try to increase filesystem space or logical volume partitions which are under HACMP VG it gives me error: # lsvg rootvg pr0oravg px0oravg pb0oravg pr0sapvg px0sapvg pb0sapvg pr1_pr2_vg pr2_px1_vg # #... (11 Replies)
Discussion started by: filosophizer
11 Replies

4. UNIX and Linux Applications

raw logical volumes to jfs2

Does anybody if it is possible to convert raw logical volumes to jfs2? If so how is it done or where can I find the information to make the conversion. We have an Oracle Db on AIX and it is using raw lv's which we want to convert to jfs2 because the raw devices don't restore correctly from our... (4 Replies)
Discussion started by: daveisme
4 Replies

5. UNIX for Dummies Questions & Answers

Move veritas filesystem space between Logical volumes

I have a veritas file system (fsA) that is nearing capacity. We have secondary file system (fsB). that is unused and would like to move some of it's disk space but I'm unsure as to how to do this with. /dev/vx/dsk/vg05/lvol05 25288704 21887258 3188911 88% ... (2 Replies)
Discussion started by: Steelysteel
2 Replies

6. HP-UX

Renaming logical volume group and volumes

Hi all, How do u rename a logical volume group and the logical volumes belonging to that? The logical volumes contain data and are in use. eg: Renaming dev/vgov to dev/ov-dg ? (6 Replies)
Discussion started by: Mr. Zer0
6 Replies

7. Linux

one nfs mount point for many logical volumes

hi i am wondering if it is possible to use one nfs mount point for several logical volumes. i have a top level directory /imaging with data1 - data50 below it. each dataX directory is a logical volume configured through LVM. if i mount them separately on the client (i.e. 50 lines in fstab... (1 Reply)
Discussion started by: user23
1 Replies

8. UNIX for Dummies Questions & Answers

Setting up Logical Volumes in Solaris 10

I have just created two RAID 0 ( Stripped ) devices through Storage Manager and can see them as d0 and d1 ( /dev/md/dsk/d0 and d1 appear to exist ) However how do I now mount these devices ? The manual talks about creating a UFS of LOFS filesystem. Do I need to do this ? I have create /u01... (3 Replies)
Discussion started by: jimthompson
3 Replies

9. News, Links, Events and Announcements

Did not know about logical volumes

I had just updated - reinstalled - my RH9 to a Fedore Core 3. I did not know about the Logical volumes that automatically combined partitions on drive 1 and 2 into one mounted volume. In my attempts to do something with the hdb2 partition - not knowing that it was already in use - I killed my... (2 Replies)
Discussion started by: gezi
2 Replies

10. UNIX for Dummies Questions & Answers

AIC logical volumes

Does anyone know where I can find good documentation on modifying AIX logical volumes. Basically, I have a box that has 2 file systems that rae 99% full. I would like to add another disk, and migrate a file system or 2 to it, then reclaim the space by adding it to other volumes. I understand that... (1 Reply)
Discussion started by: 98_1LE
1 Replies
Login or Register to Ask a Question