1854818 Members
33326 Online
104103 Solutions
New Discussion

pfs mount opportunity

 
Unix Team_1
Occasional Contributor

pfs mount opportunity

Hi all,

I would like to mount a cd in rockridge format on system A then be able to remotely access from system B. How do I do this?

many thanks

Martin.
HP-UX is my life, my all & my everything
10 REPLIES 10
Tom Geudens
Honored Contributor

Re: pfs mount opportunity

Hi Martin,
There's lots of posts on pfs_mount in these forums (which you can find with a search on "pfs mount") ... so I'm not going to copy those instructions.
However, you might be interested to know that pfs_mount is no longer necessary (and that's a blessing). The last reply in the following thread explains which patches you need in order to work with an ordinary mount.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x98aaba808b46d611abda0090277a778c,00.html

Hope it helps,
Tom
A life ? Cool ! Where can I download one of those from ?
Martin Burnett_2
Trusted Contributor

Re: pfs mount opportunity

Hello,

1. PFS daemons must be started first by running the commands:

pfs_mountd and pfsd

2. After the PFS daemons have been started, the CD-ROM drive is
mounted as follows:

pfs_mount -x unix -t -o ro

3. PFS consists of 7 programs:

1. pfs_mountd
2. pfs_mountd.rpc <--- daemon
3. pfsd
4. pfsd.rpc <--- daemon
5. pfs_mount
6. pfs_umount
7. pfs_exportfs

4. Create a pfs file under export.

5. Put in mountpoint.

6. Then do:

pfs_exportfs

Thanks for participating in the forums,

Martin
Chaos reigns within. Reflect, repent, and reboot. Order shall return.
Unix Team_1
Occasional Contributor

Re: pfs mount opportunity

This is fantastic, and we are so close to getting this working. I have mounted the cd in rockridge format using.

on system A
pfs_mount -vf -t rrip -x unix /dev/dsk/c0t1d0 /cdrom

and using pfs_exportfs did something because it didn't error

So system A has now has the cd mounted in the right format. How can system B get access to it.

10 points for the first correct answer.

Many thanks

Martin.

Every day is a school day
HP-UX is my life, my all & my everything
James R. Ferguson
Acclaimed Contributor

Re: pfs mount opportunity

Hi Martin:

Technical Knowledge Base document #KBRC00001258 has detailed instructions for doing what you seek.

Regards!

...JRF...
Sanjay_6
Honored Contributor

Re: pfs mount opportunity

Hi,

You can use pfs_mount to mount the CD on the local server and then do a pfs_exportfs to export this directory and then use pfs_mount on the remote system to mount this exported directory. Try this links on how to use pfs_mount and then pfs_export.

http://support1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000048194466

http://support1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000048194521

However if it is possible you could look into this patch mentioned by martin and then you won't have to use the pfs_mount command and you can use the regualr mount command to mount the CD, export the directory and then mount it on the remote system.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xf489107d277ad611abdb0090277a778c,00.html

Hope this helps.

Regds

Unix Team_1
Occasional Contributor

Re: pfs mount opportunity

Hi all,

This is what I was after

First of all check that the pfs daemons are running on both systems.

Ps ???ef | grep pfs

If nothing is returned the daemons are not running. To start them issue the following command.

Nohup pfs_mound &
Nohup pfsd &

Ps ???ef | grep pfs

This should now return

pfs_mountd.rpc
pfsd
pfsd.rpc
pfs_mountd

On System A

Add an entry in the pfs_fstab file

/dev/dsk/cntndn /cdrom pfs-rrip xlat=unix 0 0

Add an entry in the pfs_xtab file

/cdrom -anon=65534 ro

then type pfs_exportfs ???av

on the remote system like System B create a directory called remotecd in the root directory. This will be used for the mount point for the remote cd

mkdir remotecd

We should now be able to access the cdrom so from system B

pfs_mount systemA:/cdrom /remotecd

this should work, it worked for me

I want 10 points off each of you for answering my own question in comprehensive detail

But thanks to all who responded.

Martin.

m(__)m (bows in humble reverence)
HP-UX is my life, my all & my everything
Cheryl Griffin
Honored Contributor

Re: pfs mount opportunity

Throw pfs_mounts out the window.

For 11i:
PHCO_25841 s700_800 11.11 Add Rock Ridge extension to mount_cdfs(1M)


For 11.00:
PHKL_26448 s700_800 11.00 Y2k; Rock Ridge extension for ISO-9660
PHCO_26449 s700_800 11.00 Add Rock Ridge extension to mount_cdfs(1M)
PHKL_26450 s700_800 11.00 Rock Ridge extension for ISO-9660

Cheryl
"Downtime is a Crime."
James R. Ferguson
Acclaimed Contributor

Re: pfs mount opportunity

Hi Cheryl:

For 11.11, it's my understanding that in addition to PHCO_25841, one needs PHKL_26269 and PHKL_26520 (any, or all of which may be superceded at any time).

BTW, it's nice to see you back!

Regards!

...JRF...
Cheryl Griffin
Honored Contributor

Re: pfs mount opportunity

James!
You are correct. The additional patches are needed. There is a (easily missed) note in the each of the patch text files that reads:

"PHKL_25760 [et al]: To enable the enhancement to add the Rock Ridge extension to the ISO-9660 file system, the following must be installed: PHKL_25760 and PHKL_26269. These product updates may be installed in any order. If any of these product updates are not installed, this product update will have no impact on your system. "

Thank you so much for your WB, that made my day!
Cheryl
"Downtime is a Crime."
MANOJ SRIVASTAVA
Honored Contributor

Re: pfs mount opportunity

Hi MArtin


Sorry for the late reply



A. Perform these steps on the local system:

1. nohup /usr/sbin/pfs_mountd &

2. nohup /usr/sbin/pfsd &

3. Add the filesystem to /etc/pfs_fstab

4. Add the filesystem to /etc/pfs_exports

5. pfs_exportfs -a

6. pfs_mount /cdrom

B. Perform these steps on the remote system:

1. nohup /usr/sbin/pfs_mountd &

2. nohup /usr/sbin/pfsd &

3. pfs_mount -o xlat=unix remotesystemA:/cdrom /localmnt_pnt

you can look at this document
http://support1.itrc.hp.com/service/cki/docDisplay.do?docId=200000032087697


Manoj Srivastava