Error using usfdump for backup & restore ?


 
Thread Tools Search this Thread
Operating Systems Solaris Error using usfdump for backup & restore ?
# 1  
Old 06-07-2008
Error using usfdump for backup & restore ?

Hello buddy,

I used usfbackup command but error after full backup Solaris 5.5.1
/dev/c0t3d0s0 /
/dev/c0t3d0s6 /usr

I get error when restart after complete full backup
Can't load the root file system
Type 'go' to resume

***FULL MY STORY***

================/etc/vfstab========================================
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr ufs 1 yes -
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/dsk/c0t3d0s1 - - swap - no -
/dev/dsk/c0t3d0s0 /dev/rdsk/c0t3d0s0 / ufs 1 no -
/dev/dsk/c0t3d0s6 /dev/rdsk/c0t3d0s6 /usr ufs 1 no -
/dev/dsk/c0t2d0s0 /dev/rdsk/c0t2d0s0 /tmp/backup ufs 2 yes -
/dev/dsk/c0t2d0s6 /dev/rdsk/c0t2d0s6 /tmp/backup/usr ufs 2 yes -

=========================c0t3d0(running)===========================
partition> print
Current partition table (original):
Total disk cylinders available: 5038 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 127 220.50MB (128/0/0) 451584
1 swap wu 128 - 261 230.84MB (134/0/0) 472752
2 backup wu 0 - 5037 8.48GB (5038/0/0) 17774064
3 unassigned wm 262 - 2639 4.00GB (2378/0/0) 8389584
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 usr wm 2640 - 3234 1.00GB (595/0/0) 2099160
7 unassigned wm 3235 - 5035 3.03GB (1801/0/0) 6353928

==========================c0t2d0(backup)=============================
partition> print
Current partition table (original):
Total disk cylinders available: 2733 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 336 250.12MB (337/0/0) 512240
1 swap wu 27 - 363 230.84MB (134/0/0) 512240
2 backup wu 0 - 2732 8.48GB (5038/0/0) 4154160
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 usr wm 68 - 2089 1.47GB (2022/0/0) 3073440
7 unassigned wm 105 - 2732 1.90GB (2628/0/0) 3994560

***************************************
* PROCEDURE TO BACKUP *
***************************************
#init s
#newfs /dev/rdsk/c0t2d0s0
#mkdir /tmp/backup
#mount /dev/rdsk/c0t2d0s0 /tmp/backup
#ufsdump f0 - /|(cd /tmp/backup;ufsrestore xvf -)
.................
.................
DUMP: DUMP IS DONE
extact file /var/sadm/pkg/SUNWxwfnt/pkginfo
Add links
Set directory mode, owner, and times.
Set owner/mode for '.' ? [yn] y
#

#mount /dev/rdsk/c0t2d0s6 /tmp/backup/usr
#ufsdump f0 - /usr|(cd /tmp/backup/usr;ufsrestore xvf -)

Install bootblock
#cd /tmp/slide0/usr/platform/'uname -m'/lib/fs/ufs
#installboot bootblk /dev/rdsk/c0t2d0s0

*************************************
* ERROR AFTER BACKUP *
*************************************
#ls /tmp/backup/
/tmp/backup/var: I/O error
/tmp/backup/platform: I/O error
/tmp/backup/devices: I/O error

Restart and boot
/Kernel/fs/usf non-zero sect addr in input file
ufs error reading sectins
Can't load the root file system
Type 'go' to resume
Type help for more information


What is wrong ?
Please help me to make backup OS to spare.

Thanks you and best regards,
# 2  
Old 06-10-2008
Quote:
Originally Posted by posky
==========================c0t2d0(backup)=============================
partition> print
Current partition table (original):
Total disk cylinders available: 2733 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 336 250.12MB (337/0/0) 512240
1 swap wu 27 - 363 230.84MB (134/0/0) 512240
2 backup wu 0 - 2732 8.48GB (5038/0/0) 4154160
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 usr wm 68 - 2089 1.47GB (2022/0/0) 3073440
7 unassigned wm 105 - 2732 1.90GB (2628/0/0) 3994560
Your partitions are all wrong. Slice 1 overlaps slice 0; which means that your root filesystem will get corrupted as soon as the system boots up.
Slice 6 *also* overlaps 0 *and* 1, so your root filesystem is already corrupted when you do your ufsrestore.

Fix your slices on the destination disk and it should work fine.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Backup / Restore

Hi, I need to back up a RH file system (96G). The files are oracle .dbf format some of which are 5G in size. I know that tar has got a size restriction of 2G so I cannot use this. Can anyone recommend an alternative way of backuping up this FS? I have been looking at dump but this... (6 Replies)
Discussion started by: Duffs22
6 Replies

2. Shell Programming and Scripting

Backup & restore Gnome Desktop and all settings in Gnome

Hi I'm looking for scripts to backup & restore Gnome Desktop and all settings in Gnome. (0 Replies)
Discussion started by: ccc
0 Replies

3. AIX

Backup and restore

Hi experts, i got a question. i have a production server with two Volume Group(VG) which are rootvg and datavg. Both of these VGs are 256 PP SIZE. On Disaster Recovery Server (DR server) contains two empty hardisks for restoring rootvg and datavg from production server. This two hardisks are... (7 Replies)
Discussion started by: polar
7 Replies

4. UNIX for Advanced & Expert Users

imap & rsync - doing backup & restore

Hi ALL... I have an IMAP server & I have setup rsync to copy all mailboxes (MailDir) to a remote backup machine. rsync is working fine and is copying my files. I need some advice on how to restore a particular mailbox when a user makes a request assuming she has has deleted an important... (1 Reply)
Discussion started by: coolatt
1 Replies

5. Shell Programming and Scripting

how to restore backup when getting an error message

hi, Please tell me, how to restore backup to normal location in shell scripting while deployment script is getting an error. Thanks (2 Replies)
Discussion started by: bcb
2 Replies

6. AIX

backup & restore a volume group

Dear All, I would like to ask about saving & restoring a user defined volume group. i have a user defined volume group, named as datavg. i want to save it & to restore it into different size of physical volume. currently, datavg consist of 4 pv, three fisrt pv size are 100GB & one pv size is... (1 Reply)
Discussion started by: donybangetgitu
1 Replies

7. SCO

SCO 6. Backup & Restore from USB

Finaly got usb working on sco6. If anyone need help with that just ask. My final goal is to able to do a complete system backup/restore to/from usb. The problems I need help with 1. Can't cpio to usb device. Getting an error message device not found 2. When booted from sco6 emergency... (3 Replies)
Discussion started by: miles556
3 Replies

8. HP-UX

hp unix backup&restore

Dear frnds, i am going to use hp-ux11i first time, actually migrated from true64unix(digital), Now confused with the backup and restore procedures, i was using vdump and vrestore in that which was really much comfortable.could you suggest which is best type backup(similar to vdump and vrestore)... (8 Replies)
Discussion started by: jestinabel
8 Replies

9. AIX

Backup and restore

I have several H80 machines, all with AIX 4.3.3. On these machines I have mksysb running for rootvg backups and savevg for non-rootvg backups. I'm trying to get a list of files on the tapes, but I can't seem to do it with tar for the mksysb images. I keep getting the directory checksum errors?... (3 Replies)
Discussion started by: uXion
3 Replies

10. Solaris

Backup / restore

Hi.... everyone could help me to understand how to do a backup of my servers .. operating systems is sun solaris 8 . I have some question about .... 1) Is better backup phisical disk or partition ??? i sow the command is ufsdump 0cfu /expbck/bcksunver/c0t0d0s5 dev/dsk/c0t0d0s5 to... (4 Replies)
Discussion started by: tt155
4 Replies
Login or Register to Ask a Question