创建RAID做磁盘分区格式化并挂载.docVIP

  • 10
  • 0
  • 约6.74千字
  • 约 6页
  • 2020-03-06 发布于山西
  • 举报
停线上所有应用进程 停掉resin httpd.shstop 停apache(root用户) ./apachectlstop 停数据库(oracle用户) /home/oracle/sqlplus/nolog SQLconn/assysdba SQLshutdownimmediate SQLexit 4:停数据库的监听 /home/oracle/lsnrctl LSNRCTLstop 停服务器插硬件 注:HP设备 插内存顺序为:跳插1,3,5,7,2,4,6,8 插硬盘顺序为:顺插1,2,3,4,5,6,7,8 在添加硬件(内存和硬盘)进入操作系统后(添加新RAID后) 1、fdisk-l查看硬盘分区 显示如下: [root@localhost~]#fdisk-l Disk/dev/cciss/c0d0:146.7GB,146778685440bytes线上原有硬盘情况 255heads,63sectors/track,17844cylinders Units=cylindersof16065*512=8225280bytes DeviceBootStartEndBlocksIdSystem /dev/cciss/c0d0p1*12542040223+83Linux /dev/cciss/c0d0p225566285119915583Linux /dev/cciss/c0d0p36629130025119915583Linux /dev/cciss/c0d0p41300317844388933655Extended /dev/cciss/c0d0p51300314021818508682Linuxswap /dev/cciss/c0d0p614022178443070821683Linux Disk/dev/cciss/c0d1:146.7GB,146778685440bytes新加的硬盘做完RAID后情况 255heads,32sectors/track,35132cylinders Units=cylindersof8160*512=4177920bytes DeviceBootStartEndBlocksIdSystem 2、fdisk/dev/cciss/c0d1给新硬盘分区 显示如下: [root@localhost~]#fdisk/dev/cciss/c0d1 Thenumberofcylindersforthisdiskissetto35132. Thereisnothingwrongwiththat,butthisislargerthan1024, andcouldincertainsetupscauseproblemswith: 1)softwarethatrunsatboottime(e.g.,oldversionsofLILO) 2)bootingandpartitioningsoftwarefromotherOSs (e.g.,DOSFDISK,OS/2FDISK) 运行后出现fdisk的命令提示符: Command(mforhelp):m 可以用m命令来看fdisk命令的内部命令 n命令创建一个新分区 d命令删除一个存在的分区 p命令显示分区列表;t命令修改分区的类型ID号 l命令显示分区ID号的列表 a命令指定启动分区 w命令是将对分区表的修改存盘让它发生作用。 Command(mforhelp):n选择N创建分区M为帮助 Commandaction eextended pprimarypartition(1-4)选择主分区还是扩展分区 P我们这里选p主分区 Partitionnumber(1-4):1选择分区号码 Firstcylinder(1-35132,default1):2选择分区第一个磁柱为2 Lastcylinderor+sizeor+sizeMor+sizeK(2-140531,default140531):15000选择分区结束磁柱为15000 Command(mforhelp):n选择N创建第2个分区 Commandaction eextended pprimarypartition(1-4)选择主分区还是扩展分区 P我们这里选p主分区 Partitionnumber(1-4):2选择分区号码 Firstcylinder(1-35132,default1):15001选择分区第一个磁柱为15001 Lastcylinderor+sizeor+sizeMor+sizeK(2-140531,default140531):35132选择分区结束磁柱为35132 Command(mforhelp):p选择P查看分区表 Disk/dev/cciss/c0d1:146.7GB,14677868

文档评论(0)

1亿VIP精品文档

相关文档