- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Linking directory
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
тАО03-03-2008 01:56 AM
тАО03-03-2008 01:56 AM
I want /data/WFS linked to a larger file system called /data1/WFS.
When I create a link:
ln -s /data1/WFS /data/WFS
it does not apear to work.
It looks like:
lrwxrwxr-x 1 titan titan 10 Mar 3 03:45 WFS -> /data1/WFS
But when I do a >test it stays in /data/WFS instead of going to /data1/WFS.
What am I doing wrong or not understanding?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2008 02:02 AM
тАО03-03-2008 02:02 AM
Re: Linking directory
If you do "cd /data1/WFS" and then "ls" is your file there?
If so, then everything is working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2008 02:09 AM
тАО03-03-2008 02:09 AM
Re: Linking directory
If you want to keep pwd(1) honest, you need to use "pwd -P".
>If you do "cd /data1/WFS" and then "ls" is your file there?
Right, or do: bdf .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2008 02:10 AM
тАО03-03-2008 02:10 AM
Re: Linking directory
The file test shows up in /data/WFS and not in /data1/WFS/test.
Their is a sub-directory under /data1/WFS called in. This is the directory where users put their data.
This is how I did the setup:
mv /data/WFS /data1/WFS
This moved everything to the new directory. It removed the sub-directory in /data/WFS. It is /data1/WFS.
The link command I ran is:
ln -s /data1/WFS/ data/WFS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2008 02:12 AM
тАО03-03-2008 02:12 AM
Re: Linking directory
ln -s /data1/WFS /data/WFS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2008 02:28 AM
тАО03-03-2008 02:28 AM
Re: Linking directory
can you post the output of the following command:
ll /data*
revert
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2008 02:34 AM
тАО03-03-2008 02:34 AM
Re: Linking directory
$ pwd
/data/WFS
$ ll /data/*
/data/RP: total 0
drwxrwxrwx 4 titan titan 96 Feb 2 15:36 2
/data/VS:
total 0
drwxrwxr-x 4 titan titan 96 Feb 2 15:32 2
drwxrwxr-x 4 titan titan 96 Feb 2 15:33 3
/data/WFS:
total 0
lrwxrwxr-x 1 titan titan 10 Mar 3 03:45 WFS -> /data1/WFS
drwxrwxr-x 2 titan titan 96 Mar 3 04:17 in
/data/lost+found:
total 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2008 02:43 AM
тАО03-03-2008 02:43 AM
Solutionlrwxrwxr-x Mar 3 03:45 WFS -> /data1/WFS
This is your problem. You created WFS and then you put another WFS into WFS/.
So
$ rm /data/WFS/WFS
$ rmdir /data/WFS
$ ln -s /data1/WFS /data/WFS
>Sorry I cannot type today. The link command was: ln -s /data1/WFS /data/WFS
That's what you had??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2008 02:53 AM
тАО03-03-2008 02:53 AM
Re: Linking directory
I was in /data/WFS
I did >test
It showed up in /data/WFS and in /data1/WFS
Why is it showing up in /data/WFS?
$ pwd
/data/WFS
$ ll /data* /data:
total 0
drwxrwxrwx 3 titan titan 96 Feb 2 15:36 RP
drwxrwxr-x 4 titan titan 96 Feb 2 15:33 VS
lrwxrwxr-x 1 titan titan 10 Mar 3 04:44 WFS -> /data1/WFS
drwxr-xr-x 2 titan titan 96 Jan 15 05:20 lost+found
/data1:
total 0
drwxrwxrwx 3 titan titan 96 Mar 3 04:47 WFS
drwxr-xr-x 2 titan titan 96 Feb 29 04:03 lost+found
$ ll /data*
/data:
total 0
drwxrwxrwx 3 titan titan 96 Feb 2 15:36 RP
drwxrwxr-x 4 titan titan 96 Feb 2 15:33 VS
lrwxrwxr-x 1 titan titan 10 Mar 3 04:44 WFS -> /data1/WFS
drwxr-xr-x 2 titan titan 96 Jan 15 05:20 lost+found
/data1:
total 0
drwxrwxrwx 3 titan titan 96 Mar 3 04:47 WFS
drwxr-xr-x 2 titan titan 96 Feb 29 04:03 lost+found
$ ll /data/*
lrwxrwxr-x 1 titan titan 10 Mar 3 04:44 /data/WFS -> /data1/WFS
/data/RP: total 0
drwxrwxrwx 4 titan titan 96 Feb 2 15:36 2
/data/VS: total 0
drwxrwxr-x 4 titan titan 96 Feb 2 15:32 2
drwxrwxr-x 4 titan titan 96 Feb 2 15:33 3 /data/lost+found: total 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2008 03:03 AM
тАО03-03-2008 03:03 AM
Re: Linking directory
It's a symlink, so it should be in "both".
>$ pwd
I told you to use "pwd -P" to prevent the shell from lying to you.
$ ll /data*
/data:
lrwxrwxr-x 1 10 WFS -> /data1/WFS
/data1:
drwxrwxrwx 3 96 WFS
This is working fine. You have a symlink /data/WFS that points to /data1/WFS/.