リカバリーディスクは作成出来なかったのですが、このまま止めてしまうのも勿体無いのでできるところまでやってみます
Install Symantec System Recovery 2013 Linux Edition on CentOS 6.5
http://www.rootlinks.net/2014/03/20/install-symantec-system-recovery-2013-linux-edition-on-centos-6-5/
Creating a Symantec Recovery Disk on CentOS 6.5
http://www.rootlinks.net/2014/03/21/creating-a-symantec-recovery-disk-on-centos-6-5/
ただ、厳密な検証には成らないので雰囲気だけでも(^^;;
Symantec System Recovery 2013 Linux Editionを使ってのバックアップには単体バックアップと増分バックアップがあります。さらにバックアップはパーティション単位でのバックアップになります。ファイル、ディレクトリ単位でのバックアップはできないので注意が必要です
バックアップを考慮してパーティション構成を考える必要があります
今回は取り敢えずバックアップをとるってことで単体バックアップを実行してみます。動くかな…
バックアップ先はnfsでマウントした領域に保存します
- マウントポイント作成
- nfsマウント
- バックアップディスクの確認
- 単体バックアップ
1 |
[root@co65 ~]# mkdir /backup |
1 2 3 4 5 6 7 8 9 |
[root@co65 ~]# mount -t nfs freenas9.rootlinks.net:/mnt/zfs/nfs /backup [root@co65 ~]# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/vg_co65-lv_root 51606140 4204060 44780640 9% / tmpfs 444332 228 444104 1% /dev/shm /dev/sda1 495844 34866 435378 8% /boot /dev/mapper/vg_co65-lv_home 253775492 2595240 238289116 2% /home /dev/sr0 4363088 4363088 0 100% /media/CentOS_6.5_Final freenas9.rootlinks.net:/mnt/zfs/nfs 5016563840 49567424 4966996416 1% /backup |
今回の検証ホストは/dev/sda1が/boot, /dev/sda2がLVMです
1 2 3 4 5 6 7 8 9 10 11 12 |
[root@co65 ~]# symsr -info disk Warning: Application license will expire on Mon May 19 16:58:27 2014. MBR disk /dev/sda: 0 Ext4 /dev/sda1 /boot/ (500 MB total - 49.8 MB used) 1 Unknown /dev/sda2 (298 GB) 2 empty segment (344 KB) LVM disk /dev/mapper/vg_co65-lv_root: 0 Ext4 /dev/mapper/vg_co65-lv_root / (50 GB total - 4.75 GB used) LVM disk /dev/mapper/vg_co65-lv_swap: 0 Linux Swap /dev/mapper/vg_co65-lv_swap (1.72 GB total - 4 KB used) LVM disk /dev/mapper/vg_co65-lv_home: 0 Ext4 /dev/mapper/vg_co65-lv_home /home/ (246 GB total - 6.33 GB used) |
/boot(/dev/sda1)のバックアップ。バックアップ先フォルダのみ指定で、フォルダが無ければ作成してくれます
1 2 3 4 5 6 7 8 9 10 |
[root@co65 ~]# symsr -b /dev/sda1 -d /backup/bk_test/ Warning: Application license will expire on Mon May 19 16:58:27 2014. Analyzing the storage management stack Creating volume snapshots Copying volume data Closing recovery point 100% [==============================================================] Finished [root@co65 ~]# ls -l /backup/bk_test/ total 70436 -rw-r--r-- 1 root root 72503559 Mar 21 12:00 boot_000.v2i |
/boot(/dev/sda1)のバックアップ。バックアップファイルを指定します
1 2 3 4 5 6 7 8 9 10 11 |
[root@co65 ~]# symsr -b /dev/sda1 -d /backup/bk_test/co65_sda1 Warning: Application license will expire on Mon May 19 16:58:27 2014. Analyzing the storage management stack Creating volume snapshots Copying volume data Closing recovery point 100% [==============================================================] Finished [root@co65 ~]# ls -l /backup/bk_test/ total 120854 -rw-r--r-- 1 root root 72503559 Mar 21 12:00 boot_000.v2i -rw-r--r-- 1 root root 52024622 Mar 21 12:07 co65_sda1.v2i |
LVM /dev/mapper/vg_co65-lv_rootのバックアップ
1 2 3 4 5 6 7 8 9 10 11 |
[root@co65 ~]# symsr -b /dev/mapper/vg_co65-lv_root -d /backup/bk_test/ Warning: Application license will expire on Mon May 19 16:58:27 2014. Analyzing the storage management stack Creating volume snapshots Copying volume data 100% [==============================================================] Finished [root@co65 ~]# ls -l /backup/bk_test/ total 2439285 -rw-r--r-- 1 root root 72503559 Mar 21 12:00 boot_000.v2i -rw-r--r-- 1 root root 52024622 Mar 21 12:07 co65_sda1.v2i -rw-r--r-- 1 root root 2445467003 Mar 21 12:21 system_000.v2i |
LVM /dev/mapper/vg_co65-lv_homeのバックアップ
1 2 3 4 5 6 7 8 9 10 11 12 13 |
[root@co65 ~]# symsr -b /dev/mapper/vg_co65-lv_home -d /backup/bk_test/ Warning: Application license will expire on Mon May 19 16:58:27 2014. Analyzing the storage management stack Creating volume snapshots Copying volume data Closing recovery point 100% [==============================================================] Finished [root@co65 ~]# ls -l /backup/bk_test/ total 2973617 -rw-r--r-- 1 root root 72503559 Mar 21 12:00 boot_000.v2i -rw-r--r-- 1 root root 52024622 Mar 21 12:07 co65_sda1.v2i -rw-r--r-- 1 root root 567657124 Mar 21 12:34 home_000.v2i -rw-r--r-- 1 root root 2445467003 Mar 21 12:21 system_000.v2i |
一応エラーも無くバックアップは完了しています。LVMも大丈夫そうです
試しにパーティションでは無い/etcのバックアップを行ってみます
1 2 3 4 5 |
[root@co65 ~]# symsr -b /etc -d /backup/bk_test/co65_etc Warning: Application license will expire on Mon May 19 16:58:27 2014. Error E0A20019: Backup Failed. Warning A0A20017: The command specified does not contain a valid backup source. Error E0A20002: The source specified (/etc) does not exist. |
バックアップ元が存在しないとのエラーが表示されてしまいました
ここでswapパーティションもバックアップする必要があるんでしょうか???
リストアする時に必要になるような気もしますがドキュメントには何も書かれていないのです
バックアップに関すると思われるオプションをヘルプから抜き出してみました
圧縮や暗号化、パスワードなど一通りのオプションが利用できます
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
Name: symsr Description: Back up or restore a computer. Synopsis: symsr [ACTION]... [OPTION]... Actions: A group of choices, only one of which can be used at a time. -b, -backup <device> Performs a backup of the specified device and creates a recovery point at the specified location. Options: Options are used with actions. Different options exist for each action. -cmp, -compress, The compression level you want to apply -compression <level> to the backup image. Valid compression levels include None, Standard, Medium, and High. -desc, Use this option to provide a description -description <description> of the backup image. -d, -dest, The file or folder where the image is -destination <file> created, or the device where the image is to be restored. -ignore-bad-sectors This option lets you run a backup even if there are bad sectors on the hard disk. Although most drives do not have bad sectors, the potential for problems increases during the lifetime of the hard disk. If you have an older hard drive, you should use this option. -p, -pwd, Use this option to specify a password -password <password> for the image file when creating a backup or to supply a password for a password-protected image when restoring. -prefix, Lets you specify a prefix for the image -file-prefix <string> file name. The prefix is used when the destination is not specified or is a directory. -raw, -raw-image This option instructs symsr to not use smart sector copy. Instead, the entire volume is captured. -span, -split, Use this option to divide the backup -span-size <number> image file into separate chunks. The number is the chunk size in x 500 MB, and cannot be negative. -use-aes-encryption <level> The encryption level you want to apply to the backup image. Valid encryption levels include high (256 bit), medium (192 bit), and standard (128 bit). -verify Verify the image after it is created or before it is restored. |