Tape Commands :
Command Line Tape Utility February 12, 2008 in Solaris, Unix Tags: Command Line Tape Utility, mt -f, tar MT COMMAND: $ mt -f /dev/rmt/0cbn rewind Rewind tape drive $ mt -f /dev/rmt/0cbn status Display status information about the tape unit $ mt -f /dev/rmt/0cbn erase Erase the tape $ mt -f /dev/rmt/0cbn bsf 1 Goto previous record $ mt -f /dev/rmt/0cbn fsf 1 Forward record $ mt -f /dev/rmt/0cbn eod Go to end of data $ mt -f /dev/rmt/0cbn offline Unload tape $ mt -f /dev/rmt/0cbn tell Find out what block you are at with mt command $ mt -f /dev/rmt/0cbn retension Check retention ——- TAR COMMAND: $tar cvf /dev/rmt/0cbn / backup the entire system to tape $tar cvzf /dev/rmt/0cbn /bin only backup the /bin directory to tape and compress $tar tvf /dev/rmt/0cbn view the contents of a tape $tar xvf /dev/rmt/0cbn restore the entire contents of the tape $tar xvf /dev/rmt/0cbn /etc/sendmail.cf only restore the file ’/etc/sendmail.cf’ from tape $tar xvzf /dev/rmt/0cbn /bin restore and uncompress the directory /bin from tape # tar -czf /dev/rmt/0cbn /www /home Backup directory /www and /home with tar command (z - compressed) TAR Option: c create a archive (write to tape) t display files on archive (view only) x extract from archive (read from tape and write to disk) v verbose - display filenames z compress files (using gzip) f device name or file name to write to
Installation sous Solaris 10 x86 :
bash-3.00# /mnt/install Symantec Installation Script Copyright 1993 - 2007 Symantec Corporation, All Rights Reserved. Installing NetBackup Server Software NOTE: To install only NetBackup Client software locally on this machine or to load additional UNIX client software on this server, insert the NetBackup UNIX Clients cdrom. Do you wish to continue? [y,n] (y) NetBackup installs to the running root environment, by default. Are you installing to the running root environment? [y,n] (y) Traitement de la copie du module <SYMCnetbp> Ã partir de </mnt/solaris_x86> en cours... NetBackup and Media Manager(i386) 6.5,REV=2007.07.24.03.39 Copyright 1993 - 2007 Symantec Corporation, All Rights Reserved. NetBackup and Media Manager binaries will be installed in /opt/openv and a link will be created from /usr/openv to /opt/openv, if it does not exist. Is this okay? (y) [y,n,?,q] NetBackup and Media Manager 6.5 will be installed. </opt> est le rÃ©pertoire de base utilisÃ© pour l'installation du module. ## Traitement des donnÃ©es du module en cours... ## Traitement des donnÃ©es systÃ¨me en cours... ## VÃ©rification de l'espace disque requis ## Checking for conflicts with packages already installÃ©s. Installation de NetBackup and Media Manager en <SYMCnetbp> en cours... ## ExÃ©cution du script de prÃ©-installation en cours... Creating /opt/openv. Creating link from /usr/openv to /opt/openv. ## Intallation de l'Ã©lÃ©ment 1 de 1 en cours... /opt/openv/NB-Java.tar.Z ... ... /opt/openv/volmgr/misc/README [ vÃ©rification de la classe <NBclass> en cours...] ## ExÃ©cution du script de post-installation The NetBackup and Media Manager binaries are installed. Read the release notes carefully. If you ran pkgadd instead of <cdrom_path>/install, you must run /usr/openv/netbackup/bin/install_bp to initiate NetBackup. L'installation de <SYMCnetbp> a abouti. Running /usr/openv/netbackup/bin/install_bp -p /mnt Copying Solaris_x86_10_64 Client Binaries x openv, 0 bytes, 0 tape blocks x openv/lib, 0 bytes, 0 tape blocks x openv/lib/libvxSigScheduleJNI2.so, 1619428 bytes, 3163 tape blocks x openv/lib/libnbservice.so, 560568 bytes, 1095 tape blocks x openv/lib/libVmangle.so, 18900 bytes, 37 tape blocks ... ... x openv/resources/libraries_root.res, 19572 bytes, 39 tape blocks x openv/resources/nbecmsg_root.res, 42656 bytes, 84 tape blocks Installing NB-Java. + /bin/cp ./nbj.conf /usr/openv/java The following automatic startup and shutdown scripts (respectively) have been installed. They will cause the NetBackup client daemons to be automatically shut down and restarted each time the system boots. /etc/rc2.d/S95nbclient /etc/rc0.d/K01nbclient /etc/rc1.d/K01nbclient Starting nbftclnt... LiveUpdate is not installed, skipping registration step... The following package(s) are missing and must be installed before NetBackup can be installed: VRTSpbx The listed package(s) are part of the Symantec Infrastructure Core Services (ICS) CDs/DVDs which are included in the corresponding NetBackup media kit. The ICS image is contained on the currently mounted media at: /mnt/NB_65_ICS_188.8.131.52_SolarisX86 Do you want to install the listed package(s) now? [y,n] (y) Installing VRTSpbx... A NetBackup Server or Enterprise Server license key is needed for installation to continue. Enter license key: HJBDFHBCHDFCDHDDBNXJDBX NetBackup Enterprise Server Base product with all the features enabled has been registered. All additional keys should be added at this time. Do you want to add additional license keys now? [y,n] (y) n Use /usr/openv/netbackup/bin/admincmd/get_license_key to add, delete or list license keys at a later time. Installing NetBackup Enterprise Server version: 6.5 If this machine will be using a different network interface than the default (unknown), the name of the preferred interface should be used as the configured server name. If this machine will be part of a cluster, the virtual name should be used as the configured server name. Would you like to use "unknown" as the configured name of the NetBackup server? [y,n] (y) Is unknown the master server? [y,n] (y) Do you have any media servers? [y,n] (n) Checking /etc/services for the needed NetBackup and Media Manager services. Copying original /etc/services file to /etc/services.NBU_032108.17:33:45 Editing /etc/services to update NetBackup and Media Manager services. /etc/services will be updated to add the following entries for NetBackup/Media Manager. bprd 13720/tcp bprd bpcd 13782/tcp bpcd bpdbm 13721/tcp bpdbm vnetd 13724/tcp vnetd vopied 13783/tcp vopied bpjobd 13723/tcp bpjobd bpjava-msvc 13722/tcp bpjava-msvc NB_dbsrv 13785/tcp NB_dbsrv vmd 13701/tcp vmd acsd 13702/tcp acsd tl8cd 13705/tcp tl8cd tldcd 13711/tcp tldcd odld 13706/tcp odld tl4d 13713/tcp tl4d tshd 13715/tcp tshd tlmd 13716/tcp tlmd tlhcd 13717/tcp tlhcd rsmd 13719/tcp rsmd /etc/services has been updated to contain NetBackup and Media Manager services. WARNING: ypwhich: the domainname hasn't been set on this machine. WARNING: ypcat: the domainname hasn't been set on this machine. Found the necessary NetBackup services in /etc/services. Checking for a bpcd entry in /etc/inetd.conf: Adding bpcd entry. Original /etc/inetd.conf saved as /etc/inetd.conf.NBU_032108.17:30:11. Checking for a vnetd entry in /etc/inetd.conf: Adding vnetd entry. Checking for a vopied entry in /etc/inetd.conf: Adding vopied entry. Checking for a bpjava-msvc entry in /etc/inetd.conf: Adding bpjava-msvc entry. bpcd -> /var/svc/manifest/network/bpcd-tcp.xml Importing bpcd-tcp.xml ...Done vnetd -> /var/svc/manifest/network/vnetd-tcp.xml Importing vnetd-tcp.xml ...Done vopied -> /var/svc/manifest/network/vopied-tcp.xml Importing vopied-tcp.xml ...Done bpjava-msvc -> /var/svc/manifest/network/bpjava-msvc-tcp.xml Importing bpjava-msvc-tcp.xml ...Done Sending SIGHUP to inetd process. To make NetBackup start up automatically when the system is restarted, the netbackup script found in /usr/openv/netbackup/bin/goodies has been placed in /etc/init.d, with links to it placed in the /etc/rc2.d directory. To make NetBackup shut down automatically when the system is restarted, the netbackup script found in /usr/openv/netbackup/bin/goodies has been placed in /etc/init.d, with links to it placed in the /etc/rc0.d directory. To make NetBackup shut down automatically when the system is restarted, the netbackup script found in /usr/openv/netbackup/bin/goodies has been placed in /etc/init.d, with links to it placed in the /etc/rc1.d directory. Copied files to /kernel/drv/amd64. Doing add_drv of the sg driver Creating /dev/sg. Added entry in /etc/devlink.tab file. Made links in /dev/sg NetBackup maintains a centralized catalog (separate from the image catalog) for data related to media and device configuration, device management, storage units, hosts and host aliases, media server status, NDMP credentials, and other information. This is managed by the Enterprise Media Manager server. Enter the Enterprise Media Manager server (default: unknown): Starting the NetBackup Database Server. DBMS Server 9.0.2 is being installed x bin, 0 bytes, 0 tape blocks x bin/dbbackup, 337112 bytes, 659 tape blocks ... ... x scripts/wdata/sales_oi.dat, 53753 bytes, 105 tape blocks x tix, 0 bytes, 0 tape blocks x tix/default.tix, 6008 bytes, 12 tape blocks Installation completed successfully Starting the NetBackup Event Manager. Database server is NB_unknown Creating the NetBackup database. Creating NetBackup data files in: /usr/openv/db/data Creating /usr/openv/db/data Creating NetBackup index files in: /usr/openv/db/data Creating NetBackup transaction log file in: /usr/openv/db/data Database "/usr/openv/db/data/NBDB.db" created successfully Starting the NetBackup database. Authenticating the NetBackup database. VXDBMS_NB_DATA entry in bp.conf updated successfully. Setting of database authentication for NBDB successful. Change of dba password for NBDB successful. Creating the NetBackup database files. Creating the NetBackup EMM schema. Verifying the running version of NBDB ... NBDB version 184.108.40.206 verified. Nothing to upgrade. Version unchanged. Database validation successful. Database [NBDB] is alive and well on server [NB_unknown]. Starting the NetBackup database manager process (bpdbm). Creating Directive Set for LotusNotes Creating Directive Set for MS_Exchange_5.x Creating Directive Set for MS_Exchange_Mailbox Creating Directive Set for MS_Exchange_200x Creating Directive Set for MS_Exchange_SRS Creating Directive Set for MS_Exchange_Public_Folders Creating Directive Set for MS_Exchange_KMS Creating Directive Set for MS_SharePoint_Portal_Server_2001 Creating Directive Set for MS_SharePoint_Portal_Server_2003 Creating Template Set for Oracle_RMAN Creating Template Set for Oracle_XML_Export Creating Template Set for DB2 Creating Directive Set for Windows2000 Creating Directive Set for Windows2003 Policy conversion summary: Number of original policies: 0 Number of non-snapshot policies skipped: 0 Number of policies not needing conversion: 0 Number of policies converted to 'auto' snapshot method: 0 Number of policies converted: 0 Number of new policies created due to multiple clients in a policy that had different snapshot method configurations: 0 Starting the NetBackup compatibility daemon. Starting the NetBackup Enterprise Media Manager. Starting the NetBackup Resource Broker. Populating the database tables. This will take some time. Starting the Media Manager device daemon processes. Do you want to start the NetBackup bprd process so backups and restores can be initiated? [y,n] (y) Starting the NetBackup request daemon process (bprd). Starting the NetBackup Job Manager. Starting the NetBackup Policy Execution Manager. Starting the NetBackup Storage Service Manager. Starting the NetBackup Remote Monitoring Management System. Starting the NetBackup Service Layer. Starting the NetBackup Service Monitor. File /usr/openv/tmp/install_trace.777 contains a trace of this install. That file can be deleted after you are sure the install was successful. You have mail in /var/mail//root bash-3.00#
Full restore Solaris avec Netbackup :
Restore the Operating System From VERITAS NetBackup Software
Very important note: On all versions of the VERITAS NetBackup software, when you are restoring files there will be an option to rename hard and soft links. You must select rename hard links and deselect rename soft links. If you get these options wrong, you will lose absolute path symbolic links and your restore will be invalid.