本文共 7724 字,大约阅读时间需要 25 分钟。
HP DL380 Gen8 服务器 System:Centos_6.3
HP Smart Array P431/2G Controller
HP D6000 盘柜
P431卡插入服务器PCI-E插槽,通过 SAS线 把盘柜与服务器连接
重启服务器,按F5进入P431卡配置界面
开始配置,配置RAID6
缓存配置10%:90% 读写
kmod-hpsa-3.4.12-110.rhel6u3.x86_64.rpm
rhel6U3代表6.3root@pts/0 # rpm -ivh kmod-hpsa-3.4.12-110.rhel6u3.x86_64.rpm Preparing... ########################################### [100%] 1:kmod-hpsa ########################################### [100%]安装完重启:root@pts/0 # reboot Broadcast message from root@192.168.2.145 (/dev/pts/0) at 13:07 ...The system is going down for reboot NOW!
192.168.2.145 [~] 2015-12-23 13:12:05root@pts/0 # fdisk -lWARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.Disk /dev/sda: 2400.4 GB, 2400374185984 bytes255 heads, 63 sectors/track, 291828 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 262144 bytes / 1048576 bytesDisk identifier: 0x00000000 Device Boot Start End Blocks Id System/dev/sda1 1 267350 2147483647+ ee GPTPartition 1 does not start on physical sector boundary.Disk /dev/sdb: 198037.7 GB, 198037652201472 bytes255 heads, 63 sectors/track, 24076706 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 262144 bytes / 8650752 bytesDisk identifier: 0x5b6077a7
192.168.2.145 [~] 2015-12-23 13:20:17root@pts/0 # parted /dev/sdb GNU Parted 2.1Using /dev/sdbWelcome to GNU Parted! Type 'help' to view a list of commands.(parted) mklabel gpt(parted) mkpart primary 0% 100% (parted) print Model: HP LOGICAL VOLUME (scsi)Disk /dev/sdb: 198TBSector size (logical/physical): 512B/512BPartition Table: gptNumber Start End Size File system Name Flags 1 8651kB 198TB 198TB primary(parted) quit Information: You may need to update /etc/fstab.
root@pts/0 # yum install xfsprogs kmod-xfs Loaded plugins: fastestmirror, securityDetermining fastest mirrorsepel/metalink | 4.6 kB 00:00 * base: mirrors.yun-idc.com * epel: mirrors.yun-idc.com * extras: mirrors.yun-idc.com * updates: mirrors.btte.netbase | 3.7 kB 00:00 base/primary_db | 4.6 MB 00:00 dell-omsa-indep | 1.9 kB 00:00 dell-omsa-specific | 1.9 kB 00:00 epel | 4.3 kB 00:00 epel/primary_db | 5.7 MB 00:00 extras | 2.9 kB 00:00 extras/primary_db | 33 kB 00:00 updates | 3.4 kB 00:00 updates/primary_db | 3.3 MB 00:00 Setting up Install ProcessNo package kmod-xfs available.Resolving Dependencies--> Running transaction check---> Package xfsprogs.x86_64 0:3.1.1-16.el6 will be installed--> Finished Dependency ResolutionDependencies Resolved========================================================================================================================================= Package Arch Version Repository Size=========================================================================================================================================Installing: xfsprogs x86_64 3.1.1-16.el6 base 724 kTransaction Summary=========================================================================================================================================Install 1 Package(s)Total download size: 724 kInstalled size: 3.2 MIs this ok [y/N]: yDownloading Packages:xfsprogs-3.1.1-16.el6.x86_64.rpm | 724 kB 00:00 Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning TransactionWarning: RPMDB altered outside of yum.** Found 4 pre-existing rpmdb problem(s), 'yum check' output follows:iproute-2.6.32-17.el6.x86_64 has missing requires of iptables >= ('0', '1.4.5', None)iproute-2.6.32-17.el6.x86_64 has missing requires of libxtables.so.4()(64bit)system-config-firewall-base-1.2.27-5.el6.noarch has missing requires of iptables >= ('0', '1.2.8', None)system-config-firewall-base-1.2.27-5.el6.noarch has missing requires of iptables-ipv6 Installing : xfsprogs-3.1.1-16.el6.x86_64 1/1 Installed: xfsprogs.x86_64 0:3.1.1-16.el6 Complete!192.168.2.145 [~] 2015-12-23 13:26:56root@pts/0 # mkfs.xfs /dev/sdb1 meta-data=/dev/sdb1 isize=256 agcount=181, agsize=268435392 blks = sectsz=512 attr=2, projid32bit=0data = bsize=4096 blocks=48349033920, imaxpct=1 = sunit=64 swidth=2112 blksnaming =version 2 bsize=4096 ascii-ci=0log =internal log bsize=4096 blocks=521728, version=2 = sectsz=512 sunit=64 blks, lazy-count=1realtime =none extsz=4096 blocks=0, rtextents=0
192.168.2.145 [~] 2015-12-23 13:28:57root@pts/0 # mkdir /back192.168.2.145 [~] 2015-12-23 13:29:09root@pts/0 # mount -t xfs /dev/sdb1 /back/192.168.2.145 [~] 2015-12-23 13:29:33root@pts/0 # df -hFilesystem Size Used Avail Use% Mounted on/dev/sda2 2.2T 2.9G 2.1T 1% /tmpfs 32G 0 32G 0% /dev/shm/dev/sda1 485M 36M 424M 8% /boot/dev/sda3 2.0G 35M 1.8G 2% /swap192.168.0.71:/vol/vol2 2.0T 368G 1.6T 19% /share/dev/sdb1 181T 38M 181T 1% /back
192.168.2.145 [~] 2015-12-23 13:29:34root@pts/0 # cd /back/192.168.2.145 [/back] 2015-12-23 13:29:52root@pts/0 # lltotal 0192.168.2.145 [/back] 2015-12-23 13:29:53root@pts/0 # touch chai192.168.2.145 [/back] 2015-12-23 13:30:14root@pts/0 # lltotal 0-rw-r--r-- 1 root root 0 Dec 23 13:30 chai192.168.2.145 [/back] 2015-12-23 13:30:15root@pts/0 # rm chai 192.168.2.145 [/back] 2015-12-23 13:30:23root@pts/0 # lltotal 0
/usr/sbin/hpacucli ctrl all show config detail
/usr/sbin/hpacucli ctrl slot=0 pd all show
转载于:https://blog.51cto.com/chaichuan/2073883