備份的實作演練…







在 CentOS 5.2 下安裝 mondo-2.2.6-1、mindi-2.0.3-1,將系統備份在 CD-R (700MB) 裡,在 2.6 kernel  的作業系統下,需指定 CD-R(W) 裝置:



[root@jnt2 ~]# mondoarchive -Oc 48 -s 700m -d /dev/cdrom

Initializing...

See /var/log/mondoarchive.log for details of backup run.

Checking sanity of your Linux distribution

Done.

...

...

======= Mondo 的部份完成後,將自動進行 mindi 任務==============

---evalcall---E---

---evalcall---1---      Dividing filelist into sets

---evalcall---2--- TASK:  [********************]  99% done;  0:00 to go

---evalcall---E---

Your backup will occupy approximately four media.

Done.

Copying Mondo's core files to the scratch directory

Done.

Calling MINDI to create boot+data disks

Your boot loader is GRUB and it boots from /dev/sda

Waiting for external binary to start



Boot+data disks were created OK

Done.

Preparing to archive your data

Done.

Archiving regular files to media

Archiving regular files

---progress-form---1--- I am backing up your live filesystem now.

---progress-form---2--- Please wait.

...

...

...

---progress-form---1--- I am backing up your live filesystem now.

---progress-form---2--- CDR 2: [***.................] 13% used

---progress-form---3--- Please wait. This may take a couple of hours.

---progress-form---E---

---progress-form---4--- TASK:  [**********..........]  48% done; 11:22 to go

---progress-form---1--- I am backing up your live filesystem now.

---progress-form---2--- CDR 2: [***.................] 13% used

---progress-form---3--- Please wait. This may take a couple of hours.

---progress-form---E---

---progress-form---4--- TASK:  [**********..........]  48% done; 11:26 to go

== CD-R 退出,置入第二片後,會自動繼續 ===

---progress-form---1--- I am backing up your live filesystem now.

---progress-form---2--- CDR 3: [******..............] 28% used

---progress-form---3--- Please wait. This may take a couple of hours.

---progress-form---E---

---progress-form---4--- TASK:  [********************]  99% done;  0:05 to go

---progress-form---1--- I am backing up your live filesystem now.

---progress-form---2--- CDR 3: [******..............] 28% used

---progress-form---3--- Please wait. This may take a couple of hours.

---progress-form---E---

---progress-form---4--- TASK:  [********************] 100% done;  0:00 to go

Your regular files have been archived successfully.

Done.

Archiving large files to media

I am now backing up all large files.

---progress-form---1--- I am now backing up all large files.

---progress-form---2--- Please wait. This may take some time.

---progress-form---3---

---progress-form---E---

---progress-form---4--- TASK:  [*...................]   1% done;  0:00 to go

---progress-form---1--- I am now backing up all large files.

---progress-form---2--- CDR 3: [******..............] 29% used

---progress-form---3--- Please wait. This may take some time.

---progress-form---E---

---progress-form---4--- TASK:  [*...................]   1% done;  0:00 to go

=====第二片退出,但程式仍動作著,置入第三片==========

---evalcall---1---        Making an ISO (CDR #3)

---evalcall---2--- TASK:  [********************]  97% done;  0:05 to go

---evalcall---E---

---evalcall---1---        Making an ISO (CDR #3)

---evalcall---2--- TASK:  [********************]  98% done;  0:03 to go

---evalcall---E---

Making an ISO (CDR #3)...OK

Done.

Done.

Backup and/or verify ran to completion. Everything appears to be fine.

/var/cache/mindi/mondorescue.iso, a boot/utility CD, is available if you want it

Data archived OK.

Mondoarchive ran OK.

See /var/log/mondoarchive.log for details of backup run.

Execution run ended; result=0

Type 'less /var/log/mondoarchive.log' to see the output log

[root@jnt2 proc]#

===================完成========================



整個 6.2G 左右的系統,用去三片 CD-R。



備份時的 df 狀態:

[root@jnt2 ~]# df

Filesystem           1K-blocks      Used Available Use% Mounted on

/dev/mapper/VolGroup00-LogVol00

300687608   6284252 278882796   3% /

/dev/sda1               101086     24532     71335  26% /boot

tmpfs                  1669548         0   1669548   0% /dev/shm

/dev/shm                358400         0    358400   0% /mondo.tmp.CyJBSg/tmpfs



備份完成後的 df 狀態:

[root@jnt2 log]# df

Filesystem           1K-blocks      Used Available Use% Mounted on

/dev/mapper/VolGroup00-LogVol00

300687608   5672560 279494488   2% /

/dev/sda1               101086     24532     71335  26% /boot

tmpfs                  1669548         0   1669548   0% /dev/shm

[root@jnt2 log]#



.mondoarchive.log

你可以在 /var/log/mondoarchive.log 裡查看備份的細節,除了備份起始與結束時間:



[root@jnt2 log]# grep -i time mondoarchive.log

Time started: Tue Sep  9 13:45:18 2008



Time finished: Tue Sep  9 14:28:48 2008



之外,mondoarchive.log 還會列出它所偵測到的掛載點



-------------

mount result:

-------------

/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)

proc on /proc type proc (rw)

sysfs on /sys type sysfs (rw)

devpts on /dev/pts type devpts (rw,gid=5,mode=620)

/dev/sda1 on /boot type ext3 (rw)

tmpfs on /dev/shm type tmpfs (rw)

none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)

sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)

/dev/shm on /mondo.tmp.CyJBSg/tmpfs type tmpfs (rw,size=350m)



系統已安裝模組



-------------

lsmod result:

-------------

Module                  Size  Used by

loop                   48977  0

vfat                   46401  0

msdos                  42689  0

fat                    85873  2 vfat,msdos

i915                   57665  2

drm                   115689  3 i915

autofs4                57289  2

hidp                   83521  2

rfcomm                104809  0

l2cap                  89281  10 hidp,rfcomm

bluetooth             118597  5 hidp,rfcomm,l2cap

sunrpc                198025  1

cpufreq_ondemand       42449  2

dm_multipath           52945  0

video                  53197  0





以及 fatab 等等系統建置的相關組態。



MondoRescue 官方網站:http://www.mondorescue.org/
創作者介紹
創作者 nicaliu 的頭像
nicaliu

尼卡.Nica

nicaliu 發表在 痞客邦 留言(0) 人氣()