白箱  各種環境

 

  白箱の各種環境です。WDのWD2500JBを2台、RAID1で組込んでいます。

 


 

    250GBのうち、1.9Gがシステム、swapが133MB。残りがユーザ領域です。

 

LANTANK:/# df -h

Filesystem            Size  Used Avail Use% Mounted on

/dev/hda1             1.9G  251M  1.6G  14% /

/dev/md0              228G  107G  110G  50% /share

LANTANK:/#

 


 

LANTANK:/# mount

/dev/hda1 on / type ext3 (rw,errors=remount-ro)

proc on /proc type proc (rw)

devpts on /dev/pts type devpts (rw,gid=5,mode=620)

/dev/md0 on /share type ext3 (rw,errors=remount-ro)

usbfs on /proc/bus/usb type usbfs (rw)

usbdevfs on /proc/bus/usb type usbdevfs (rw)

 


 

    1台目は、システム/swap/ユーザ領域に区切られています。。

 

LANTANK:~# fdisk -l /dev/hda

 

Disk /dev/hda: 250.0 GB, 250059350016 bytes

255 heads, 63 sectors/track, 30401 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

 

   Device Boot    Start       End    Blocks   Id  System

/dev/hda1               1         250     2008093+  83  Linux

/dev/hda2             251         267      136552+  82  Linux swap

/dev/hda3             268       30401   242051355   fd  Linux raid autodetect

 


 

    2台目は、1パーディションとなっています。システムやswapもミラーに含まれるので、1台目が壊れた時には、2台目だけで動作出来るのでしょうか? (E-IDEバスが1系統で共通、と言う問題はありますが)

 

LANTANK:~# fdisk -l /dev/hdb

 

Disk /dev/hdb: 250.0 GB, 250059350016 bytes

255 heads, 63 sectors/track, 30401 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

 

   Device Boot    Start       End    Blocks   Id  System

/dev/hdb1               1       30401   244196001   fd  Linux raid autodetect

 


 

LANTANK:~# cat /proc/mdstat

Personalities : [linear] [raid0] [raid1] [raid5] [multipath]

read_ahead 1024 sectors

md0 : active raid1 hdb1[1] hda3[0]

      242051264 blocks [2/2] [UU]

 

unused devices: <none>

 


 

    /dev/md0がミラー化された領域です。ファイル・システムは ext3です。

 

LANTANK:/etc# cat fstab

# /etc/fstab: static file system information.

#

# <file system> <mount point>   <type>  <options>       <dump>  <pass>

proc            /proc           proc    defaults        0       0

/dev/hda1       /               ext3    defaults,errors=remount-ro 0       1

/dev/hda2       none            swap    sw              0       0

#/dev/hda3       /share          ext3    defaults,errors=remount-ro 0       1

/dev/md0       /share          ext3    defaults,errors=remount-ro 0       1

 


 

    IPアドレスの記述は、何故か 192.168.0.102(でも 192.168.0.200で動いています)

 

LANTANK:/etc# cat hosts

127.0.0.1       localhost

192.168.0.102   snow_white

 

# The following lines are desirable for IPv6 capable hosts

# (added automatically by netbase upgrade)

 

::1     ip6-localhost ip6-loopback

fe00::0 ip6-localnet

ff00::0 ip6-mcastprefix

ff02::1 ip6-allnodes

ff02::2 ip6-allrouters

ff02::3 ip6-allhosts

 


 

LANTANK:/etc# cat hostname

LANTANK

 


 

LANTANK:~# route

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

192.168.0.0     *               255.255.255.0   U     0      0        0 eth0

default         192.168.0.1     0.0.0.0         UG    0      0        0 eth0

 


 

 LANTANK:/var/log/samba# ifconfig -a

eth0      Link encap:Ethernet  HWaddr 00:A0:B0:70:C1:EC

          inet addr:192.168.0.200  Bcast:192.168.0.255  Mask:255.255.255.0

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:833 errors:0 dropped:0 overruns:0 frame:0

          TX packets:791 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0

          RX bytes:56079 (54.7 KiB)  TX bytes:393955 (384.7 KiB)

 

lo        Link encap:Local Loopback

          inet addr:127.0.0.1  Mask:255.0.0.0

          UP LOOPBACK RUNNING  MTU:16436  Metric:1

          RX packets:36 errors:0 dropped:0 overruns:0 frame:0

          TX packets:36 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0

          RX bytes:3098 (3.0 KiB)  TX bytes:3098 (3.0 KiB)