Hi Tripp,
I have successfully (I think) ported ndmpcopy to Digital Unix,
Cool! Any chance you can contribute your changes back to ftp.ndmp.org. If you leave the code in /incoming. I'll make sure it makes its way to the contrib directory.
but I am running into some problems trying to initiate a copy.
Boo. Hiss.
adminhost# ./ndmpcopy srcfiler:/ms/ftp destfiler:/ftp -sa root:passwd -da root:passwd -level 0 -v
srcfiler> Thu Apr 9 17:09:12 EDT [ndmp_session_0]: ../common/ndmpd/mover.c:1169 ndmpdMoverConnect: connect error: No route to host
destfiler> Thu Apr 9 21:09:12 GMT [ndmp_session_0]: ../common/ndmpd/mover.c:1169 ndmpdMoverConnect: connect error: Can't assign requested address
I can ping destfiler from srcfiler and vice-versa.
The output below shows me that the mover on the destination is still listening for a NDMP data connection to be initiated by the source machine. Obviously the DEC client can see both filers, but perhaps the filers can't see each other on these addresses without a route being added. You can check that all ip addresses are consistent on each machine. I know that I will change the local hosts file on a filer here to talk to a server that the filer knows as server1 (111.222.333.12) whereas the yp map on all other clients will be server1 (222.333.111.70) and server1-333 (111.222.333.12).
Alternatively, you could use the -dhost option with NDMPcopy and provide the ip address of the destination filer. You get this value from running ping -s destfiler from srcfiler.
BTW, you can generate a bunch of (pretty cryptic) debug by running:
rc_toggle_basic ; dbg level ndmpd=0xffff ; rc_toggle_basic.
To turn off again run:
rc_toggle_basic ; dbg level ndmpd=0x0 ; rc_toggle_basic
Hope this helps. Let me know how you get on or if you have any more questions.
Here's some interesting information:
srcfiler> ps [...] 3687 BR 0% 2160 13% ndmpd 3688 ?? 0% 3888 11% ndmp_session_0 3689 BR 0% 256 0% ndmp_session_1 3690 BR 0% 256 0% ndmp_session_2 3691 BR 0% 256 0% ndmp_session_3 3692 BR 0% 528 1% ndmp_session_4 [...]
destfiler> ps [...] 3692 ?? 0% 4112 12% ndmp_session_0 3693 BR 0% 208 0% ndmp_session_1 3694 BR 0% 208 0% ndmp_session_2 3695 BR 0% 208 0% ndmp_session_3 3696 BR 0% 208 0% ndmp_session_4 [...]
srcfiler> ndmpd status ndmpd ON. Session: 0 Active tape device: not open data state: Idle data operation: None mover state: Idle
destfiler> ndmpd status ndmpd ON. Session: 0 Active tape device: not open data state: Idle data operation: None mover state: Listen
srcfiler> ndmpd probe 0 ndmpd ON. Session: 0 pid: 0xfffffc00006432f0 isActive: TRUE eof: FALSE authorized: TRUE spt.device_id: -1 spt.ha: -1 spt.scsi_id: -1 spt.scsi_lun: -1 tape.id: -1 tape.device: not open recordCount: 0 tape.mode: Read only mover.state: Idle mover.mode: Read mover.pauseReason: N/A mover.haltReason: N/A mover.dataWritten: 0 mover.seekPosition: 0 mover.bytesLeftToRead: 0 mover.windowOffset: 0 mover.windowLength: 18446744073709551615 mover.position: 0 mover.discardLength: 0 mover.recordSize: 64512 mover.recordNum: 0 mover.rIndex: 0 mover.wIndex: 0 data.operation: None data.state: Idle data.haltReason: N/A data.pauseReason: N/A data.abort: FALSE data.mover.addr_type TCP data.mover.addr 0xc0003f0d data.mover.port 1046 data.readOffset: 0 data.readLength: 0
destfiler> ndmpd probe 0 ndmpd ON. Session: 0 pid: 0xfffffc00007299f0 isActive: TRUE eof: FALSE authorized: TRUE spt.device_id: -1 spt.ha: -1 spt.scsi_id: -1 spt.scsi_lun: -1 tape.id: -1 tape.device: not open recordCount: 0 tape.mode: Read only mover.state: Listen mover.mode: Write mover.pauseReason: N/A mover.haltReason: N/A mover.dataWritten: 0 mover.seekPosition: 0 mover.bytesLeftToRead: 0 mover.windowOffset: 0 mover.windowLength: 18446744073709551615 mover.position: 0 mover.discardLength: 0 mover.recordSize: 64512 mover.recordNum: 0 mover.rIndex: 0 mover.wIndex: 0 data.operation: None data.state: Idle data.haltReason: N/A data.pauseReason: N/A data.abort: FALSE data.mover.addr_type TCP data.mover.addr 0x0 data.mover.port 0 data.readOffset: 0 data.readLength: 0
Any help or ideas would be greatly appreciated.
Tripp
Cheers, Grant