- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: mounting local directory to another local dire...
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
03-13-2009 02:09 AM
03-13-2009 02:09 AM
I want to mount some local directory to another directory. how to do this?
Solved! Go to Solution.
- Tags:
- LOFS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2009 02:11 AM
03-13-2009 02:11 AM
SolutionYou can mount a directory from One server to another via NFS.
You can mount it but for is the reason
# bdf
..
/dev/vg00/lvol4 5199992 1625680 3548920 31% /home
# mount /home /tmp/avinash
# bdf
/dev/vg00/lvol4 5199992 1625680 3548920 31% /home
/home 5199992 1625680 3548920 31% /tmp/avinash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2009 02:15 AM
03-13-2009 02:15 AM
Re: mounting local directory to another local directory (lofs)
# mkdir /tmp/senthil1
# mount /tmp/senthil /tmp/senthil1
# bdf
Filesystem kbytes used avail %used Mounted on
/tmp/senthil 5128192 732048 4361872 14% /tmp/senthil1
Could we know your exact requirement on why you like to do this..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2009 02:17 AM
03-13-2009 02:17 AM
Re: mounting local directory to another local directory (lofs)
It is possible through NFS. First export the local directory through NFS. Then mount the directory on same server as NFS client.
You need to configure this server as both NFS server and NFS client to achieve this.
ok. why do you want to do this?
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2009 02:18 AM
03-13-2009 02:18 AM
Re: mounting local directory to another local directory (lofs)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2009 02:20 AM
03-13-2009 02:20 AM
Re: mounting local directory to another local directory (lofs)
Prabably creating links between the directories will be the one you are looking for.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2009 02:32 AM
03-13-2009 02:32 AM
Re: mounting local directory to another local directory (lofs)
Ex:
/emd/tpw 46088192 35151808 10851176 76% /users/tpw01
/emd/ansys1 161792000 128048432 33480000 79% /home/ansys1
/emd/ansys2 161792000 99284416 62019392 62% /home/ansys2
lgprime:/opt/apps/local/bin
5120000 1230984 3646016 25% /opt/apps/local/bin
lgprime:/opt/apps/local/emdutil
5120000 1230984 3646016 25% /opt/apps/local/emdutil
/emd/100dirs 204800 186423 18377 91% /users/100dirs
/emd/home 61440000 54518448 6871256 89% /home/gen
/emd/100dirs_links 204800 186423 18377 91% /users/100dirs_links
/emd/wip 204800 186423 18377 91% /users/wip
/emd/tpidata 9224192 6554222 2586564 72% /users/tpidata
aa128116:/win_appl 7782400 4259616 3302616 56% /win_dev
why they have done this.
what is the purpose?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2009 02:38 AM
03-13-2009 02:38 AM
Re: mounting local directory to another local directory (lofs)
Could you post the output of /etc/fstab
Do you see the mountpoints there..
We could get more information from there
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2009 02:40 AM
03-13-2009 02:40 AM
Re: mounting local directory to another local directory (lofs)
For example a lofs can be created for / under /tmp/newroot so that the entire hierarchy can be used under /tmp/newroot.
This can be useful in hiding the / file system mounted as read only or as other options.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2009 02:43 AM
03-13-2009 02:43 AM
Re: mounting local directory to another local directory (lofs)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2009 02:44 AM
03-13-2009 02:44 AM
Re: mounting local directory to another local directory (lofs)
Yes, These filesystems are looks lofs.
#man 1m mount_lofs ->will give you better explanation how to create these mounts
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2009 04:06 AM
03-13-2009 04:06 AM
Re: mounting local directory to another local directory (lofs)
I can see some NFS mount points. For example :
"aa128116:/win_appl 7782400 4259616 3302616 56% /win_dev"
By chance, do you use automount feature ? Check with "mount -p" and search for mount points type like "autofs". Then check configuration with file "/etc/auto_master" and any file pointed by auto_master.
If automount is configured, it could explain why you have lofs mounts. When automount detects a cross NFS mount, that is an NFS mount on the server itself, it changes it to an LOFS mount. This situation can arise in a cluster when you mount NFS shares through the virtual IP of a package.
Eric