- The added line is THIS COLOR.
- The deleted line is THIS COLOR.
[[ SATA box ????(??)]]
**Partition preparation [#ve6ea56d]
2008.10 ?? flex ????????SATA?HDD?Box
?????????
2008.10.25?by R. Saito
SATA box ????????????????
sata_sil24????????????
si3132r5.ko????????????????????????
?????????????????????????????
#contents
** ??? [#x211a969]
- Century?Corp. ????????SATA?????????
- HDD 1TB x 4
- http://www.century.co.jp/
** PCIe interface ????????driver ???? [#ja71c73c]
- Silicon Image ??? driver ???????????
-- ???????????????FLEX????
/home/skel/driver/sil3132/si3132r5_RHEL43_32bit_v1087_driver_and_GUI.tar.gz
-- [[Silicon Image ?:http://www.siliconimage.com]]???????????
-- Support????????????????????????
Step 1 : Sil3132 - PCI Express (1x) to 2 Port SATA300
Step 2 : Driver
Step 3 : Linux 32-bit
Go????
Support Search Results
Product: SiI3132 - PCI Express (1x) to 2 Port SATA300
Category: Driver
O/S: Linux 32-bit
????????????????????????????????????
?????2008?10?25????????[[32bit?CentOS??????:http://www.siliconimage.com/docs/si3132r5_RHEL43_32bit_v1087_driver_and_GUI.tar.gz]]?
SiI 3132 32-bit Red Hat Enterprise Linux 4.0 Update 3 SATARAID5
Management Utility & Driver for 32bit AMD and 32bit EMT64T
Version : 1.0.8.7
Date : 11/19/2006
- ??????????????
-- ?????????
tar zxf si3132r5_RHEL43_32bit_v1087_driver_and_GUI.tar.gz
cd driver
-- ?????????
cat modules.cgz | gunzip | cpio -ivH crc
-- FLEX??SMP?CPU????????????????????????????
cd 2.6.9-34.ELsmp
cp /lib/modules/`uname -r`/kernel/drivers/scsi si3132r5.ko
cd /lib/modules/`uname -r`/kernel/drivers/scsi
** Linux Kernel ? driver module ????? [#rb704c54]
- ???????flex ????????????
- uname -a ?????Kernel????????????
- ???????????????
cd /lib/modules/2.6.9-67.0.7.ELsmp/kernel/drivers/scsi
- module ???
lsmod
- module ?????rmmod ?????????
- ??sata_sil24?????????????????????????????????????????????
rmmod sata_sil24
- module ????
insmod si3132r5.ko
- ???????????module??????????/etc/modprobe.conf?????
- modprobe.conf????????scsi_hostadapter1??????modprobe.conf??????????????????????????????????????
alias scsi_hostadapter1 sata_sil24 <- ??????
alias scsi_hostadapter1 si3132r5 <- ??
- ?????????????????????????????????
** ??????device ??????? [#vcd44c0d]
- ??????????????????????????
- ???????????/dev/sde ????????????????
- ???SATA?box ????LED??????
- ????????SCSI ??????
flex48:scsi% cat /proc/scsi/scsi
?Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: HDT722525DLA380 Rev: V44O
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: HDT722525DLA380 Rev: V44O
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi4 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: HDT722525DLA380 Rev: V44O
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi5 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: HDT722525DLA380 Rev: V44O
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi8 Channel: 01 Id: 31 Lun: 00
Vendor: SI Model: Pseudo Device Rev: 0000
Type: Processor ANSI SCSI revision: 05
Host: scsi8 Channel: 01 Id: 00 Lun: 00
Vendor: WDC WD10 Model: EACS-00D6B0 Rev: 01.0
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi8 Channel: 01 Id: 01 Lun: 00
Vendor: WDC WD10 Model: EACS-00D6B0 Rev: 01.0
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi8 Channel: 01 Id: 02 Lun: 00
Vendor: WDC WD10 Model: EACS-00D6B0 Rev: 01.0
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi8 Channel: 01 Id: 03 Lun: 00
Vendor: WDC WD10 Model: EACS-00D6B0 Rev: 01.0
Type: Direct-Access ANSI SCSI revision: 02
- WDC ?????????????
- /dev/sde, /dev/sdf, /dev/sdg, /dev/sgh ????
**?Partition???? [#b713d988]
- fdisk ?????????Linux ?file system ????
- fdisk: Linux file system
[root@flex scsi]# tcsh
[rsaito@flex scsi]$ setenv LANG C
[rsaito@flex scsi]$ fdisk /dev/sdf
Device contains neither a valid DOS partition table, nor Sun,
SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
- ????????partition ??????????????????OK?
- Message above means partition did not exist yet, so we can continue
The number of cylinders for this disk is set to 121601.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
- n ???????????????p primary 1?????????????
- n = create new partion, and we chose p = primary, no. 1
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-121601, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-121601, default 121601):
Using default value 121601
- m ????????????????
- m to look up more options
Command (m for help): m
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
- p: ????? partition ???
- let's choose "p" first
Command (m for help): p
???
Disk /dev/sdf: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
???
Device Boot Start End Blocks Id System
/dev/sdf1 1 121601 976760001 83 Linux
- w: ??????HDD??????
- then "w"
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
- ??????????????????
**?Partition ??????? [#z10b3b70]
- mke2fs ?????????-j ??ext3 ????????????????
**Partition format [#fe33ed86]
- "mke2fs" and "-j" option for ext3
[rsaito@flex scsi]$ mke2fs -j /dev/sdf
mke2fs 1.35 (28-Feb-2004)
/dev/sdf is entire device, not just one partition!
Proceed anyway? (y,n) y
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
122109952 inodes, 244190646 blocks
12209532 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=247463936
7453 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848
- inode table ????????????????
- inode table
Writing inode tables: 3783/7453
- ???superblock ??filesystem ?????????????????
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 29 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
- ?????file system ???????????????
**?file system ????? [#e4b46e31]
- /mnt ?????????????????????mkdir ????
**Mount and unmount filesystem [#pa78aaff]
- Go to /mnt and /mkdir, then mount
[rsaito@flex scsi]$ cd /mnt
[rsaito@flex /mnt]$ ls
cdrom fd home home2 root rsaito-old samba sata1 www
[rsaito@flex /mnt]$ mkdir sata2
[rsaito@flex /mnt]$ mount /dev/sdf /mnt/sata2
[rsaito@flex /mnt]$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VG-LVroot
20642428 6770492 12823488 35% /
/dev/md0 101018 77539 18263 81% /boot
none 2037136 0 2037136 0% /dev/shm
/dev/mapper/VG-LVrsaito
30963708 12565892 16824952 43% /rsaito
/dev/mapper/VG-LVhome
216745980 201390404 4345528 98% /home
/dev/mapper/VG-LVwww 20642428 5947524 13646328 31% /www
172.17.4.129:/pmphdd1
480719072 161512480 294787392 36% /pmphdd
/dev/mapper/VG-LVsamba
20642428 11212352 8381500 58% /samba
172.17.4.134:/home1 236347936 201413376 22928784 90% /misc/home1
/dev/sdf 961434656 110656 912485872 1% /mnt/sata2
- /mnt/sata2 ???????????
-????????????????
- Unmount:
[rsaito@flex /mnt]$ umount /mnt/sata2
[rsaito@flex /mnt]$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VG-LVroot
20642428 6770492 12823488 35% /
/dev/md0 101018 77539 18263 81% /boot
none 2037136 0 2037136 0% /dev/shm
/dev/mapper/VG-LVrsaito
30963708 12565892 16824952 43% /rsaito
/dev/mapper/VG-LVhome
216745980 201390404 4345528 98% /home
/dev/mapper/VG-LVwww 20642428 5947524 13646328 31% /www
172.17.4.129:/pmphdd1
480719072 161512480 294787392 36% /pmphdd
/dev/mapper/VG-LVsamba
20642428 11212352 8381500 58% /samba
172.17.4.134:/home1 236347936 201413376 22928784 90% /misc/home1
- ?????????/dev/sde, /dev/sdf, /dev/sdg, /dev/sdh ???????
** /home2 ???? [#t4646908]
- autofs ??/misc/sata1/home2 ? automount
- /etc/auto.misc ???
home1 -w 172.17.4.134:/home1
home3 -w 172.17.4.136:/home
sata1 -fstype=ext3 :/dev/sde
- ????????
- autofs ?????/etc/rs5.d
[root@flex rc5.d]# ./S28autofs restart
automount ????: [ OK ]
automount ????: [ OK ]
- df -B G ????????
# cd /misc/sata1
# df -B G (G byte ??????
[root@flex /]# df -B G
Filesystem 1G-???? ?? ??? ??% ??????
/dev/mapper/VG-LVroot
20G 7G 13G 35% /
/dev/md0 1G 1G 1G 81% /boot
none 2G 0G 2G 0% /dev/shm
/dev/mapper/VG-LVrsaito
30G 12G 17G 43% /rsaito
/dev/mapper/VG-LVhome
207G 193G 5G 98% /home
/dev/mapper/VG-LVwww 20G 6G 14G 31% /www
172.17.4.129:/pmphdd1
459G 155G 282G 36% /pmphdd
/dev/mapper/VG-LVsamba
20G 11G 8G 58% /samba
/dev/sde 917G 16G 855G 2% /misc/sata1
- tar ????????? /home2 ?????/misc/sata1/home2 ????
[root@flex home2]# pwd
/home2
[root@flex home2]# nohup tar cf - ./ | (cd /misc/sata1/home2; tar xpf -) &
- nohup ??logout ???JOB??????
- ????/home2 ??????????????
**?????? [#b5f502e4]
*** /dev/sde -> /misc/sata1 [#c1f5c26d]
- sata1 ???
-- /home2 ???????500G????
-- /home1 ??????300G????
***?tube ??/home1 ???????????????SATA?BOX??????? [#h9a645a5]
- ??????????????????192.168.1.0???Flex?????????
- /home2 ?2008.8?????
FLEX??mount????
172.17.4.129:/pmphdd1 on /pmphdd type nfs (rw,addr=172.17.4.129)
??????HDD???
***?RAID?????????RAID?????????????? [#z591f80a]