Sunday, September 8, 2013

Ufsdump and ufsrestore:


login as: root
Using keyboard-interactive authentication.
Password:
Last login: Sun Oct  1 02:35:10 2000 from 10.27.1.34
Sun Microsystems Inc.   SunOS 5.10      Generic January 2005
Sourcing //.profile-EIS.....
root@CRMQA #
root@CRMQA #
root@CRMQA #
root@CRMQA #
root@CRMQA #
root@CRMQA # df -kh
Filesystem             size   used  avail capacity  Mounted on
/dev/md/dsk/d10         30G   6.5G    23G    23%    /
/devices                 0K     0K     0K     0%    /devices
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
swap                    64G   1.6M    64G     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/platform/SUNW,Sun-Fire-T200/lib/libc_psr/libc_psr_hwcap1.so.1
                        30G   6.5G    23G    23%    /platform/sun4v/lib/libc_psr.so.1
/platform/SUNW,Sun-Fire-T200/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
                        30G   6.5G    23G    23%    /platform/sun4v/lib/sparcv9/libc_psr.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                    64G   144K    64G     1%    /tmp
swap                    64G    56K    64G     1%    /var/run
/dev/md/dsk/d32         49G    10G    39G    21%    /sapmnt
/dev/md/dsk/d31        148G    37G   110G    26%    /oracle
login as: root
Using keyboard-interactive authentication.
Password:
Last login: Sun Oct  1 02:35:10 2000 from 10.27.1.34
Sun Microsystems Inc.   SunOS 5.10      Generic January 2005
Sourcing //.profile-EIS.....
root@CRMQA #
root@CRMQA #
root@CRMQA #
root@CRMQA #
root@CRMQA #
root@CRMQA # df -kh
Filesystem             size   used  avail capacity  Mounted on
/dev/md/dsk/d10         30G   6.5G    23G    23%    /
/devices                 0K     0K     0K     0%    /devices
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
swap                    64G   1.6M    64G     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/platform/SUNW,Sun-Fire-T200/lib/libc_psr/libc_psr_hwcap1.so.1
                        30G   6.5G    23G    23%    /platform/sun4v/lib/libc_psr.so.1
/platform/SUNW,Sun-Fire-T200/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
                        30G   6.5G    23G    23%    /platform/sun4v/lib/sparcv9/libc_psr.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                    64G   144K    64G     1%    /tmp
swap                    64G    56K    64G     1%    /var/run
/dev/md/dsk/d32         49G    10G    39G    21%    /sapmnt
/dev/md/dsk/d31        148G    37G   110G    26%    /oracle
login as: root
Using keyboard-interactive authentication.
Password:
Last login: Sun Oct  1 02:35:10 2000 from 10.27.1.34
Sun Microsystems Inc.   SunOS 5.10      Generic January 2005
Sourcing //.profile-EIS.....
root@CRMQA #
root@CRMQA #
root@CRMQA #
root@CRMQA #
root@CRMQA #
root@CRMQA # df -n-------------------------------to check file system
/                  : ufs
/devices           : devfs
/system/contract   : ctfs
/proc              : proc
/etc/mnttab        : mntfs
/etc/svc/volatile  : tmpfs
/system/object     : objfs
/etc/dfs/sharetab  : sharefs
/platform/sun4v/lib/libc_psr.so.1: lofs
/platform/sun4v/lib/sparcv9/libc_psr.so.1: lofs
/dev/fd            : fd
/tmp               : tmpfs
/var/run           : tmpfs
/sapmnt            : ufs
/oracle            : ufs
root@CRMQA #

root@CRMQA # rsh 10.25.3.11 mt -f /dev/rmt/1 s ---------------------------------------to check tape inserted or not in tape drive
Vendor 'TANDBERG' Product 'TS400          ' tape drive:
   sense key(0x6)= Unit Attention   residual= 0   retries= 0
   file no= 0   block no= 0
root@CRMQA #

root@CRMQA # ufsdump -0uf 10.25.3.11:/dev/rmt/1cbn /oracle ------------------------------------------to start backup by using ufsdump -0uf
  DUMP: Date of this level 0 dump: October  1, 2000  2:42:54 AM IST
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping /dev/md/rdsk/d31 (CRMQA:/oracle) to 10.25.3.11:/dev/rmt/1cbn.
  DUMP: Mapping (Pass I) [regular files]
  DUMP: Mapping (Pass II) [directories]
  DUMP: Writing 32 Kilobyte records
  DUMP: Estimated 76775758 blocks (37488.16MB).
  DUMP: Dumping (Pass III) [directories]
  DUMP: Dumping (Pass IV) [regular files]
  DUMP: 12.26% done, finished in 1:11
  DUMP: 24.83% done, finished in 1:00
  DUMP: 37.26% done, finished in 0:50
  DUMP: 49.57% done, finished in 0:40
  DUMP: 61.82% done, finished in 0:30
  DUMP: 74.01% done, finished in 0:21
  DUMP: 86.21% done, finished in 0:11
  DUMP: 98.51% done, finished in 0:01
  DUMP: 76774910 blocks (37487.75MB) on 1 volume at 7878 KB/sec
  DUMP: DUMP IS DONE
  DUMP: Level 0 dump on October  1, 2000  2:42:54 AM IST

root@CRMQA # ufsdump -0uf 10.25.3.11:/dev/rmt/1cbn /sapmnt----------------------------where (10.25.3.11:/dev/rmt/1cbn==server IP:tape drive number)
  DUMP: Date of this level 0 dump: October  1, 2000  4:20:32 AM IST
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping /dev/md/rdsk/d32 (CRMQA:/sapmnt) to 10.25.3.11:/dev/rmt/1cbn.
  DUMP: Mapping (Pass I) [regular files]
  DUMP: Mapping (Pass II) [directories]
  DUMP: Writing 32 Kilobyte records
  DUMP: Estimated 21557438 blocks (10526.09MB).
  DUMP: Dumping (Pass III) [directories]
  DUMP: Dumping (Pass IV) [regular files]
  DUMP: 41.38% done, finished in 0:14
  DUMP: 84.81% done, finished in 0:03
  DUMP: 21557438 blocks (10526.09MB) on 1 volume at 7642 KB/sec
  DUMP: DUMP IS DONE
  DUMP: Level 0 dump on October  1, 2000  4:20:32 AM IST


--------------------------------------------------------------------Take duplicate section & check back up is running or not------------------------------------------------------------------------------------

iostat -xnctz
   tty         cpu
 tin tout  us sy wt id
   0    0   0  1  0 99
                    extended device statistics
    r/s    w/s   kr/s   kw/s wait actv wsvc_t asvc_t  %w  %b device
    0.0    0.3    0.4    2.3  0.0  0.0   15.1   16.0   0   0 d10
    0.0    0.3    0.2    2.3  0.0  0.0    0.0   15.7   0   0 d11
    0.0    0.3    0.2    2.3  0.0  0.0    0.0    9.5   0   0 d12
    0.0    0.0    0.0    0.0  0.0  0.0   15.3    9.4   0   0 d20
    0.0    0.0    0.0    0.0  0.0  0.0    0.0    9.7   0   0 d21
    0.0    0.0    0.0    0.0  0.0  0.0    0.0    9.1   0   0 d22
    0.0    0.0    0.0    0.5  0.0  0.0    1.1   11.2   0   0 d30
    0.0    0.0    0.0    0.5  0.0  0.0    0.0    9.8   0   0 d31
    0.0    0.0    0.0    0.5  0.0  0.0    0.0    7.6   0   0 d32
    0.0    0.0    0.0    0.0  0.0  0.0    2.8    5.1   0   0 d40
    0.0    0.0    0.0    0.0  0.0  0.0    0.0    5.1   0   0 d41
    0.0    0.0    0.0    0.0  0.0  0.0    0.0    5.8   0   0 d42
    0.0    0.0    0.9    0.0  0.0  0.0    0.0    2.1   0   0 d50
    0.0    0.0    0.5    0.0  0.0  0.0    0.0    2.1   0   0 d51
    0.0    0.0    0.5    0.0  0.0  0.0    0.0    2.0   0   0 d52
    0.0    0.0    0.9    0.0  0.0  0.0    0.0    2.1   0   0 d200
    0.2    0.6    0.2    3.0  0.0  0.0    0.0   16.0   0   1 c1t0d0
    0.2    0.0    0.5    0.0  0.0  0.0    0.0    0.1   0   0 c1t1d0
    0.2    0.3    0.3    2.8  0.0  0.0    0.0    5.6   0   0 c1t2d0
    0.2    0.0    0.5    0.0  0.0  0.0    0.0    0.1   0   0 c1t3d0
    0.0    0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 c0t0d0
    0.0    0.4    0.0   14.0  0.0  0.0    0.0    0.5   0   0 rmt/1--------------------------------------------data (14.0) should be increasing
root@PD20 #
root@PD20 #
root@PD20 #
root@PD20 # iostat -xnctz 5


===========================================RESTORATION PROCESS==========================================================
root@CRMQA # pwd
/
root@CRMQA #
root@CRMQA #
root@CRMQA # cd /oracle-------------------------------------------------go to specified dir
root@CRMQA #
root@CRMQA #
root@CRMQA #
root@CRMQA # ufsrestore -ivf 10.25.3.11:/dev/rmt/1n /oracle---------------------------start restoration
Verify volume and initialize maps
Media block size is 64
Dump   date: October  1, 2000  4:54:30 AM IST
Dumped from: the epoch
Level 0 dump of /oracle on CRMQA:/dev/md/dsk/d31
Label: none
Extract directories from tape
Initialize symbol table.
ufsrestore > ls
.:
       2 *./                 2074  R36/               2019  sap/
       2 *../                2007  client/            2075  script/
       4  CRQ/                  3  lost+found/        2018  sp13/
    2076  CRQ_Backup/        2011  oraInventory/      2010  stage/
ufsrestore > pwd
/
ufsrestore > cd /oracle
./oracle is not on volume
ufsrestore > cd CRQ
ufsrestore > ls
./CRQ:
       4  ./                         4185  .sapsrc_CRMQA.csh
       2 *../                        4181  .sapsrc_CRMQA.sh
    4203  .bash_history             29121  .ssh/
    4192  .cshrc                    29122  .sunw/
    4199  .cshrc.1                      5  102_64/
    4197  .dbenv.csh                 6985  buff_cache_advice.txt
    4195  .dbenv.sh                  1987  mirrlogA/
    4196  .dbenv_CRMQA.csh           1988  mirrlogB/
    4194  .dbenv_CRMQA.sh            1989  oraarch/
    4190  .j2eeenv.csh               1983  origlogA/
    4188  .j2eeenv.sh                1985  origlogB/
    4189  .j2eeenv_CRMQA.csh         2006  saparch/
    4187  .j2eeenv_CRMQA.sh          2004  sapbackup/
    4193  .login                     2005  sapcheck/
    4200  .login.1                   1991  sapdata1/
    4191  .profile                   1995  sapdata2/
    4198  .profile.1                 1998  sapdata3/
    4180  .sapenv.csh                1999  sapdata4/
    4178  .sapenv.sh                 1990  sapreorg/
    4179  .sapenv_CRMQA.csh          2001  saptrace/
    4177  .sapenv_CRMQA.sh           4201  startdb
    4186  .sapsrc.csh                4202  stopdb
    4184  .sapsrc.sh
ufsrestore >
ufsrestore > cd ..
ufsrestore > pwd
/
ufsrestore > add CRQ-------------------------------------------------------------------------------------------------
Make node ./CRQ
Make node ./CRQ/102_64
Make node ./CRQ/102_64/inventory
Make node ./CRQ/102_64/inventory/Queries21
Make node ./CRQ/102_64/inventory/Queries21/generalQueries
Make node ./CRQ/102_64/inventory/Queries21/generalQueries/10.1.0.2.0
Make node ./CRQ/102_64/inventory/Queries21/rgsQueries
Make node ./CRQ/102_64/inventory/Queries21/rgsQueries/10.1.0.2.0
Make node ./CRQ/102_64/inventory/Queries21/areasQueries
Make node ./CRQ/102_64/inventory/Queries21/areasQueries/10.2.0.1.0
Make node ./CRQ/102_64/inventory/Queries21/netQueries
Make node ./CRQ/102_64/inventory/Queries21/netQueries/10.2.0.1.0
Make node ./CRQ/102_64/inventory/Queries21/LangQueries
Make node ./CRQ/102_64/inventory/Queries21/LangQueries/1.3.6.4
Make node ./CRQ/102_64/inventory/Queries21/ClusterQueries
Make node ./CRQ/102_64/inventory/Queries21/ClusterQueries/10.2.0.1.0
Make node ./CRQ/102_64/inventory/Queries21/SIDQueries
Make node ./CRQ/102_64/inventory/Queries21/SIDQueries/1.2.7
Make node ./CRQ/102_64/inventory/Queries21/globalVarQueries
Make node ./CRQ/102_64/inventory/Queries21/globalVarQueries/2.1.0.4.1
Make node ./CRQ/.sunw/pkcs11_softtoken/private
ufsrestore > extract --------------------------------------------------------------------------------------------- for extract data
Extract requested files
You have not read any volumes yet.
Unless you know which volume your file(s) are on you should start
with the last volume and work towards the first.
Specify next volume #: 1----------------------------------------------------------------------------give 1 & restoration start-------------
extract file ./CRQ/.sapenv_CRMQA.sh
extract file ./CRQ/.sapenv.sh
extract file ./CRQ/.sapenv_CRMQA.csh
extract file ./CRQ/.sapenv.csh
extract file ./CRQ/.sapsrc_CRMQA.sh
extract file ./CRQ/.sapsrc.sh
extract file ./CRQ/.sapsrc_CRMQA.csh
extract file ./CRQ/.sapsrc.csh

No comments:

Post a Comment