- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- find if under one filesystem other filesystems are...
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
Discussions
Discussions
Forums
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
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
тАО08-06-2011 06:03 AM
тАО08-06-2011 06:03 AM
hello,
i have following situation:
mounted filesystems:
/filesystem
/filesystem/fs1
/filesystem/fs2
how can i find out , if under one filesystem other filesystems are mounted ? (filesystem where mounted with server startup (/etc/fstab) or with service guard package start)
when i want to umount /filesystem? , i got following message :
umount: cannot unmount /dev/vg/lvol_fs : Device busy
umount: return error 1.
can i use following infomartion from thread "hard link (find file , which it points to )
i learned : inode number 2 is a mounted filesystem , right ?
with command "/sbin/vxupgrade ?" i can see the filesystem version and with version greater 6 , i can use
/usr/sbin/vxlsino <inode> <file_system> ?
regards,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-06-2011 06:29 AM
тАО08-06-2011 06:29 AM
Re: find if under one filesystem other filesystems are mounted
>if under one filesystem other filesystems are mounted?
You can look first in /etc/fstab, then in /etc/mnttab.
- Tags:
- mnttab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-06-2011 09:07 AM
тАО08-06-2011 09:07 AM
Re: find if under one filesystem other filesystems are mounted
Hey;
mount | grep filesystem | awk '{print $1}'
I typically write an inline script to umount all the filesystems for vgoracle, for instance:
mount | grep vgoracle |awk '{print $1}' | sort -r | while read mp
do
echo ${mp}
umount ${mp}
done
HTH;
Doug O'Leary
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2011 07:21 AM
тАО08-07-2011 07:21 AM
Re: find if under one filesystem other filesystems are mounted
I agree with Dennis, you may look into both file
____________________________________________
:: Really appreciate if you could assign some points.
:: Don't know how to assign point? Click the KUDOS! star!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2011 08:55 AM
тАО08-07-2011 08:55 AM
Re: find if under one filesystem other filesystems are mounted
@support_billa wrote:
i learned : inode number 2 is a mounted filesystem , right ?
This is correct.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2011 12:34 PM
тАО08-07-2011 12:34 PM
Re: find if under one filesystem other filesystems are mounted
>I learned: inode number 2 is a mounted filesystem, right?
I'm not sure how useful this will be for you. While you could do "ll -i /" to find all of the mounted filesystems under /, looking deeper will be a waste of time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2011 11:18 PM
тАО08-07-2011 11:18 PM
Re: find if under one filesystem other filesystems are mounted
You can check /etc/fstab . more over if the /etc/fstab has been updated promptly by (Sysadmin) if some have mounted it manually. you refer to /etc/mnttab
Best Regards,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2011 11:48 PM
тАО08-07-2011 11:48 PM
Re: find if under one filesystem other filesystems are mounted
>> when i want to umount /filesystem? , i got following message : >> umount: cannot unmount /dev/vg/lvol_fs : Device busy
You can check current processes which are using this mount point using this command
# fuser -cu /mount_point
Regards,
HD
Was this post useful? - You may click the KUDOS! star to say thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2011 02:17 PM
тАО08-08-2011 02:17 PM
Re: find if under one filesystem other filesystems are mounted
hello,
/etc/mnttab is a very good idea, here can i find all mounted filesystems (like mount -p )
when i want to "grep" with a reg expr. then i can see also if under a filesystem other filesystems are mounted ?
like : grep "/testfs" /etc/mnttab | wc -l ?
with a script umount all other filesystems is a good solution, but not for my case usable.
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2011 01:26 AM
тАО08-09-2011 01:26 AM
Re: find if under one filesystem other filesystems are mounted
here my idea to search for filesystem(s) in /etc/mnttab with help from replace a string with "/" in a variable
awk -v FSYS="/filesystem" 'BEGIN {found=0} $2 ~ ("^"FSYS) { found=found+1 } END {print found}' /etc/mnttab
this show show following filesystem(s)
/filesystem
/filesystem/fs1
/filesystem/fs2
regards