[文章作者:张宴 本文版本:v1.0 最后修改:2009.06.17 转载请注明原文链接:http://blog.zyan.cc/post/415/]

  正为视频、图片存储发愁,一个偶然的机会,获知公司在廊坊机房机架上有一台“300GB*14块硬盘”磁盘整列柜,竟然没人使用。周一申请了一辆公司的车,去廊坊机房将该盘阵拖了回来。

  环境:

  一台“惠普Proliant DL380 G4服务器(2U机架式)”,已安装CentOS 5.3 64位操作系统;
  一台“惠普Modular Smart Array 500G2磁盘阵列柜”,插满14块标称300GB的SCSI硬盘;
  一块“惠普 Smart Array 642阵列卡”,插在“惠普Proliant DL380 G4服务器”;
  一根SCSI连接线,连接“惠普 Smart Array 642阵列卡”和“惠普Modular Smart Array 500G2磁盘阵列柜”。

  点击在新窗口中浏览此图片



  配置步骤:

  1、在“惠普Proliant DL380 G4服务器”PCI插槽中安装一块Smart Array 642阵列卡,用SCSI线连接“惠普MSA 500G2磁盘阵列柜”。

  点击在新窗口中浏览此图片

  2、在以下网址点击右侧“Support”栏目中的“Support matrices”,查看“HP Proliant DL380 G4服务器”支持的“HP SmartStart CD光盘类型”:
  http://www.hp.com/servers/smartstart

  点击在新窗口中浏览此图片

  3、通过以下网址下载 HP SmartStart 8.25 x64 光盘,解压后有一个ISO镜像文件,将它刻录到CD刻录光盘上:
  ftp://ftp.hp.com/pub/softlib2/software1/cd/p1760479716/v51549/smartstart-8.25-0-x64.zip

  4、将SmartStart光盘插入“惠普Proliant DL380 G4服务器”的光驱,选择服务器开机从光盘启动,在光盘引导后的图像界面“Array Configuration Utility”中,会显示所有的磁盘阵列卡,包括“惠普Proliant DL380 G4服务器”自带的阵列卡和“惠普MSA 500G2磁盘阵列柜”的阵列卡。
  (1)、点击选择“MSA 500G2”阵列卡。先选择创建磁盘组(Create Array),14块硬盘全选上;
  (2)、再选择创建逻辑盘(Create Logical Drive)。因为这里插了14块标称300GB的SCSI硬盘(实际容量(300GB / 1.024 / 1.024 / 1.024) * 14 / 1024 ≈ 3.8TB),而“惠普MSA 500G2磁盘阵列柜”的每块逻辑盘最大只能支持2TB的数据容量,所以至少需要创建两块逻辑盘,第一块逻辑盘选择2TB,第二块逻辑盘使用默认值,即剩余大小。每块逻辑盘可选择做RAID 0、RAID 1、RAID 5和RAID 6,缺省配置是RAID 6(可损坏任意两颗硬盘,但性能比RAID 5略低8%~15%)。因为是图形界面,这一部分操作比较简单,就不再详细描述。

  5、使用SmartStart光盘创建完逻辑盘之后,重启“惠普Proliant DL380 G4服务器”。

  6、重启后,输入root帐号密码登入CentOS 5.3 x86_64系统。

  7、使用fdisk -l命令查看系统是否已经认识“惠普MSA 500G2磁盘阵列柜”的逻辑盘:
fdisk -l

  这时,如果屏幕显示三块盘,则表示配置成功。第一块盘为服务器自带的磁盘阵列,安装了操作系统,划分了/、/boot、/usr、/data0、swap等分区,第二、三块盘为“惠普MSA 500G2磁盘阵列柜”的逻辑盘:
引用
Disk /dev/cciss/c0d0: 291.3 GB, 291331192320 bytes
......
Disk /dev/cciss/c0d1: 2199.0 GB, 2199023229440 bytes
......
Disk /dev/cciss/c0d2: 1700.9 GB, 1700968609792 bytes


  备注:以下配置流程对于已安装系统的Linux服务器挂载新硬盘同样适用,只不过硬盘名称换成/dev/sdb、/dev/sdc......而已。

  8、为“惠普MSA 500G2磁盘阵列柜”逻辑盘创建分区:
  (1)、为/dev/cciss/c0d1逻辑盘创建分区:
fdisk /dev/cciss/c0d1

  点击在新窗口中浏览此图片
  输入n回车,再输入p回车,再输出1回车,一路回车,最后输入w回车保存。

  (2)、为/dev/cciss/c0d1逻辑盘创建分区:
fdisk /dev/cciss/c0d2

  输入n回车,再输入p回车,再输出1回车,一路回车,最后输入w回车保存。

  (3)、这时候再用fdisk -l命令,应该可以看到“/dev/cciss/c0d1p1”和“/dev/cciss/c0d2p1”两个分区。

  9、格式化“惠普MSA 500G2磁盘阵列柜”两块逻辑盘的分区:
mkfs.ext3 /dev/cciss/c0d1p1
mkfs.ext3 /dev/cciss/c0d2p1


  10、为两个分区做一个label标签(准备将/dev/cciss/c0d1p1挂载到/data1,/dev/cciss/c0d2p1挂载到/data2):
e2label /dev/cciss/c0d1p1 /data1
e2label /dev/cciss/c0d2p1 /data2


  11、创建/data1和/data2目录:
mkdir /data1
mkdir /data2


  12、用mount命令挂接“惠普MSA 500G2磁盘阵列柜”逻辑盘分区:
mount /dev/cciss/c0d1p1 /data1
mount /dev/cciss/c0d2p1 /data2


  13、因为mount挂载在重启服务器后会失效,所以需要将分区信息写入到/etc/fstab文件中:
vi /etc/fstab

  加入以下两行:
引用
LABEL=/data1            /data1                  ext3    defaults        1 2
LABEL=/data2            /data2                  ext3    defaults        1 2


  加完之后,我们看一下完整的/etc/fstab文件:

  点击在新窗口中浏览此图片

  14、为了保险起见,重启“惠普Proliant DL380 G4服务器”,看看是否出错:
reboot


  15、“惠普Proliant DL380 G4服务器”启动成功,我们可以看到/data1和/data2两个分区,一个2TB,一个1.6TB。

  点击在新窗口中浏览此图片

  16、OK,已经可以将“惠普Proliant DL380 G4服务器”和“惠普Modular Smart Array 500G2磁盘阵列柜”运往珠海电信IDC机房。




技术大类 » Cache与存储 | 评论(76) | 引用(10) | 阅读(58391)
水一下
2009-6-24 11:26
貌似IT管理水平很低,硬件资产就这样随便闲置,然后随便调度。
babo
2009-6-24 18:56
我单位也有个存储,一直没有用呢。回头我也安装上用用。不过这个东东不用在linux下面装驱动吗?
手足口病 Email Homepage
2009-6-27 17:08
支持一下。占个位置
向光明 Email
2009-7-1 14:35
谢谢您啊!第一次看到有关Linux平台的磁盘阵列的文章,尽管看的不是很懂,确实长见识了。
chao6619 Email
2009-7-1 17:35
很好,哈哈,借个人气宣传一下自我咯,
各位大哥大姐 你们好,小弟就是卖HP DELL服务器的, 如果有需要 不妨和小弟联系一下,我在北京 139 1087 2582 王超,如果有技术方面 上搞不了的 也可以给我打个电话, 我们公司有工程师的,可以电话连线 支持。呵呵。。。顺便我也能多学点知识。嘿嘿。
uuco163 Email
2009-7-12 10:28
文章真的很不错,教程够详细,非常谢谢
shark巨菜
2009-8-24 17:30
张前辈的文章就是厉害。 要时常来看看,学习一下啊。
ykzj Homepage
2009-10-3 10:17
一个小建议,msa500还是蛮重的,直接放到380上有点重了
DAVID
2009-12-6 16:35
强人,受教了,zan
louis vuitton uk Email Homepage
2011-11-23 09:12
This louis vuitton uk for sale belongs to the sounding just what are termed as Louis Vuitton vintage best sellers, many other products and services for the reason that range appearing companies.You will easily notice the unfold zippers of this coach outlet store online. That is the decoration. There are some inside pockets for you as well. They are easy to match your clothes and to carry.Let us inspire your inner beauty with fine christian louboutin sale. Purse the elegance in bridal wedding. Enjoy the fashion.
Louis Vuitton Neverfull Email Homepage
2012-4-21 17:56
www.lvbagsclassic.com are authorized authentic Louis Vuitton handbags outlet store. All the items at our site are 100% authentic. All our Louis Vuitton handbags will come with the authenticity card, serial Number, dust bag and care booklet. We promise you will be 100% satisfied when you get such cheap authentic Louis Vuitton handbags from us!
Louis Vuitton Neverfull
Hogan
2012-5-10 18:02
Ci sono diversi motivi principali per cui si può sicuramente trovare sul proprio volere le soluzioni contabili che coinvolgono tutta Stansted, anche se alcune persone potrebbero uomini e donne, probabilmente si dovrà disporre di soluzioni contabili rispetto con la gente. Stai con me per scoprire di più su molti dei motivi per prendere in considerazione l'impiego contabili in tutta Hogan Stansted. Costruire un businessIf vi capita di essere in funzione, è abbastanza possibile che si può fare uso di soluzioni contabili. Non date per scontato tutte le società hanno abbastanza soldi per utilizzare a tempo pieno il personale fiscali, così utilizzando una conditi insieme con l'agenzia affidabile che coinvolge tutta commercialisti Stansted potrebbe rendere meno difficili problemi.
hogan280 Email
2012-5-10 18:10
Finora, così tipico. Dei 17.000 casi di reati sessuali che coinvolgono bambini sotto i 16 anni solo 4000 è andato in tribunale lo scorso anno, secondo i CPS. Questo è poco meno di un quarto di tutti i casi segnalati. E secondo NSPCC di ricerca, un terzo (34%) dei bambini che vengono abusati sessualmente non dirlo a nessuno in tutto, per non parlare di segnalarlo alla polizia. Eppure il caso della adolescente e il Hogan negozio asporto controtendenza il trend statistico di questa settimana quando le prove della ragazza costituito una parte centrale del processo contro una banda di nove uomini, che sono stati condannati ciascuno a tra i quattro ei 19 anni dopo essere stato giudicato colpevole di 25 bambino reati sessuali, compreso lo stupro e il traffico.
Coach Outlet Online Email Homepage
2012-5-18 10:20
to obtain Coach Outlet Online in Hainan is amongst the brand new darling from residential holiday makers.He has served as Chairman and Chief Executive Officer of Coach since November 1995. He has served as a member of Coach Outlet Board of Directors since June 1, 2000, the date of incorporation. 
Coach  Outlet Email Homepage
2012-5-18 10:41
Coach Outlet was founded in 1941, in a loft in New York City.as a partnership called the Gail Manufacturing Company. Gail Manufacturing Company began as a family-owned business, with six leatherworkers who made small leather goods, such as wallets and handbags.Coach Outlet Online Store guarantee that all the coach handbags offered are own high quality. In addition , all of them are sold at an unexpected low price.If you want to purchase, just visit their website. 
Coach  Outlet Email Homepage
2012-5-18 10:48
Five years later in 1985, the Cahns decided to sell Coach Outlet after determining that none of their three children had any desire to take over the family leatherware business . Coach was then sold to Sara Lee Corporation for $30 million dollars.electric, diesel and mainline electric multiple units (EMU, DMU, MEMU), metro Coach Outlet Canada and Diesel Electric Tower Cars (DETC), Accident Relief Medical Vans (ARMV), Inspection Cars (RA), Fuel Test Cars, Track Recording Cars, the latest coaches are for the Deccan Odyssey . 
Louis Vuitton Email Homepage
2012-5-18 10:54
During this period, Louis Vuitton incorporated its leather into most of its products, ranging from small purses and wallets to larger pieces of luggage.To emphasize Jacobs's fashionable volte face, Kate Moss-last season's saucy Louis Vuitton UK dominatrix was recast for spring as the ballerina on that music box in a gleaming white baby doll frock and Barbie white stilettos. 
Louis Vuitton UK Email Homepage
2012-5-18 11:04
This Louis Vuitton UK for sale belongs to the sounding just what are termed as Louis Vuitton vintage best sellers, many other products and services for the reason that range appearing companies.In 1983, the company joined with America's Cup to form the Louis Vuitton Cup, a preliminary competition (known as an eliminatory regatta) for the yacht race. 
分页: 2/5 第一页 上页 1 2 3 4 5 下页 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]