- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Actual usage of allocated blocks
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2002 06:22 AM
11-27-2002 06:22 AM
I have a filesystem/logical volume occupying 3 physical disks, Is there any way to find how much of the allocated blocks are currently being used by data on each hard disk.
Regards,
John Jayaseelan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2002 06:24 AM
11-27-2002 06:24 AM
Re: Actual usage of allocated blocks
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2002 06:28 AM
11-27-2002 06:28 AM
Re: Actual usage of allocated blocks
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2002 06:29 AM
11-27-2002 06:29 AM
Re: Actual usage of allocated blocks
lvdisplay -v /dev/vg/lv will give all the allocated extents/blocks not actual blocks being used by the current data.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2002 06:32 AM
11-27-2002 06:32 AM
Re: Actual usage of allocated blocks
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2002 06:39 AM
11-27-2002 06:39 AM
SolutionPete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2002 06:43 AM
11-27-2002 06:43 AM
Re: Actual usage of allocated blocks
You could try something like this:
ncheck -F vxfs -oblock=- /dev/vg00/rlvol4
[This was on my /tmp filesystem]
It returns a listing of the inodes and the blocks for each item in the filesystem. You might be able to figure out how the blocks from that report correspond with the filesystem blocks.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2002 07:16 AM
11-27-2002 07:16 AM
Re: Actual usage of allocated blocks
I would give you points if I could. I always thought it was impossible to find out which files are impacted by a stale PE for example. Reading you answer I immediatly had a look to man ncheck_vxfs and there are lots of useful options. That's exactly what I like here in forums. I really learn a lot.
Thank you very much.
Jean-Louis.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2002 07:28 AM
11-27-2002 07:28 AM
Re: Actual usage of allocated blocks
You're welcome! I had seen the ncheck command before when I was playing around one day [actually, I manage to play around lots of days, but I hope my boss doesn't read this post!]. I remembered it when I read this question.
I've run it on the /tmp filesystem on one of my boxes, and I've been looking at the output from that and also from lvdisplay, fstyp -v, and vgdisplay to try to understand it all better. Looking at the output, it is interesting to note that there are gaps in the available blocks. I'm wondering if I ran fsadm to defrag and reorg the filesystem if it would help make them more contiguous. I read another post recently about reducing the size of a filesystem, and Jim Ferguson mentioned defragging the filesystem as a way to make LVM happy and allow you to reduce the size. Maybe this will give a good map to see why LVM complains sometimes about reducing filesystems.
Fun stuff!
JP
"Live free or die"