1. Amanda
1.1. amrestore の練習
amandaサーバにてテープDailySet13をマウントして、サーバhogeのdumpイメージを/amanda/hoge-homeに取り出します。$ amrestore -p /dev/rst0 hoge home > /amanda/hoge-home amrestore: 0: skipping start of tape: date 20050314 label DailySet13 amrestore: 1: skipping foobar._.20050314.1 amrestore: 2: restoring hoge._home.20050314.1 amrestore: 3: reached end of information
次にサーバhogeにhoge-homeをコピーしたあとxfsrestoreを対話モードで実行
/home を unmount してから作業しなかったためかこの後 linux-kernel 2.6.10 はpanicしました。これを参考に作業される方は unmout してからxfsrestoreするのがお勧めです。
# xfsrestore -i -f hoge-home /home対話モードに入ったら以下の操作を行う
xfsrestore: using file dump (drive_simple) strategy
xfsrestore: version 2.2.24 (dump format 3.0) - Running single-threaded
xfsrestore: searching media for dump
xfsrestore: examining media file 0
xfsrestore: dump description:
xfsrestore: hostname: hoge
xfsrestore: mount point: /home
xfsrestore: volume: /dev/vg/home3
xfsrestore: session time: Mon Mar 14 02:50:25 2005
xfsrestore: level: 1
xfsrestore: session label: ""
xfsrestore: media label: ""
xfsrestore: file system id: ad375f9b-c159-427d-8e42-0c96b8995400
xfsrestore: session id: 1c5ec43d-69fd-405a-801c-d4aea47cb82e
xfsrestore: media id: ee03a281-9d1e-459b-99e8-04c8930ffce4
xfsrestore: using online session inventory
xfsrestore: searching media for directory dump
xfsrestore: reading directories
xfsrestore: 192 directories and 1853 entries processed
xfsrestore: directory post-processing
========================== subtree selection dialog ==========================
the following commands are available:
pwd
ls [ <path> ]
cd [ <path> ]
add [ <path> ]
delete [ <path> ]
extract
quit
help
-> cd iyoda/.PyDS/var
-> add aggregator.data
-> extract
--------------------------------- end dialog ---------------------------------
xfsrestore: restoring non-directory files
xfsrestore: restore complete: 161 seconds elapsed
xfsrestore: Restore Status: SUCCESS
