Re: How to mount on HP-UX an access NAS (1792 Views)
Reply
Occasional Advisor
NASSE
Posts: 7
Registered: ‎03-19-2009
Message 1 of 9 (1,792 Views)

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
Honored Contributor
Matti_Kurkela
Posts: 6,271
Registered: ‎12-02-2001
Message 2 of 9 (1,792 Views)

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
Occasional Advisor
NASSE
Posts: 7
Registered: ‎03-19-2009
Message 3 of 9 (1,792 Views)

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
Occasional Advisor
NASSE
Posts: 7
Registered: ‎03-19-2009
Message 4 of 9 (1,792 Views)

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


Honored Contributor
V. Nyga
Posts: 4,874
Registered: ‎09-20-2002
Message 5 of 9 (1,792 Views)

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 ***
Trusted Contributor
Eric Raeburn
Posts: 137
Registered: ‎11-26-2002
Message 6 of 9 (1,792 Views)

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
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 7 of 9 (1,792 Views)

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
Trusted Contributor
Eric Raeburn
Posts: 137
Registered: ‎11-26-2002
Message 8 of 9 (1,792 Views)

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
Occasional Advisor
NASSE
Posts: 7
Registered: ‎03-19-2009
Message 9 of 9 (1,792 Views)

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$

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.