Operating System - HP-UX
1753900 Members
7240 Online
108809 Solutions
New Discussion юеВ

Re: Link two directory across two FS

 
SOLVED
Go to solution
Francesco_13
Regular Advisor

Link two directory across two FS

Hi,
i need to link two directory across two file system. I have add news fs with other names and the application's program cannot find a correct path for creating reports.
My old directory path was /u04/aire/listados
and now it's /d01/aire/listados.
Any idea?

Thank
Best regards.
Francesco
4 REPLIES 4
Jeroen Peereboom
Honored Contributor
Solution

Re: Link two directory across two FS

Francesco,

Create a symbolic link.
For example:
create the directory /u04/aire
create a symbolic link /u04/aire/listados:
ln -s /d01/aire/listados /u04/aire/listados

You may want to do this one level higher:
make sure directory u04 exists, and /u04/aire does not exist.
ln -s /d01/aire /u04/aire

If you type 'ls -l /u04' you will see a symbolic link in /u04.

JP.
KapilRaj
Honored Contributor

Re: Link two directory across two FS

am i cloning .. "man ln" and ln -s is the command you should use !

Kaps
Nothing is impossible
Stanimir
Trusted Contributor

Re: Link two directory across two FS

You can use LOFS:

# cd /u04/aire/listados
# find . | -cpio -dumplv /d01/aire/listados
#mount -F lofs /d01/aire/stados /u04/aire/listados

In /etc/fstab:
/d01/aire/stados /u04/aire/listados lofs rw,suid 0 0

Take care about permission and properties .
Regards,Stan

Francesco_13
Regular Advisor

Re: Link two directory across two FS

Hi,
thanks a lot .