hns - 日記自動生成システム - Version 2.19.9

先月 2012年04月 来月
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
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2012年04月08日() 旧暦 [n年日記] [更新:"2012/04/24 00:45:04"]

#1 [NetBSD] KURO-BOX/T4 に raid を設定して sysinst を実行

きのう の続きで、netbsd-INSTALL_KURO.gz に raidctl と atactl を加えて、 raid の設定をしようと思ったが、
/dev/wd{2,3}* /dev/raid[012]*
が入っていなかった。それらも加えて作り直し。(差分は最後に付ける)
更に raid.conf の例題も入っているといいなと思って勝手に作って 見ている。 それで、
  • sysinst を一度起動して区画を作る
    1. 起動用の wd0a (500MB)
    2. / swap /usr /var を置くための raid1 (約 18GB)
    3. /export 用の raid2
    という区分を考える。結果的に次のようになっている。
    #        size    offset     fstype [fsize bsize cpg/sgs]
     a:    512064    512127     4.2BSD   1024  8192     0  # (Cyl.    508*-   1016*)
     c: 488397168         0     unused      0     0        # (Cyl.      0 - 484520)
     d:  12288528   1024191       RAID                     # (Cyl.   1016*-  13207*)
     e: 475084449  13312719       RAID                     # (Cyl.  13207*- 484520)
     f:    512064        63 Linux Ext2      0     0        # (Cyl.      0*-    508*)
    
  • 一度 ^C で抜けて
    disklabel wd0a > /tmp/R
    disklabel -R /tmp/R /dev/rwd1c
    disklabel -R /tmp/R /dev/rwd2c
    disklabel -R /tmp/R /dev/rwd3c
    
    のように写しておく
  • raid の設定 をする
  • もう一度 sysinst を起動して raid1 に設置
  • altboot.bin は、ちょっと見ただけでは ext2 file system からだけ読むような気がしたので、disk だけで起動するのは (しばらく)諦めて
    tftp 1000000 sandpoint/altboot.bin; g 1000000 wd0a:netbsd
    
    のように起動して見る。何故か wd0a:netbsd と指定しても raid1 を見つけて root file system に mount してくれる
やはりこの u-boot の手軽さはいいなぁ。

ext2fs から起動する話は、 2009/05 の日記 に、Kurobox Pro を hard disk から起動する時のことが書いてある
いまから fdisk で別区画が作れるかなぁ

Index: distrib/sandpoint/ramdisk/Makefile
===================================================================
RCS file: /cvs/cvsroot/src/distrib/sandpoint/ramdisk/Makefile,v
retrieving revision 1.8
diff -u -r1.8 Makefile
--- distrib/sandpoint/ramdisk/Makefile	13 May 2011 19:14:17 -0000	1.8
+++ distrib/sandpoint/ramdisk/Makefile	8 Apr 2012 14:05:27 -0000
@@ -15,7 +15,7 @@
 LISTS=		${.CURDIR}/list ${DISTRIBDIR}/common/list.sysinst
 MTREECONF=	${DISTRIBDIR}/common/mtree.common
 IMAGEENDIAN=	be
-MAKEDEVTARGETS=	std md0 wd0 wd1 sd0 cd0 pty0 satmgr
+MAKEDEVTARGETS=	std md0 wd0 wd1 wd2 wd3 sd0 cd0 pty0 satmgr raid0 raid1 raid2
 IMAGEDEPENDS=	${CRUNCHBIN} \
 		dot.profile \
 		${NETBSDSRCDIR}/etc/group ${NETBSDSRCDIR}/etc/master.passwd \
Index: distrib/sandpoint/ramdisk/list
===================================================================
RCS file: /cvs/cvsroot/src/distrib/sandpoint/ramdisk/list,v
retrieving revision 1.10
diff -u -r1.10 list
--- distrib/sandpoint/ramdisk/list	14 Jan 2011 10:26:35 -0000	1.10
+++ distrib/sandpoint/ramdisk/list	8 Apr 2012 14:05:27 -0000
@@ -22,6 +22,7 @@
 PROG	bin/stty
 PROG	bin/sync
 
+PROG	sbin/atactl
 PROG	sbin/chown	bin/chgrp
 PROG	sbin/disklabel
 PROG	sbin/dmesg
@@ -37,6 +38,7 @@
 PROG	sbin/mount_nfs
 PROG	sbin/newfs	sbin/mount_mfs
 PROG	sbin/ping
+PROG	sbin/raidctl
 PROG	sbin/reboot	sbin/halt
 PROG	sbin/restore	sbin/rrestore
 PROG	sbin/route
@@ -69,6 +71,8 @@
 COPY	${NETBSDSRCDIR}/etc/group		etc/group
 COPY	${NETBSDSRCDIR}/etc/master.passwd	etc/master.passwd
 COPY	${NETBSDSRCDIR}/etc/netconfig		etc/netconfig
+MTREE	./etc/raid	type=dir uname=root gname=wheel mode=0755
+COPY	${NETBSDSRCDIR}/etc/raid/raid1.conf	etc/raid/raid1.conf
 COPY	${DISTRIBDIR}/common/protocols		etc/protocols
 COPY	${DISTRIBDIR}/common/services		etc/services
 

明日に続く



最近の日記
2024年05月08日
comparison on ./buildsh tools
2024年05月06日
py-setuptools (python 3.11.9)
make release took 1 hours and 10 min
qemu invocation for 10.99.10
2024年05月05日
Windows 10 version
serial connection
bc bench
2024年05月04日
Trial on 10.99.10
another version (later trial) to succeed
2024年04月29日
dkim
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)