This is a discussion on ufsdump and ufsrestore with multiple volumes within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> How to ufsdump and ufsrestore with multiple volumes? I want to backup and restore a large directory with ufsdump ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| How to ufsdump and ufsrestore with multiple volumes? I want to backup and restore a large directory with ufsdump and ufsrestore, so it requires multiple tapes (two in this example). After backuping tape 1, I press the eject button of the tape drive to eject the button, then I insert a second tape and type "yes" to continue. # /usr/sbin/ufsdump 0uf /dev/rmt/0cn /opt/bsm .... DUMP: 89.66% done, finished in 0:04 DUMP: End-of-tape detected DUMP: 92.68% done, finished in 0:03 DUMP: Change Volumes: Mount volume `#2' on `pwdly0ee:/dev/rmt/0cn' DUMP: NEEDS ATTENTION: Is the new volume (#2) mounted on `pwdly0ee:/dev/rmt/0cn' and ready to go?: ("yes" or "no") DUMP: NEEDS ATTENTION: Is the new volume (#2) mounted on `pwdly0ee:/dev/rmt/0cn' and ready to go?: ("yes" or "no") DUMP: NEEDS ATTENTION: Is the new volume (#2) mounted on `pwdly0ee:/dev/rmt/0cn' and ready to go?: ("yes" or "no") ye DUMP: NEEDS ATTENTION: Is the new volume (#2) mounted on `pwdly0ee:/dev/rmt/0cn' and ready to go?: ("yes" or "no") yes DUMP: "yes" or "no"? DUMP: NEEDS ATTENTION: Is the new volume (#2) mounted on `pwdly0ee:/dev/rmt/0cn' and ready to go?: ("yes" or "no") yes DUMP: Volume 2 begins with blocks from inode 430787 DUMP: 92.70% done, finished in 0:03 DUMP: Change Volumes: Mount volume `#2' on `pwdly0ee:/dev/rmt/0cn' DUMP: NEEDS ATTENTION: Is the new volume (#2) mounted on `pwdly0ee:/dev/rmt/0cn' and ready to go?: ("yes" or "no") yes DUMP: Volume 2 begins with blocks from inode 430787 DUMP: 92.70% done, finished in 0:03 DUMP: 4731838 blocks (2310.47MB) on 2 volumes at 840 KB/sec DUMP: DUMP IS DONE DUMP: Level 0 dump on Sat 08 Nov 2003 02:53:58 PM EST # /usr/sbin/ufsrestore rf /dev/rmt/0cn Mount volume 2 then enter volume name (default: /dev/rmt/0cn) Mount volume 3 then enter volume name (default: /dev/rmt/0cn) <- insert second tape Wrong volume (2) Mount volume 3 then enter volume name (default: /dev/rmt/0cn) 2 Cannot open 2 Mount volume 3 then enter volume name (default: 2) Cannot open 2 Mount volume 3 After tape 1 in finished restoring, I eject the tape and insert the second tape. Now what should I do to continue tape restoring? |
| |||
| ma7777772@hotmail.com (TingChong) wrote in message news:<451a2a55.0311100542.39338951@posting.google. com>... > How to ufsdump and ufsrestore with multiple volumes? > I want to backup and restore a large directory with ufsdump and > ufsrestore, so it requires multiple tapes (two in this example). > After backuping tape 1, I press the eject button of the tape drive to > eject the button, then I insert a second tape and type "yes" to > continue. > > # /usr/sbin/ufsdump 0uf /dev/rmt/0cn /opt/bsm > ... > DUMP: 89.66% done, finished in 0:04 > DUMP: End-of-tape detected > DUMP: 92.68% done, finished in 0:03 > DUMP: Change Volumes: Mount volume `#2' on `pwdly0ee:/dev/rmt/0cn' > DUMP: NEEDS ATTENTION: Is the new volume (#2) mounted on > `pwdly0ee:/dev/rmt/0cn' and ready to go?: ("yes" or "no") > DUMP: NEEDS ATTENTION: Is the new volume (#2) mounted on > `pwdly0ee:/dev/rmt/0cn' and ready to go?: ("yes" or "no") > DUMP: NEEDS ATTENTION: Is the new volume (#2) mounted on > `pwdly0ee:/dev/rmt/0cn' and ready to go?: ("yes" or "no") ye > DUMP: NEEDS ATTENTION: Is the new volume (#2) mounted on > `pwdly0ee:/dev/rmt/0cn' and ready to go?: ("yes" or "no") yes > DUMP: "yes" or "no"? > DUMP: NEEDS ATTENTION: Is the new volume (#2) mounted on > `pwdly0ee:/dev/rmt/0cn' and ready to go?: ("yes" or "no") yes > DUMP: Volume 2 begins with blocks from inode 430787 > DUMP: 92.70% done, finished in 0:03 > DUMP: Change Volumes: Mount volume `#2' on `pwdly0ee:/dev/rmt/0cn' > DUMP: NEEDS ATTENTION: Is the new volume (#2) mounted on > `pwdly0ee:/dev/rmt/0cn' and ready to go?: ("yes" or "no") yes > DUMP: Volume 2 begins with blocks from inode 430787 > DUMP: 92.70% done, finished in 0:03 > DUMP: 4731838 blocks (2310.47MB) on 2 volumes at 840 KB/sec > DUMP: DUMP IS DONE > DUMP: Level 0 dump on Sat 08 Nov 2003 02:53:58 PM EST > > > # /usr/sbin/ufsrestore rf /dev/rmt/0cn > Mount volume 2 > then enter volume name (default: /dev/rmt/0cn) > Mount volume 3 > then enter volume name (default: /dev/rmt/0cn) <- insert second tape > Wrong volume (2) > Mount volume 3 > then enter volume name (default: /dev/rmt/0cn) 2 > Cannot open 2 > Mount volume 3 > then enter volume name (default: 2) > Cannot open 2 > Mount volume 3 > > After tape 1 in finished restoring, I eject the tape and insert the > second tape. > Now what should I do to continue tape restoring? Have you tried using 'R' option instead of 'r' option? I never tried it though. Snip from man ufsrestore R Resume restoring. ufsrestore requests a particular volume of a multi-volume set from which to resume a full restore (see the r function letter above). This allows ufsrestore to start from a checkpoint when it is interrupted in the middle of a full restore. Give it a shot! Nicole. |
| |||
| # /usr/sbin/ufsrestore Rf /dev/rmt/0cn open: No such file or directory cannot open symbol table file ./restoresymtable nicole_learning_solaris@yahoo.com (Nicole Harvey) wrote in message news:<38bff51c.0311101918.5464ef01@posting.google. com>... > > Have you tried using 'R' option instead of 'r' option? > > I never tried it though. > > Snip from man ufsrestore > > R Resume restoring. ufsrestore requests a particular > volume of a multi-volume set from which to resume a > full restore (see the r function letter above). This > allows ufsrestore to start from a checkpoint when it > is interrupted in the middle of a full restore. > > Give it a shot! > Nicole. |
| |||
| ma7777772@hotmail.com (TingChong) writes: ># /usr/sbin/ufsrestore Rf /dev/rmt/0cn >open: No such file or directory >cannot open symbol table file ./restoresymtable Presumably you use "r" for the first tape. Then use "R" to resume with subsequent tapes. The restoresymtable file should be written when using the first tape. |
| ||||
| ma7777772@hotmail.com (TingChong) wrote in message news:<451a2a55.0311110738.70489a43@posting.google. com>... > # /usr/sbin/ufsrestore Rf /dev/rmt/0cn > open: No such file or directory > cannot open symbol table file ./restoresymtable > > nicole_learning_solaris@yahoo.com (Nicole Harvey) wrote in message news:<38bff51c.0311101918.5464ef01@posting.google. com>... > > > > Have you tried using 'R' option instead of 'r' option? > > > > I never tried it though. > > > > Snip from man ufsrestore > > > > R Resume restoring. ufsrestore requests a particular > > volume of a multi-volume set from which to resume a > > full restore (see the r function letter above). This > > allows ufsrestore to start from a checkpoint when it > > is interrupted in the middle of a full restore. > > > > Give it a shot! > > Nicole. Have you done the first tape restore with the r switch and the second one with R switch? What version of solaris are you running? I see that you are using different volume numbers when you tried your restore. are you sure you are giving the same volume numbers. Have you tried listing the contents of the second tape using the t option of ufsrestore? restoresymtable is used during interactive restores. Isnt there any other error message after the restoresymtable msg. If there are any check the man pages for that error. Are you trying to copy file system to another or to copy filesystem to another machine. if yes and the two file sys are on the same machine ufsdump 0f - /dev/rdsk/c0t0d0s7(replace by your req ) | (cd /yourmountpoint ;ufsrestore xf -) If they are on two different machines ufsdump 0f - /dev/rdsk/c0t0d0s7(replace by your req ) \ | rsh hostname "(cd /yourmountpoint ; ufsrestore xf -)" you have to enable rsh for root snip from man ufsrestore on solaris 9 box f dump_file Use dump_file instead of /dev/rmt/0 as the file to restore from. Typically dump_file specifies a tape or diskette drive. If dump_file is specified as `-', ufsrestore reads from the standard input. This allows ufsdump(1M) and ufsrestore to be used in a pipeline to copy a file system: example# ufsdump 0f - /dev/rdsk/c0t0d0s7 \ | (cd /home;ufsrestore xf -) If the name of the file is of the form machine:device, the restore is done from the specified machine over the network using rmt(1M). Since ufsrestore is nor- mally run by root, the name of the local machine must appear in the /.rhosts file of the remote machine. If the file is specified as user@machine:device, ufsre- store will attempt to execute as the specified user on the remote machine. The specified user must have a .rhosts file on the remote machine that allows the user invoking the command from the local machine to access the remote machine. Nicole |