His Masters' Voices Wiki

よろずのことの書き残し

ユーザ用ツール

サイト用ツール


nas:readynas_duo_v2_openwrt_raid

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
nas:readynas_duo_v2_openwrt_raid [2022/05/28 16:14] – [/dev/md2 を raid1 から raid0 に変更] nipa28nas:readynas_duo_v2_openwrt_raid [2022/05/28 16:21] (現在) – [設定ファイルを修正] nipa28
行 180: 行 180:
 ### 設定ファイルを修正 ### 設定ファイルを修正
  
 +option uuid は書かないことにした。
  
 ``` ```
行 202: 行 203:
 これでどうだろう。 これでどうだろう。
  
 +
 +```
 +root@OpenWrt:~# reboot
 +root@OpenWrt:~# Connection to 192.168.10.2 closed by remote host.
 +Connection to 192.168.10.2 closed.
 +hiroshi@VPCF24AJ-ubuntu:~$ ssh root@192.168.10.2
 +root@192.168.10.2's password: 
 +Permission denied, please try again.
 +root@192.168.10.2's password: 
 +
 +
 +BusyBox v1.35.0 (2022-05-20 19:00:24 UTC) built-in shell (ash)
 +
 +  _______                     ________        __
 +       |.-----.-----.-----.|  |  |  |.----.|  |_
 +     ||  _  |  -__|     ||  |  |  ||   _||   _|
 + |_______||   __|_____|__|__||________||__|  |____|
 +          |__| W I R E L E S S   F R E E D O M
 + -----------------------------------------------------
 + OpenWrt SNAPSHOT, r19689-19ef3b54f4
 + -----------------------------------------------------
 +root@OpenWrt:~# 
 +root@OpenWrt:~# 
 +root@OpenWrt:~# cat /proc/mdstat 
 +Personalities : [raid0] [raid1] [raid10] 
 +md3 : active raid1 sda3[0] sdb3[1]
 +      2925413760 blocks super 1.2 [2/2] [UU]
 +      [==============>......]  resync = 74.1% (2170033984/2925413760) finish=107.0min speed=117591K/sec
 +      bitmap: 6/22 pages [24KB], 65536KB chunk
 +
 +md2 : active raid0 sda2[0] sdb2[1]
 +      1044480 blocks super 1.2 512k chunks
 +      
 +unused devices: <none>
 +root@OpenWrt:~# cat /var/etc/mdadm.conf 
 +# Autogenerated from /etc/config/mdadm, do not edit!
 +ARRAY /dev/md2 name=OpenWrt:2 devices=/dev/sda2,/dev/sdb2
 +ARRAY /dev/md3 name=OpenWrt:3 devices=/dev/sda3,/dev/sdb3
 +root@OpenWrt:~# 
 +
 +```
 +
 +うん。デバイス名をdevices=/dev/sd[ab]* を書いておけば uuidは書かなくても大丈夫のようです。
 +デバイス名は順番が入れ替わることがあるし、HDDを追加したりする可能性があれば、UUIDで設定したほうが良いんだろうけど。
 +2ベイNASで2本HDD入れてしまってるので、これでもよいか;-)
  
  
nas/readynas_duo_v2_openwrt_raid.1653722084.txt.gz · 最終更新: 2022/05/28 16:14 by nipa28