インストール

スペック

CPU
Intel® Pentium® 4 CPU 2.40GHz
MB
AOpen AX4GE Max(Intel 845GE)
HDD
260GB x3
Memory
512MB

パーティション

/dev/hdb1
64M fd(Linux raid autodetect)
/dev/hdb2
64M 82(Linux swap)
/dev/hdb3
30000M fd(Linux raid autodetect)
/dev/hdb4
残り(200G強) fd(Linux raid autodetect)
/dev/hdc1
64M fd(Linux raid autodetect)
/dev/hdc2
64M 82(Linux swap)
/dev/hdc3
30000M fd(Linux raid autodetect)
/dev/hdc4
残り(200G強) fd(Linux raid autodetect)
/dev/hdd1
64M fd(Linux raid autodetect)
/dev/hdd2
64M 82(Linux swap)
/dev/hdd3
30000M fd(Linux raid autodetect)
/dev/hdd4
残り(200G強) fd(Linux raid autodetect)

RAIDの作成

# mknod /dev/md1 b 9 1
# mknod /dev/md3 b 9 3
# mknod /dev/md4 b 9 4
# mdadm --create --verbose /dev/md1 --level=1 --raid-devices=3 /dev/hdb1 /dev/hdc1 /dev/hdd1
# mdadm --create --verbose /dev/md3 --level=1 --raid-devices=3 /dev/hdb3 /dev/hdc3 /dev/hdd3
# mdadm --create --verbose /dev/md4 --level=5 --raid-devices=3 /dev/hdb4 /dev/hdc4 /dev/hdd4
# mke2fs -j /dev/md1
# mkswap /dev/hdb2
# mkswap /dev/hdc2
# mkswap /dev/hdd2
# mkreiserfs /dev/md3
# mkreiserfs /dev/md4
# mount /dev/md3 /mnt/gentoo/
# cd /mnt/gentoo/
# mkdir boot
# mount /dev/md1 boot/
# mkdir home
# mount /dev/md4 home/
# swapon /dev/hdb2
# swapon /dev/hdc2
# swapon /dev/hdd2
# wget mirror.gentoo.gr.jp/releases/x86/2006.0/stages/stage3-i686-2006.0.tar.bz2
# tar jxf stage3-i686-2006.0.tar.bz2
# cp /etc/mdadm.conf etc/
# cp /etc/resolv.conf etc/
# mount -t proc none proc/
# chroot . /bin/bash
# env-update
# source /etc/profile
# emerge --sync
# emerge portage
# emerge -uDavt system
# ln -sf /etc/share/zoneinfo/Japan /etc/localtime
# nano -w /etc/fstab
# emerge -avt gentoo-sources
# emerge -avt genkernel
# genkernel --menuconfig --no-clean all
Device Drivers--->
    Block devices--->
        <*> Loopback device support
        <*> RAM disk support
        <*> Initial RAM disk (initrd) support
    Multi-device support (RAID and LVM) --->
        [*] Multiple devices driver support (RAID and LVM)
        <*>  RAID support
        <*>    RAID-1 (mirroring) mode
        <*>    RAID-4/RAID-5 mode
File systems--->
    <*> Reiserfs support
# emerge -avt syslog-ng
# rc-update add syslog-ng default
# emerge -avt vixie-cron
# rc-update add vixie-cron default
# emerge -avt hotplug
# rc-update add hotplug default
# emerge -avt coldplug
# rc-update add coldplug default
# emerge -avt reiserfsprogs
# emerge -avt mdadm
# nano -w /etc/conf.d/hostname
HOSTNAME="server"
# nano -w /etc/conf.d/domainname
DNSDOMAIN="linux-life.net"
# nano -w /etc/fstab
/dev/md1 /boot ext3 noauto,noatime 1 2
/dev/md3 / reiserfs noatime 0 1
/dev/hdb2 none swap sw 0 0
/dev/hdc2 none swap sw 0 0
/dev/hdd2 none swap sw 0 0
/dev/md4 /home reiserfs noatime 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0
# nano -w /etc/conf.d/keymaps
KEYMAP="jp106
SET_WINDOWKEYS="yes"
# nano -w /etc/conf.d/net
config_eth0=( "192.168.0.2 netmask 255.255.255.0" )
routes_eth0=( "default gw 192.168.0.1" )
# rc-update add net.eth0 default
# passwd
# emerge grub
# grub
grub > root (hd0,0)
grub > setup (hd0)
grub > root (hd1,0)
grub > setup (hd1)
grub > root (hd2,0)
grub > setup (hd2)
grub > quit
# nano -w /boot/grub/grub.conf
default 0
timeout 5
splashimage=(hd0,0)/grub/splash.xpm.gz

title = Gentoo Linux 2.6.15-gentoo-r1
    root (hd0,0)
    kernel /kernel-genkernel-x86-2.6.15-gentoo-r1 root=/dev/ram0 init=/linuxrc ramdisk_size=8192 real_root=/dev/md3
    initrd /initramfs-genkernel-x86-2.6.15-gentoo-r1
# rc-update add sshd default

以上で一応インストールは終わりです。

スポンサード リンク

トラックバック

トラックバックURL
https://linux-life.net/tb/gentoo/server/install/
Linux RAID 3ware3DM2 [CentOS] - WEBデザインのための自宅サーバ構築記 (2006/09/23)
[製品情報]
3w-7006-2RTL 3ware Escalade 7006-2RTL
Ultra ATA133対応 32bit/66Mhz PCI
LowProfile基盤
RAIDレベル0or 1、RAID1の時はホットスァップOK!!
W2K,XP,RedHat6.1〜7.2SuSE6.3〜7.34,TurboLinux6.02
LowProfil...
Linux Life 〜 No linux, No life 〜
Gentoo Linux > サーバー > インストール