Operating System - HP-UX
1748195 Members
2764 Online
108759 Solutions
New Discussion юеВ

Re: How to mount on HP-UX an access NAS

 
NASSE
Occasional Advisor

How to mount on HP-UX an access NAS

Hi !

I have a HP-UX C8000

uname -a :
HP-UX c8000 B.11.11 U 9000/785 4268252796 unlimited-user license

I would like to access an share on my NAS
I have an active directory for the control access

I would like mount the repertory : //entreprise.net/data/proc
It's an access DFS.
with the repertory /entreprise
8 REPLIES 8
Matti_Kurkela
Honored Contributor

Re: How to mount on HP-UX an access NAS

Active Directory? DFS? That sounds like Microsoft Windows terminology.

If you need to access it using Microsoft Windows-compatible protocols, you'll need a "CIFS Client" package for HP-UX, available for free from software.hp.com:

http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B8724AA

Documentation and release notes:
http://www.docs.hp.com/en/netcom.html#CIFS (Common Internet File System) Client

If your NAS supports the NFS protocol, you could use it to access the share without installing any extra software. HP-UX 11.11 supports NFSv2 and NFSv3 as standard. For more information on how to mount NFS shares on HP-UX, type "man mount_nfs" on HP-UX command prompt.

MK
MK
NASSE
Occasional Advisor

Re: How to mount on HP-UX an access NAS

I have a network storage NETAP

Manage CIFS Shares :
qtree_ficb$ (/vol/vol_ficb/qtree_ficb)

The "computer"'s name : FAS2020B

Now, with Windows 2003, I install the DFS
The user can access on network with //entreprise.net/data <--> //fas2020b/qtree_fib$

I would like to mount the repertory in my C8000 /entreprise to //entreprise.net/data

I am going to see your documentation.
Thx
NASSE
Occasional Advisor

Re: How to mount on HP-UX an access NAS

OK It's work !

But I have 2 questions :

How to mount a share directly in a repertory?

See my command :

1)cifsmount -Uuser -Ppassword -Ddomaine //FAS2020B/qtree_ficb$ /entreprise

FAS2020B --> NAS
QTREE_FICB$ --> SHARE CIFS on NAS

It's work !

Now I would like

/entreprise --> \\fas2020b\qtree_ficb$\data\cfao\unix

If i try :

cifsmount -Uuser -Ppassword -Ddomaine //FAS2020B/qtree_ficb$/data/cfao/unix /mecahers

--> SRV: Invalid netname


V. Nyga
Honored Contributor

Re: How to mount on HP-UX an access NAS

Hi,

I think for this you have to define the exact path as a share point:
qtree_unix$ /vol/vol_ficb/qtree_ficb/data/cfao/unix

BTW.: Netapp also offers NFS licenses, so you can 'exportfs' directories too, then you can use hp-ux nfs as suggested above.
We are using this for our storage environment.

HTH
Volkmar

*** Say 'Thanks' with Kudos ***
Eric Raeburn
Trusted Contributor

Re: How to mount on HP-UX an access NAS

> If i try :
> cifsmount -Uuser -Ppassword -Ddomaine //FAS2020B/qtree_ficb$/data/cfao/unix /mecahers
> --> SRV: Invalid netname


The HP CIFS Client does not support the syntax you have specified:

cifsmount [options] //server/full/path/of/directory

It must be specified as:

cifsmount [options] //server/share_name

So the directory you want to mount will have to be configured as a share on the server.

-Eric
Steven E. Protter
Exalted Contributor

Re: How to mount on HP-UX an access NAS

Shalom,

Most real NAS devices permit NFS mount. I would use AutoFS or automounter.

If not available, then you need to install the Samba CIFS client on HP-UX and use that to mount.

The above listed tools are not available, so you will need to use a script or /etc/fstab to mount the shares.

CIFS is intended for mounting Samba shares, not a direct microsoft type DFS connect. It must be a windows share for HP-UX/CIFS to mount it. You will need a user id and password for the HP-UX machine to perform the mount.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Eric Raeburn
Trusted Contributor

Re: How to mount on HP-UX an access NAS

SEP wrote:
> CIFS is intended for mounting Samba shares,
> not a direct microsoft type DFS connect. It
> must be a windows share for HP-UX/CIFS to
> mount it. You will need a user id and
> password for the HP-UX machine to perform
> the mount.

Let me try to clear up some of these misconceptions.

The HP CIFS Client interoperates with CIFS servers of all kinds, Windows, Samba, and many proprietary CIFS servers, including those from NetApp, EMC, Apple, IBM and others. We tested this thoroughly at multi-vendor interoperability labs twice a year for several years. CIFS is a networking protocol, so any client/server combination that observes the rules of the protocol will work. The server operating system can be Windows, Linux, Unix, or anything else--if the CIFS server software running on it is implemented correctly, the HP CIFS Client will work with it.

The HP CIFS Client does indeed support DFS. This enhancment became available in HP CIFS Client version A.02.02, released around April, 2006. The implementation does have some limitations. See the release notes at docs.hp.com.

Lastly, you do not need to have a username and password on the server to do the mount. Only 'root' can mount a share at the CIFS Client HP-UX host, but 'root' is not required to have a account on the server. Any user on the CIFS Client host must have an account and password on the CIFS server in order to successfully do cifslogin to access the mount. The username and password options to cifsmount are provided as a convenience, in the case where 'root' has an account on the server, but they are just that--options.

-Eric
NASSE
Occasional Advisor

Re: How to mount on HP-UX an access NAS

It's work !
edit
/etc/rc.config.d/cifsclient

Modify the flag to 1
RUN_CIFSCLIENT=1


Create the mount :

cifsmount //fas2020b/share$ /mecahers

Associate an login :

cifslogin ├в s ├в Uuser ├в Ppassword ├в Ddomain //fas2020b/share$