![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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 |
|
||||
|
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 Code:
df /tmp |tr -s '(' ' ' | awk '{print $1, $2}'
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|