# mkfs.ext3 /dev/md0 mke2fs 1.27 (8-Mar-2002) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 125696 inodes, 250976 blocks 12548 blocks (5.00%) reserved for the super user First data block=0 8 block groups 32768 blocks per group, 32768 fragments per group 15712 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376 Writing inode tables: done Creating journal (4096 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 26 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. #
# mkdir /tmp/boot # mount /dev/md0 /tmp/boot kjournald starting. Commit interval 5 seconds EXT3 FS on md0, internal journal EXT3-fs: mounted filesystem with ordered data mode. # # df Filesystem 1k-blocks Used Available Use% Mounted on /dev/root.old 15351 13898 1453 91% / /dev/ram1 15360 24 15336 0% /mnt/ram /dev/md0 988088 16428 921468 2% /mnt/ram/boot # ls /tmp/boot lost+found #/boot は空。ここでリブートすると起動しなくなる。
# usb 1-1: new high speed USB device using ehci_platform and address 2 usb 1-1: configuration #1 chosen from 1 choice scsi2 : SCSI emulation for USB Mass Storage devices Vendor: WDC WD32 Model: WD-WCAMR1683855 Rev: 5J08 Type: Direct-Access ANSI SCSI revision: 02 SCSI device sdb: 625142448 512-byte hdwr sectors (320073 MB) sdb: Write Protect is off sdb: assuming drive cache: write through SCSI device sdb: 625142448 512-byte hdwr sectors (320073 MB) sdb: Write Protect is off sdb: assuming drive cache: write through sdb: sdb1 sdb2 sdb4 < sdb5 sdb6 > sd 2:0:0:0: Attached scsi disk sdb sd 2:0:0:0: Attached scsi generic sg1 type 0 #sdb として認識した
# mkdir /tmp/boot2 # mount /dev/sdb1 /tmp/boot2 # df Filesystem 1k-blocks Used Available Use% Mounted on /dev/root.old 15351 13898 1453 91% / /dev/ram1 15360 24 15336 0% /mnt/ram /dev/md0 988088 16428 921468 2% /mnt/ram/boot /dev/sdb1 988064 109812 878252 11% /mnt/ram/boot2 #
# (cd /tmp/boot2; tar cf - . )|(cd /tmp/boot ; tar xvf -) ./ ./initrd.buffalo tar: ./initrd.buffalo: time stamp 2008-07-22 16:23:07 is 22866522.872107 s in the future ./uImage.buffalo tar: ./uImage.buffalo: time stamp 2007-11-01 02:02:10 is 5265.737738 s in the future ./log.tgz tar: ./log.tgz: time stamp 2007-11-01 02:09:33 is 5708.724791 s in the future ./conf_save.tgz tar: ./conf_save.tgz: time stamp 2007-11-01 02:09:31 is 5706.695347 s in the future ./SATA1 tar: ./SATA1: time stamp 2008-09-05 22:04:18 is 26774993.694491 s in the future ./lost+found/ ./hddrootfs.buffalo.updated.done tar: ./hddrootfs.buffalo.updated.done: time stamp 2008-07-22 16:24:48 is 22866613.297815 s in the future ./conf_save.tgz.orig tar: ./conf_save.tgz.orig: time stamp 2007-11-01 00:44:45 is 610.296069 s in the future tar: .: time stamp 2007-11-01 02:09:31 is 5696.295625 s in the future #
# umount /tmp/boot # umount /tmp/boot2 #
# mkfs.xfs /dev/md1 mkfs.xfs: /dev/md1 appears to contain an existing filesystem (xfs). mkfs.xfs: Use the -f option to force overwrite. # mkfs.xfs -f /dev/md1 meta-data=/dev/md1 isize=256 agcount=8, agsize=156380 blks = sectsz=512 data = bsize=4096 blocks=1251040, imaxpct=25 = sunit=0 swidth=0 blks, unwritten=1 naming =version 2 bsize=4096 log =internal log bsize=4096 blocks=2560, version=1 = sectsz=512 sunit=0 blks realtime =none extsz=65536 blocks=0, rtextents=0 #
# mkdir /tmp/root # mount /dev/md1 /tmp/root XFS mounting filesystem md1 #
# mkdir /tmp/root2 # mount /dev/sdb2 /tmp/root2 XFS mounting filesystem sdb2 # (cd /tmp/root2; tar cf - .)|(cd /tmp/root; tar xvf -) : :
# umount /tmp/root # umount /tmp/root2 #
# mkswap /dev/md10 Setting up swapspace version 1, size = 1027993600 bytes #
BUFFALO INC. LinkStation series LS-WSGL678 login:きたー
RAID の様子を見てみる。
BUFFALO INC. LinkStation series LS-WSGL678 login: root root@LS-WSGL678:~# mdadm -E /dev/sda1 /dev/sda1: Magic : a92b4efc Version : 00.90.00 UUID : 2a77fe61:320d4f12:b6ba2e49:5ffb9013 Creation Time : Thu Nov 1 00:28:11 2007 Raid Level : raid1 Device Size : 1003904 (980.54 MiB 1028.00 MB) Array Size : 1003904 (980.54 MiB 1028.00 MB) Raid Devices : 2 Total Devices : 1 Preferred Minor : 0 Update Time : Thu Nov 1 00:46:15 2007 State : clean Active Devices : 1 Working Devices : 1 Failed Devices : 1 Spare Devices : 0 Checksum : aac6efbc - correct Events : 0.73 Number Major Minor RaidDevice State this 0 8 1 0 active sync /dev/sda1 0 0 8 1 0 active sync /dev/sda1 1 1 0 0 1 faulty removed root@LS-WSGL678:~# mdadm -E /dev/sda2 /dev/sda2: Magic : a92b4efc Version : 00.90.00 UUID : d48d213c:0d7668b6:bbeb660f:74f3102f Creation Time : Thu Nov 1 00:36:24 2007 Raid Level : raid1 Device Size : 5004160 (4.77 GiB 5.12 GB) Array Size : 5004160 (4.77 GiB 5.12 GB) Raid Devices : 2 Total Devices : 1 Preferred Minor : 1 Update Time : Thu Nov 1 00:49:14 2007 State : clean Active Devices : 1 Working Devices : 1 Failed Devices : 1 Spare Devices : 0 Checksum : 4aaaf925 - correct Events : 0.1147 Number Major Minor RaidDevice State this 0 8 2 0 active sync /dev/sda2 0 0 8 2 0 active sync /dev/sda2 1 1 0 0 1 faulty removed root@LS-WSGL678:~# mdadm -E /dev/sda5 /dev/sda5: Magic : a92b4efc Version : 00.90.00 UUID : 5ff62718:4b361669:2597d6c1:28cfaec3 Creation Time : Thu Nov 1 00:42:25 2007 Raid Level : raid1 Device Size : 1003904 (980.54 MiB 1028.00 MB) Array Size : 1003904 (980.54 MiB 1028.00 MB) Raid Devices : 2 Total Devices : 1 Preferred Minor : 10 Update Time : Thu Nov 1 00:42:38 2007 State : clean Active Devices : 1 Working Devices : 1 Failed Devices : 1 Spare Devices : 0 Checksum : 311fa8f5 - correct Events : 0.3 Number Major Minor RaidDevice State this 0 8 5 0 active sync /dev/sda5 0 0 8 5 0 active sync /dev/sda5 1 1 0 0 1 faulty removed root@LS-WSGL678:~#あとは、sdb をつないでミラーリングすればよい。
|
← スリープ機能 |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ LS-CL には Web 設定がある |