2011年6月1日水曜日

obs600-01 到着 初期バックアップ

現行のおうちルータとして活躍している、OpenMicroServer(oms400)からリプレースする自分用備忘メモを記録していきます。Debianリリースで、oms400をetchで使っていて、etch->lenny にしたあたりから、メインメモリが128MB では厳しくなってきたのと、リリースのおいてきぼりにならないよう、Debian 6.0 ("squeeze") — 現在の安定版リリース にしたい理由から、リプレースに至りました。

注文していた OpenBlockS 600Dが到着しました。
まずは開梱、火入れ、初期バックアップまでを行います。

新しい物をさわるときには、ワクワクします。

同梱の内容ブツです。

現行の Open Micro Server (oms400) の上に乗っけた画像です。二回り小さく見えます。






(1) コンソールをつないで、問題なく起動したのを確認して、rootで入ります。
root@squeeze:〜# head -4 /etc/apt/sources.list
deb http://ftp.jp.debian.org/debian squeeze main
deb-src http://ftp.jp.debian.org/debian squeeze main

deb http://security.debian.org/ squeeze/updates main

root@squeeze:〜# ifconfig eth0 192.168.1.29
root@squeeze:〜# route add default gw 192.168.1.28
root@squeeze:〜# echo "nameserver 192.168.1.28" > /etc/resolv.conf
root@squeeze:〜# ping -c 3 ftp.jp.debian.org
PING jp.cdn.araki.net (150.65.7.130) 56(84) bytes of data.
64 bytes from ftp.jaist.ac.jp (150.65.7.130): icmp_seq=1 ttl=238 time=33.6 ms
64 bytes from ftp.jaist.ac.jp (150.65.7.130): icmp_seq=2 ttl=238 time=35.4 ms
64 bytes from ftp.jaist.ac.jp (150.65.7.130): icmp_seq=3 ttl=238 time=34.0 ms

root@squeeze:〜# apt-get update
root@squeeze:〜# apt-get install dump
Reading package lists... Done
Building dependency tree        
Reading state information... Done
The following NEW packages will be installed:
  dump
0 upgraded, 1 newly installed, 0 to remove and 7 not upgraded.
Need to get 290 kB of archives.
After this operation, 745 kB of additional disk space will be used.
Get:1 http://ftp.jp.debian.org/debian/ squeeze/main dump powerpc 0.4b43-1 [290 kB]
Fetched 290 kB in 0s (438 kB/s)
unionfs: new lower inode mtime (bindex=0, name=debconf)
unionfs: new lower inode mtime (bindex=0, name=apt)
unionfs: new lower inode mtime (bindex=0, name=dpkg)
unionfs: new lower inode mtime (bindex=0, name=triggers)
Selecting previously deselected package dump.
(Reading database ... 8622 files and directories currently installed.)
Unpacking dump (from .../dump_0.4b43-1_powerpc.deb) ...
Processing triggers for man-db ...
fopen: Permission denied
Setting up dump (0.4b43-1) ...
update-alternatives: using /usr/sbin/rmt-dump to provide /usr/sbin/rmt (rmt) in auto mode.
root@squeeze:〜# ls -l /sbin/dump
-rwxr-xr-x 1 root root 190060 Jun 12  2010 /sbin/dump
root@squeeze:〜# 
(2) 別ホストに flashイメージ(ramファイルシステム)をバックアップ
root@tiger:RootGz# pwd                          [11] (11-06-01 Wed 14:13:37 PM)
/dsk/hda11/OBS600/RootGz/flash_2011_0601
# ssh obs600 '/sbin/dump 0usf 99999 - /dev/ram0' | bzip2 -c > ram0_2011_0601.dump.bz2
# ls -l ram0_2011_0601.dump.bz2
-rw-rw-r-- 1 root root 37483049 Jun  1 14:08 ram0_2011_0601.dump.bz2
(3) 念のため展開
# mkdir Root; cd Root
# bzip2 -dc ../ram0_2011_0601.dump.bz2 | restore rf -
root@tiger:Root# du -sh .; ls -F                [21] (11-06-01 Wed 14:17:28 PM)
116M    .
bin/   etc/   lost+found/  opt/             root/     srv/  usr/
boot/  home/  media/       proc/            sbin/     sys/  var/
dev/   lib/   mnt/         restoresymtable  selinux/  tmp/
root@tiger:Root#                                [22] (11-06-01 Wed 14:17:45 PM)
バックアップといいつつ、uImage.initrd.squeeze ユーザランドの解析研究用です。
--

0 件のコメント:

コメントを投稿