ちょっと実験。
root@LS-WSXLE75:~# tail -f /var/log/messages : : Nov 20 22:45:46 LS-WSXLE75 kernel: usb 1-1: new high-speed USB device number 2 using ehci_marvell Nov 20 22:45:46 LS-WSXLE75 kernel: scsi2 : usb-storage 1-1:1.0 Nov 20 22:45:47 LS-WSXLE75 kernel: scsi 2:0:0:0: Direct-Access ViPowER VP-89118(SD1) 2.10 PQ: 0 ANSI: 4 Nov 20 22:45:47 LS-WSXLE75 kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0 Nov 20 22:45:47 LS-WSXLE75 kernel: sd 2:0:0:0: [sdb] 78165360 512-byte logical blocks: (40.0 GB/37.2 GiB) Nov 20 22:45:47 LS-WSXLE75 kernel: sd 2:0:0:0: [sdb] Write Protect is off Nov 20 22:45:47 LS-WSXLE75 kernel: sd 2:0:0:0: [sdb] No Caching mode page present Nov 20 22:45:47 LS-WSXLE75 kernel: sd 2:0:0:0: [sdb] Assuming drive cache: write through Nov 20 22:45:47 LS-WSXLE75 kernel: sd 2:0:0:0: [sdb] No Caching mode page present Nov 20 22:45:47 LS-WSXLE75 kernel: sd 2:0:0:0: [sdb] Assuming drive cache: write through Nov 20 22:45:48 LS-WSXLE75 kernel: sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6 Nov 20 22:45:48 LS-WSXLE75 kernel: sd 2:0:0:0: [sdb] No Caching mode page present Nov 20 22:45:48 LS-WSXLE75 kernel: sd 2:0:0:0: [sdb] Assuming drive cache: write through Nov 20 22:45:48 LS-WSXLE75 kernel: sd 2:0:0:0: [sdb] Attached SCSI disk
root@LS-WSXLE75:~# mdadm --assemble -scan mdadm: /dev/md/22 has been started with 1 drive (out of 2). mdadm: /dev/md/LS-WSXL-EME75:10 has been started with 1 drive (out of 2). mdadm: failed to add /dev/sda3 to /dev/md/1_0: Invalid argument mdadm: failed to add /dev/sdb3 to /dev/md/1_0: Invalid argument mdadm: /dev/md/1_0 assembled from 0 drives - not enough to start the array. mdadm: /dev/md/LS-WSXL-EME75:1 has been started with 1 drive (out of 2). mdadm: /dev/md/0_0 has been started with 1 drive (out of 2). mdadm: failed to add /dev/sda3 to /dev/md/1_0: Invalid argument mdadm: failed to add /dev/sdb3 to /dev/md/1_0: Invalid argument mdadm: /dev/md/1_0 assembled from 0 drives - not enough to start the array. root@LS-WSXLE75:~#どうなった??
root@LS-WSXLE75:~# cat /proc/mdstat Personalities : [linear] [raid0] [raid1] [raid6] [raid5] [raid4] md125 : active raid1 sdb1[1] 1000384 blocks [2/1] [_U] md126 : active raid1 sdb2[1] 4999156 blocks super 1.2 [2/1] [_U] md127 : active raid1 sdb5[1] 1000436 blocks super 1.2 [2/1] [_U] md22 : active raid1 sdb6[0] 24248904 blocks super 1.2 [2/1] [U_] md21 : active raid1 sda6[0] 24248904 blocks super 1.2 [2/1] [U_] md1 : active raid1 sda2[0] 4999156 blocks super 1.2 [2/1] [U_] md10 : active raid1 sda5[0] 1000436 blocks super 1.2 [2/1] [U_] md0 : active raid1 sda1[0] 1000384 blocks [2/1] [U_] unused devices: <none> root@LS-WSXLE75:~# ls -l /dev/md* brw-r----- 1 root disk 9, 0 Nov 21 2013 /dev/md0 brw-r----- 1 root disk 9, 1 Nov 21 2013 /dev/md1 brw-r----- 1 root disk 9, 10 Nov 21 2013 /dev/md10 brw-r----- 1 root disk 9, 125 Nov 20 22:54 /dev/md125 brw-r----- 1 root disk 9, 126 Nov 20 22:54 /dev/md126 brw-r----- 1 root disk 9, 127 Nov 20 22:53 /dev/md127 brw-r----- 1 root disk 9, 21 Nov 20 22:26 /dev/md21 brw-r----- 1 root disk 9, 22 Nov 20 22:53 /dev/md22 /dev/md: lrwxrwxrwx 1 root root 6 Nov 21 2013 0 -> ../md0 lrwxrwxrwx 1 root root 6 Nov 21 2013 1 -> ../md1 lrwxrwxrwx 1 root root 7 Nov 21 2013 10 -> ../md10 lrwxrwxrwx 1 root root 8 Nov 20 22:54 125 -> ../md125 lrwxrwxrwx 1 root root 8 Nov 20 22:54 126 -> ../md126 lrwxrwxrwx 1 root root 8 Nov 20 22:53 127 -> ../md127 lrwxrwxrwx 1 root root 7 Nov 20 22:26 21 -> ../md21 lrwxrwxrwx 1 root root 7 Nov 20 22:53 22 -> ../md22 root@LS-WSXLE75:~#
root@LS-WSXLE75:~# mkdir /tmp/root root@LS-WSXLE75:~# mount /dev/md126 /tmp/root root@LS-WSXLE75:~# ls /tmp/root bin/ dev/ home/ lib/ mnt/ resources/ sbin/ tmp@ var/ boot/ etc/ initrd/ lost+found/ proc/ root/ sys/ usr/ www/ root@LS-WSXLE75:~# mount /dev/md125 /tmp/root/boot root@LS-WSXLE75:~# ls -l !$ ls -l /tmp/root/boot -rw-r--r-- 1 root root 86 May 16 2013 builddate.txt -rw-r--r-- 1 root root 8983 Nov 20 22:24 conf_save.md5sum -rw-r--r-- 1 root root 64398 Nov 20 22:24 conf_save.tgz -rw-r--r-- 1 root root 9790226 May 16 2013 initrd.buffalo -rw-r--r-- 1 root root 50905 Nov 20 22:24 log.tgz drwx------ 2 root root 4096 Nov 1 2007 lost+found/ -rw-r--r-- 1 root root 2664296 May 16 2013 uImage.buffalo root@LS-WSXLE75:~# mount /dev/md22 /tmp/root/mnt/disk1/ root@LS-WSXLE75:~# ls -l !$ ls -l /tmp/root/mnt/disk1/ root@LS-WSXLE75:~# mount rootfs on / type rootfs (rw) /dev/root on / type ext3 (rw,relatime,errors=continue,barrier=0,data=writeback) proc on /proc type proc (rw,relatime) sysfs on /sys type sysfs (rw,relatime) udev on /dev type tmpfs (rw,nosuid,relatime,size=10240k,mode=755) devpts on /dev/pts type devpts (rw,relatime,gid=4,mode=620) /dev/ram1 on /mnt/ram type tmpfs (rw,relatime,size=15360k) /dev/md0 on /boot type ext3 (rw,relatime,errors=continue,barrier=1,data=writeback) usbfs on /proc/bus/usb type usbfs (rw,relatime) /dev/md21 on /mnt/disk1 type xfs (rw,noatime,attr2,usrquota,grpquota) /dev/md126 on /mnt/ram/root type ext3 (rw,relatime,errors=continue,barrier=1,data=writeback) /dev/md125 on /mnt/ram/root/boot type ext3 (rw,relatime,errors=continue,barrier=1,data=writeback) /dev/md22 on /mnt/ram/root/mnt/disk1 type xfs (rw,relatime,attr2,noquota) root@LS-WSXLE75:~#RAID 機にハックキットをインストールする際、 initrd にログインできるようにしてインストールしていたが、
無事起動してきた。
準備(LS-WSGL の場合) で紹介しているような RAM root からのインストールのような 面倒くさいことしなくて良さそう。。。
ということでやってみた。
ssh できれば SATA2 で起動してきた、
ssh できなれば SATA1 で起動してきた、
事になる。。
yasunari@sil:/mnt/wk/yasunari$ ssh -l root lswsxl root@LS-WSXLE75:~#ssh できた。
root@LS-WSXLE75:~# cat /proc/mdstat Personalities : [linear] [raid0] [raid1] [raid6] [raid5] [raid4] md22 : active raid1 sdb6[0] 24248904 blocks super 1.2 [2/1] [U_] md125 : active raid1 sda1[0] 1000384 blocks [2/1] [U_] md21 : active raid1 sda6[0] 24248904 blocks super 1.2 [2/1] [U_] md1 : active raid1 sda2[0] 4999156 blocks super 1.2 [2/1] [U_] md10 : active raid1 sdb2[2] sda5[0] 1000436 blocks super 1.2 [2/2] [UU] md0 : inactive sdb1[1](S) 1000384 blocks unused devices: <none> root@LS-WSXLE75:~#なんか、sda5 と sdb2 とがミラーリングされているとか、 もうぐちゃぐちゃ
|
← 散歩 |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ ファームウェア Ver.1.68 のインストール |
Copyright (C) 2003-2013 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市