Now this is something that no admin would do with his/hers OpenVMS system, but since I run this in my lab and I like to experiment, I wanted to share my findings. Getting around filesystem on the OpenVMS is a little clumsy, so I wanted to try to export the whole dka0: disk (system) over NFS and mount in from Linux and explore it from there ( find, grep, strings, hexedit … you name it)
Prerequisites of this experiment are that you already have a running OpenVMS 8.4-2 system on your alphavm_free simulation as described here:
https://astr0baby.wordpress.com/2017/03/30/installing-openvms-v8-4-2-on-alphavm-pt-1/
https://astr0baby.wordpress.com/2017/04/02/installing-openvms-v8-4-2-on-alphavm-pt-2/
Do some time traveling if your TCPIP license expired ;)
So lets enable NFS server on the OpenVMS ; login as system and exec
$ @tcpip$config
Now select to setup NFS first (make sure you start the service once enabled – this is how it should look like once setup) Exit from NFS Configuration [E] and setup PORTMAPPER 15
Once Enabled we are good; we jump out via [E] from the menu and get back to the shell, once there execute the following to get info about the disk to share via NFS
$ sh dev dk Device Device Error Volume Free Trans Mnt Name Status Count Label Blocks Count Cnt ALPHA1$DKA0: Mounted 0 ALPHASYS 8272640 356 1 ALPHA1$DKA200: Online 0 ALPHA1$DKA400: Online wrtlck 0
We want to share the DKA0: with ID as ALPHASYS via NFS
jump to the TCPIP subsystem (Please note this is VERY UNSECURE :) ) 10.0.2.2 is the IP address of the br0 interface on our Linux host (uid=0 and gid=0 are for the Linux root user to be able to mount the NFS; system is the OpenVMS account that has all the rights ….
$ tcpip TCPIP> set host panasonic /address=10.0.2.2 (choose some other hostname) TCPIP> map "/ALPHASYS" dka0: TCPIP> add export "/ALPHASYS" /host=10.0.2.2 TCPIP> add proxy system /uid=0 /gid=0 /host=10.0.2.2
So now we should be able to query the simulated OpenVMS from our Linux host
panasonic mnt # showmount -e 10.0.2.12 Export list for 10.0.2.12: /ALPHASYS PANASONIC panasonic mnt #
And finally mount it
mount -o nolock 10.0.2.12:/ALPHASYS /mnt/nfs
sds