The tape drive in the preceding section was connected to cable1 and used to backup cable1. Let'snow backup cable2 with the tape drive as part of the cable1 Virtual Partition. Keep in mind that vPar cable2 with its hostname cvhdcon4 is a separate system from cable1 and its hostname cvhdcon3. We will, therefore, have to backup vPar cable2 to a remote tape drive on cable1. We will backup to a remote tape, connected to cable1, with fbackup by specifying the system name and tape drive, or file, to which we want to store the files. The following example uses fbackup options covered later in this chapter in the non-vPar-specific part of the chapter. We are connected to cable2 and specify that it is to be backed up to the tape drive on cable1 (hostname cvhdcon3.) The fbackup command below will perform the backup to the remote tape drive: # fbackup -f cvhdcon3:/dev/rmt/0m -i /var/tmp -v fbackup(1004): session begins on Wed Aug 29 16:09:28 2001 fbackup(3307): volume 1 has been used 6 time(s) (maximum: 100) fbackup(3024): writing volume 1 to the output file cvhdcon3:/dev/rmt/0m 1: / 2: /tmp 3: /tmp/.AgentSockets 4: /tmp/.AgentSockets/A 5: /tmp/X11_newfonts.log 6: /tmp/install.vars 7: /tmp/llbdbase.dat 8: /tmp/lost+found 9: /tmp/portmap.file 10: /tmp/rpcbind.file 11: /tmp/sd_ipd_acl.1417 12: /tmp/services 13: /tmp/swlist 14: /tmp/typescript fbackup(1005): run time: 17 seconds fbackup(3055): total file blocks read for backup: 141 fbackup(3056): total blocks written to output file cvhdcon3:/dev/rmt/0m: 0 # It takes a little getting used to running fbackup to a remote device even when the device is physically connected to the computer on which you're working. Since the two vPars are different hosts, however, it makes sense that a tape drive used by a different vPar would indeed be remote. The fbackup runs over the network from cable2 to cable1. This is one of the many reasons that you want to have a network card for every vPar on your system. We would issue other remote backup commands as well. The following example shows running cpio on cable2 to the tape drive on cable1 (hostname cvhdcon3:) # find . -print | cpio -oBv | (remsh cvhdcon3 dd of=/dev/rmt/0m) . lost+found .AgentSockets Socket <.AgentSockets/A> not backed up typescript install.vars swlist X11_newfonts.log sd_ipd_acl.1417 services rpcbind.file portmap.file llbdbase.dat 140 blocks 140+0 records in 140+0 records out # This command performs the backup of /tmp on vPar cable2 by sending the files to the tape drive on system cvhdcon3 (vPar cable1.) |