Operating System - HP-UX
1841835 Members
3425 Online
110185 Solutions
New Discussion

export file system from HP-UX 11 to SFU on W2K

 
tian_1
New Member

export file system from HP-UX 11 to SFU on W2K

I am exporting file system /usr/abc from HP-UX 11.0 so users from SFU (service for Unix) on W2K can accesss it as \\hostname\xyz instead of \\hostname\usr\abc to W2K user. So I created link

ln -s /usr/abc xyz

then I export xyz in SAM.

However, from W2K, user always see \\usr\abc, not xyz.

I appreciate any idea on 1) if it's possisble 2) if possible, how to do it.


11 REPLIES 11
U.SivaKumar_2
Honored Contributor

Re: export file system from HP-UX 11 to SFU on W2K

hi,
two ways for trying.
1)create the link under root directory.
#cd /
#ln -s /home/test123/data userdata
export now.
2)try exporting the link.

regards,
U.SivaKumar
Innovations are made when conventions are broken
tian_1
New Member

Re: export file system from HP-UX 11 to SFU on W2K

Hi U.SivaKumar
Thanks. I tried exactly that way. However, from W2K, user sees \\hostname\home\test123\data, not \\hostname\userdata.

Any other idea? Thanks a lot.

U.SivaKumar_2
Honored Contributor

Re: export file system from HP-UX 11 to SFU on W2K

hi,

did you try exporting link directly ?.
#exportfs -i /yourlink

regards,
U.SivaKumar
Innovations are made when conventions are broken
U.SivaKumar_2
Honored Contributor

Re: export file system from HP-UX 11 to SFU on W2K

hi,
this is what i referred from microsoft site.Symbolic links

Symbolic links are a way for a file or directory to exist in one physical location, but be seen as existing in another location or locations. When a symbolic link references a file or directory that is local to the machine where the link is located, Client for NFS doesn't need to do any special manipulation to follow the link. But symbolic links can also be created on an NFS server that point to files or directories that actually reside on a remote machine. In order to resolve these links, Client for NFS needs to have a mapping file that identifies the actual machine that the link points to. This mapping file can reside on the local client machine or can be located centrally on the network for easier administration. The mapping file is an ASCII text file and has the format:

# Lines beginning with a # sign are comments and ignored
mnt \machine\export
Caution should be used with symbolic links. By default, Client for NFS does not resolve or display unresolved links. It will also not allow rename or delete on a symbolic link. You should only enable rename or delete of symbolic links if you fully understand the consequences and know what mechanism or program will be doing the renaming or deleting. A symbolic link that is deleted and then replaced with a file of the same name is no longer a symbolic link. In this scenario there will be two files on the NFS server???the original file in its original location, and the replacement file, in the link location.

regards,
U.SivaKumar

Innovations are made when conventions are broken
U.SivaKumar_2
Honored Contributor

Re: export file system from HP-UX 11 to SFU on W2K

hi,
hope this time problem is solved
#exportfs -i /home/userdata
#ln -s /home/userdata /data
#exportfs -i /data


Try mounting server:/data gain from the client

regards,
U.SivaKumar.
Innovations are made when conventions are broken
tian_1
New Member

Re: export file system from HP-UX 11 to SFU on W2K

Hi U.SivaKumar,

Thanks. Your solution works for most of file system and link, except my specific one---it seems I hit a bug. This is what I got,

# exportfs
/sapmnt/I45/global -anon=65534
/sapmnt/I45/exe -anon=65534
/sapmnt/I45/profile -anon=65534
/dev/rmt/0m -access=anon=65534,
:
:

# ls -s /usr/sap /SAPMNT
# exportfs -i /SAPMNT
# exportfs
/sapmnt/I45/global -anon=65534
/sapmnt/I45/exe -anon=65534
/sapmnt/I45/profile -anon=65534
/dev/rmt/0m -access=anon=65534
/usr/sap

You can see HP-UX 11 always translates it to /usr/sap , i.e the original file system/directory name.

What could be wrong?

Thanks.
U.SivaKumar_2
Honored Contributor

Re: export file system from HP-UX 11 to SFU on W2K

hi ,
you have exported /SAPMNT (symbolic link) but you have not exported (original) /usr/sap .
try this sequence.
#exportfs -i /sap/usr
#exportfs -i /SAPMNT

try to maount from windows NT client as
server:/SAPMNT

regards,
U.SivaKumar
Innovations are made when conventions are broken
U.SivaKumar_2
Honored Contributor

Re: export file system from HP-UX 11 to SFU on W2K

hi ,
you have exported /SAPMNT (symbolic link) but you have not exported (original) /usr/sap .
try this sequence.
#exportfs -i /usr/sap
#exportfs -i /SAPMNT

try to maount from windows NT client as
server:/SAPMNT

regards,
U.SivaKumar
Innovations are made when conventions are broken
U.SivaKumar_2
Honored Contributor

Re: export file system from HP-UX 11 to SFU on W2K

hi,
i read the posting from me just above this posting. i clicked twice "submit" by mistake.

you have export the original diractory first then the link. provided that the link should not be in same file system.

our case is ok :
/usr/bin/sap
/SAPMNT

Regards,
U.SivaKumar
Innovations are made when conventions are broken
tian_1
New Member

Re: export file system from HP-UX 11 to SFU on W2K

Hi,
The strange part is
# exportfs -i /usr/sap
# exportfs
/sapmnt/I45/global -anon=65534
/sapmnt/I45/exe -anon=65534
/sapmnt/I45/profile -anon=65534
/dev/rmt/0m -access=anon=6
/usr/sap -anon=65534

# exportfs -i /SAPMNT
# exportfs
/sapmnt/I45/global -anon=65534
/sapmnt/I45/exe -anon=65534
/sapmnt/I45/profile -anon=65534
/dev/rmt/0m -access=anon=6
/usr/sap -anon=65534

/SAPMNT is not inserted into /etc/exportds at all.

I am quite confused here. Thanks for any idea.

Thanks,
U.SivaKumar_2
Honored Contributor

Re: export file system from HP-UX 11 to SFU on W2K

hi,
i think that your /usr is not a separate filesystem ( it is in root fielsystem).
please try to create a link in diffrent filesystem other than /usr/sap and try to
export original dir and link one by one.

regards,
U.SivaKumar
Innovations are made when conventions are broken