Operating System - HP-UX
1855240 Members
8458 Online
104109 Solutions
New Discussion

How to remote mount a CD? HPUX 11.0/HPUX 11.11

 
SOLVED
Go to solution
Gino Castoldi_2
Honored Contributor

How to remote mount a CD? HPUX 11.0/HPUX 11.11

Hi,

We want to mount a cd (Oracle) from a HPUX 11.0 server onto a HPUX 11.11 server in a different location (they are both L class
machines).

10 points to any good answer.
TIA, Gino


26 REPLIES 26
Steven E. Protter
Exalted Contributor
Solution

Re: How to remote mount a CD? HPUX 11.0/HPUX 11.11

Make sure the proper mounting instructions are in /etc/fstab on the machine sharing the cd

# /dev/dsk/c3t2d0 /cdrom cdfs ro,suid 0 0

Take out the comment #

mount /cdrom

vi /etc/exports

add the line /cdrom

save the file

exportvs -av

That will allow a remote NFS mount on the cdrom drive.

From the remote machine

mount hostname://cdrom /removecd

The names may need to be changed based on the actual names of the suscpect.

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
Hazem Mahmoud_3
Respected Contributor

Re: How to remote mount a CD? HPUX 11.0/HPUX 11.11

doug mielke
Respected Contributor

Re: How to remote mount a CD? HPUX 11.0/HPUX 11.11

You may need to confirm the device name for the CD,
ioscan -fnC disk
will do it, ( In case it's different from the one mentioed above.
Also, if it's an oracle CD, the situation changes some ( seach this forum for 'rockridge' to get abundance of info.

finnally, we do this NFS export of CDs routinely, and it works well. Rememnber to unmount the NFS mount on the remote before remove the source cd (NFS server not responding' can be a pain to rectify)
Bill Hassell
Honored Contributor

Re: How to remote mount a CD? HPUX 11.0/HPUX 11.11

Since you are running 11.0 on the system with the CDROM, you can dump the unstable PFS code and after adding the 3 requisite patches, use the -orr option now part of the cdfs subsystem code. The 3 patches are:

PHCO_26449 PHKL_26450 PHKL_28060

Before you export the /cdrom filesystem, make sure the filenames look OK (ie, not all UPPERCASE with ;1 extensions).


Bill Hassell, sysadmin
Pete Randall
Outstanding Contributor

Re: How to remote mount a CD? HPUX 11.0/HPUX 11.11

Gino,

First, it needs to be exported from your 11.0 server so that it's available to the 11i server. Put an entry in /etc/exports something like this:

/cdrom -anon=65534,ro

Then, run "exportfs -a" to source the new entry in /etc/exports.

Then, on your 11i server, run the following command:

mount 11server:/cdrom /mountpoint

where /mountpoint is the mount directory on your 11i server and "11server" is the hostname of your 11.0 server.

That should do it.


Pete

Pete
Gino Castoldi_2
Honored Contributor

Re: How to remote mount a CD? HPUX 11.0/HPUX 11.11

Hi,

When I run the export procedures it gets this error message:

root# exportfs -av
"exportfs error: /cdrom: Read-only file system".

I first mounted the CD locally:
root# mount -F cdfs -e -o ro,rr /dev/dsk/c2t2d0 /cdrom

Then added the device to the /etc/fstab file.
Added "/cdrom" to the /etc/exports file.
Then ran the 'exportfs -av' command.

10 points to any good answer.
TIA, Gino

Helen French
Honored Contributor

Re: How to remote mount a CD? HPUX 11.0/HPUX 11.11

Try exporting it from SAM - nfs services. Also, "read only file system" was a warning or error? Sometimes, it will give warning messages just for information. Also, if you want to see if /cdrom is exported, check showmount command:

# showmount -e
Life is a promise, fulfill it!
Pete Randall
Outstanding Contributor

Re: How to remote mount a CD? HPUX 11.0/HPUX 11.11

Gino,

What does the entry in /etc/exports look like?


Pete

Pete
Patrick Wallek
Honored Contributor

Re: How to remote mount a CD? HPUX 11.0/HPUX 11.11

The "read-only filesystem" warning, should not effect your export. I would expect that for 2 reasons: 1) you mounted it with the ro (read-only option) and 2) It is a CD-ROM, of course it is read only.

I wouldn't worry about that message at all.
Gino Castoldi_2
Honored Contributor

Re: How to remote mount a CD? HPUX 11.0/HPUX 11.11

Hi,

Shiju:

root# showmount -e "no exported filesystems"

Pete:

root# cat /etc/exports (file)

/cdrom

10 points to any good answer.
TIA, Gino

Pete Randall
Outstanding Contributor

Re: How to remote mount a CD? HPUX 11.0/HPUX 11.11

Gino,

Though this may not be causing your problem, I believe your /etc/exports entry needs to look like this:

/cdrom -anon=65534,ro


Pete

Pete
doug mielke
Respected Contributor

Re: How to remote mount a CD? HPUX 11.0/HPUX 11.11

Once the CD is mounted, we copy the contents to a local filesystem, and install software from that location, locally.

Neither system has ever cared that it's read only.
Gino Castoldi_2
Honored Contributor

Re: How to remote mount a CD? HPUX 11.0/HPUX 11.11

Hi,

I want to mount the CD because we want to run
the Oracle "runInstaller" program that's
only on that CD.

10 points to any good answer.
TIA, Gino
Pete Randall
Outstanding Contributor

Re: How to remote mount a CD? HPUX 11.0/HPUX 11.11

Gino,

How is the CD mounted on your 11.0 server? Are you using pfs_mount or, as Bill suggested, are you using the RockRidge extensions to mount it with a regular mount command?


Pete

Pete
Helen French
Honored Contributor

Re: How to remote mount a CD? HPUX 11.0/HPUX 11.11

Edit your /etc/exports file and add like this:

/cdrom -ro -root=[remot_host_name]

Now, after you mount your CD, try exportfs command. That should work for you.
Life is a promise, fulfill it!
Alex Richardson
Advisor

Re: How to remote mount a CD? HPUX 11.0/HPUX 11.11

Hi Gino,

You are receiving that error from exportfs becuase your /etc/exports file does not have the correct statement when exporting the /cdrom filesystem. It should look something like this

/cdrom -anon=0 -ro

After making that change run the exportfs -a command to export the /cdrom filesystem. (Oh yeah make sure you have the CD mounted first!) Also type exportfs with no option to verify that the FS is exported.

Now one the other system use the mount command to mount this FS.

mount -ro hostname:/cdrom /cdrom

Have a happy holidays...
Gino Castoldi_2
Honored Contributor

Re: How to remote mount a CD? HPUX 11.0/HPUX 11.11

Hi,

Pete: Here's how O mounted the CD on the
11.0 server (this where we want to export
the cd-rom from).

mount -F cdfs -e -o ro,rr /dev/dsk/c2t2d0 /cdrom
Gino Castoldi_2
Honored Contributor

Re: How to remote mount a CD? HPUX 11.0/HPUX 11.11

Hi,

Shiju:
Updating the /etc/exports file as you suggested worked, the cd-rom is now exported.

10 points to any good answer.
TIA, Gino
Gino Castoldi_2
Honored Contributor

Re: How to remote mount a CD? HPUX 11.0/HPUX 11.11

Hi,

I tried to mount the cd on the remote server (HPUX 11.11), now that I have it exported.

# mount 11server:/cdrom /cdrom
Get this message: "permission denied"


If I use this mount command I get these
messages:

# mount -ro 11server:/cdrom /cdrom
"mount: /cdrom was either ignored or not found in /etc/fstab"


10 points to any good answer.
TIA, Gino

clar_1
Advisor

Re: How to remote mount a CD? HPUX 11.0/HPUX 11.11

Hi

Now that the CD being mounted and exported from the NFS-Server (11server),try this mount command at the client side..

# mount -F nfs -r 11server:/cdrom /cdrom

This should work..

Merry X-mas
Jai


Nothing is impossible
Bill Hassell
Honored Contributor

Re: How to remote mount a CD? HPUX 11.0/HPUX 11.11

Are you mounting the CD logged in as oracle? The mount command must be run by root. Also, on the local machine, you must be running NFS services to allow importing. Use SAM to enable NFS imports, or you can manually edit the file: /etc/rc.config.d/nfsconf and change:

NFS_CLIENT=1
NUM_NFSIOD=4

Then start NFS services with:

/sbin/init.d/nfs.core start
/sbin/init.d/nfs.client start

and now use the mount command:

mount 11server:/cdrom /cdrom

NOTE: /cdrom on the local machine must be a simple, empty directory. Also: 11server must have DNS entries both directions:

nslookup 11server
nslookup 12.34.56.78

Both command must return valid information. If not, add 11server to /etc/hosts on the local machine and make sure /etc/nsswitch.conf has the line:

hosts: files [NOTFOUND=continue UNAVAIL=continue] dns [NOTFOUND=return UNAVAIL=continue TRYAGAIN=return]

The above is preferred since /etc/hosts is local and reduces DNS traffic for commonly used IP addresses. /etc/hosts should contain stable, production system names and perhaps some selected PCs or other support systems.


Bill Hassell, sysadmin
Gino Castoldi_2
Honored Contributor

Re: How to remote mount a CD? HPUX 11.0/HPUX 11.11

Hi,

Jai: I tried the mount command and it returned: "permission denied".

10 points to any good answer.
TIA, Gino
Gino Castoldi_2
Honored Contributor

Re: How to remote mount a CD? HPUX 11.0/HPUX 11.11

Hi Bill,

No, using root exclusively to mount the CD.

The /etc/rc.config.d/nfsconf file has these
entries already:

NFS_CLIENT="1"
NFS_SERVER="1"
NUM_NFSD=16
NUM_NFSIOD=16
PCNFS_SERVER=0

>Then start NFS services with:
The NFS processes are already running.
=>nfskd, /usr/sbin/nfsd 16 (16 processes).

Should I try restarting these services?

10 points to any good answer.
TIA, Gino



Gino Castoldi_2
Honored Contributor

Re: How to remote mount a CD? HPUX 11.0/HPUX 11.11

Hi,

I restarted the NFS services and I tried
to mount the CD but it failed again with
"permission denied" error message.
(root# mount 11server:/cdrom /cdrom)

10 points to any good answer.
TIA, Gino