[ Home  |  FAQ-Related Q&As  |  General Q&As  |  Answered Questions ]


    Search the Q&A Archives


...restore File System when using Disk Suite 4.2.1? ...

<< Back to: FAQ: Sun Computer Administration Frequently Asked Questions

Question by maurorn
Submitted on 8/21/2003
Related FAQ: FAQ: Sun Computer Administration Frequently Asked Questions
Rating: Rate this question: Vote
How to restore File System when using Disk Suite 4.2.1?

Hi.
I have a Sunfire 280R with Solaris 8 installed and I needed to perform
a file system backup and to be ready for restoring if necessary.

I've already used UFSDUMP for File System BACKUP and UFSRESTORE for File
System recover and it worked, but at that time I was using a single disk
in a ULTRA 10.

Now, in a Sunfire 280R I have 2 internal disks mirrored with Disk Suite 4.2.1.

I would like to know how to restore from a UFSDUMP previously done using the
file system that I backed up.

Below is the instruction that I performed for File System Backup.

Thanks for your help.

******************************************************************************

As root:

root@voucher1 # format

AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000020373e94cd,0
       1. c1t1d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000020373e9536,0
Specify disk (enter its number): 0

Total disk cylinders available: 24620 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       0 -  1451        2.00GB    (1452/0/0)   4194828
  1       swap    wu    1452 -  2903        2.00GB    (1452/0/0)   4194828
  2     backup    wm       0 - 24619       33.92GB    (24620/0/0) 71127180
  3        usr    wm    2904 - 23870       28.88GB    (20967/0/0) 60573663
  4 unassigned    wm   23871 - 24596        1.00GB    (726/0/0)    2097414
  5        usr    wm   24597 - 24604       11.29MB    (8/0/0)        23112
  6 unassigned    wm       0                0         (0/0/0)            0
  7 unassigned    wm   24605 - 24612       11.29MB    (8/0/0)        23112


Specify disk (enter its number)[0]: 1

Total disk cylinders available: 24620 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       0 -  1451        2.00GB    (1452/0/0)   4194828
  1       swap    wu    1452 -  2903        2.00GB    (1452/0/0)   4194828
  2     backup    wm       0 - 24619       33.92GB    (24620/0/0) 71127180
  3        usr    wm    2904 - 23870       28.88GB    (20967/0/0) 60573663
  4 unassigned    wm   23871 - 24596        1.00GB    (726/0/0)    2097414
  5        usr    wm   24597 - 24604       11.29MB    (8/0/0)        23112
  6 unassigned    wm       0                0         (0/0/0)            0
  7 unassigned    wm   24605 - 24612       11.29MB    (8/0/0)        23112

root@voucher1 # df -k
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/md/dsk/d20      2053605  204340 1787657    11%    /
/dev/md/dsk/d40      29814484  815973 28700367   3%    /usr
/proc                      0       0       0     0%    /proc
fd                         0       0       0     0%    /dev/fd
mnttab                     0       0       0     0%    /etc/mnttab
swap                 2872824      16 2872808     1%    /var/run
swap                 2872872      64 2872808     1%    /tmp
/dev/md/dsk/d50      1016122    7443  947712     1%    /opt
/dev/md/dsk/d60        10171      11    9143     1%    /usr/local/commonvoucher/var/alarm


-> Booting in single user mode:

ok boot -s

root@voucher1 # mt -f /dev/rmt/0 status

root@voucher1 # ufsdump -0cf /dev/rmt/0cn /
root@voucher1 # ufsdump -0cf /dev/rmt/0cn /usr
root@voucher1 #  ufsdump -0cf /dev/rmt/0cn /opt
root@voucher1 # ufsdump -0cf /dev/rmt/0cn /usr/local/commonvoucher/var/alarm

root@voucher1 # mt -f /dev/rmt/0 status
HP DDS-4 DAT (Sun) tape drive:
   sense key(0x0)= No Additional Sense   residual= 0   retries= 0
   file no= 4   block no= 0

-> I performed a new backup in another tape (for security reason)

I changed the DDS TAPE:

root@voucher1 # ufsdump -0cf /dev/rmt/0cn /dev/md/dsk/d20
root@voucher1 # ufsdump -0cf /dev/rmt/0cn /dev/md/dsk/d40
root@voucher1 # ufsdump -0cf /dev/rmt/0cn /dev/md/dsk/d50
root@voucher1 # ufsdump -0cf /dev/rmt/0cn /dev/md/dsk/d60

root@voucher1 # mt -f /dev/rmt/0 status
HP DDS-4 DAT (Sun) tape drive:
   sense key(0x0)= No Additional Sense   residual= 0   retries= 0
   file no= 4   block no= 0



Your answer will be published for anyone to see and rate.  Your answer will not be displayed immediately.  If you'd like to get expert points and benefit from positive ratings, please create a new account or login into an existing account below.


Your name or nickname:
If you'd like to create a new account or access your existing account, put in your password here:
Your answer:

FAQS.ORG reserves the right to edit your answer as to improve its clarity.  By submitting your answer you authorize FAQS.ORG to publish your answer on the WWW without any restrictions. You agree to hold harmless and indemnify FAQS.ORG against any claims, costs, or damages resulting from publishing your answer.

 

FAQS.ORG makes no guarantees as to the accuracy of the posts. Each post is the personal opinion of the poster. These posts are not intended to substitute for medical, tax, legal, investment, accounting, or other professional advice. FAQS.ORG does not endorse any opinion or any product or service mentioned mentioned in these posts.

 

<< Back to: FAQ: Sun Computer Administration Frequently Asked Questions


[ Home  |  FAQ-Related Q&As  |  General Q&As  |  Answered Questions ]

© 2008 FAQS.ORG. All rights reserved.