The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > HP-UX
.
google unix.com



HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Tru64 - how can you determine the package where a file or binary belongs to? Crazy_lenny UNIX for Dummies Questions & Answers 0 12-08-2008 08:46 AM
Basic Filesystem / Physical Volume / Logical Volume Check chipahoys AIX 1 12-02-2008 08:05 AM
Moving a Logical Volume from one Volume Group to Another krisw AIX 2 07-14-2008 07:48 AM
How to determine which SIP a package belongs brizrobbo SUN Solaris 0 02-17-2008 08:45 PM
LVM - Extending Logical Volume within Volume Group ghimanshu UNIX for Advanced & Expert Users 3 07-26-2007 07:39 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-22-2009
lamoul lamoul is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 40
Determine folder belongs to mountpoint and logical volume

Hi,

I would like to know what is command or script to determine the a directory that seat on a logical volume and mount-point.

For example:

logical volume mount-point
------------ -------------
/dev/vg00/scenario /training/test
/dev/vg00/train /training/test/prod
/dev/vg00/prod /training/test/dev

/training/test/data is folder (data). How to know that directory data is located on /dev/vg00/scenario /training/test?

Thanks
  #2 (permalink)  
Old 05-22-2009
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,717
One clunky way:
Code:
csadev:/home/jmcnama> df /home
/home                (/dev/vg00/lvol4     ):  5895840 blocks     92467 i-nodes
csadev:/home/jmcnama> df /tmp
/tmp                 (/dev/vg00/lvol6     ):  2950944 blocks     46456 i-nodes
so:
Code:
 df /tmp |tr -s '('   ' '  | awk  '{print $1, $2}'
  #3 (permalink)  
Old 05-22-2009
lamoul lamoul is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 40
That's great!

Thanks lot.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:23 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0