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

上传人:ji****72 文档编号:37628736 上传时间:2018-04-20 格式:DOC 页数:7 大小:61KB
返回 下载 相关 举报
创建RAID做磁盘分区格式化并挂载_第1页
第1页 / 共7页
创建RAID做磁盘分区格式化并挂载_第2页
第2页 / 共7页
创建RAID做磁盘分区格式化并挂载_第3页
第3页 / 共7页
创建RAID做磁盘分区格式化并挂载_第4页
第4页 / 共7页
创建RAID做磁盘分区格式化并挂载_第5页
第5页 / 共7页
点击查看更多>>
资源描述

《创建RAID做磁盘分区格式化并挂载》由会员分享,可在线阅读,更多相关《创建RAID做磁盘分区格式化并挂载(7页珍藏版)》请在金锄头文库上搜索。

1、停线上所有应用进程 1、 停掉 resin httpd.sh stop 2、 停 apache (root 用户)./apachectl stop 3、 停数据库 (oracle 用户)/home/oracle/sqlplus /nolog SQL conn / as sysdba SQL shutdown immediate SQLexit 4:停数据库的监听/home/oracle/lsnrctlLSNRCTL stop 停服务器插硬件 注:HP 设备 插内存顺序为:跳插 1,3,5,7,2,4,6,8 插硬盘顺序为:顺插 1,2,3,4,5,6,7,8 在添加硬件(内存和硬盘)进入操作系

2、统后(添加新 RAID 后)1、fdisk -l 查看硬盘分区查看硬盘分区显示如下: rootlocalhost # fdisk -lDisk /dev/cciss/c0d0: 146.7 GB, 146778685440 bytes 线上原有硬盘情况 255 heads, 63 sectors/track, 17844 cylinders Units = cylinders of 16065 * 512 = 8225280 bytesDevice Boot Start End Blocks Id System /dev/cciss/c0d0p1 * 1 254 2040223+ 83 Lin

3、ux /dev/cciss/c0d0p2 255 6628 51199155 83 Linux /dev/cciss/c0d0p3 6629 13002 51199155 83 Linux /dev/cciss/c0d0p4 13003 17844 38893365 5 Extended /dev/cciss/c0d0p5 13003 14021 8185086 82 Linux swap /dev/cciss/c0d0p6 14022 17844 30708216 83 LinuxDisk /dev/cciss/c0d1: 146.7 GB, 146778685440 bytes 新加的硬盘

4、做完 RAID 后情况 255 heads, 32 sectors/track, 35132 cylinders Units = cylinders of 8160 * 512 = 4177920 bytesDevice Boot Start End Blocks Id System2、fdisk /dev/cciss/c0d1 给新硬盘分区给新硬盘分区显示如下: rootlocalhost # fdisk /dev/cciss/c0d1The number of cylinders for this disk is set to 35132. There is nothing wrong w

5、ith 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)运行后出现 fdisk 的命令提示符:Command (m for help):m 可以用 m 命令来看 fdisk 命令的内部命令

6、n 命令创建一个新分区 d 命令删除一个存在的分区 p 命令显示分区列表;t 命令修改分区的类型 ID 号 l 命令显示分区 ID 号的列表 a 命令指定启动分区 w 命令是将对分区表的修改存盘让它发生作用。Command (m for help):n 选择 N 创建分区 M 为帮助Command actione extendedp primary partition (1-4) 选择主分区还是扩展分区 P 我们这里选 p 主分区 Partition number (1-4):1 选择分区号码 First cylinder (1-35132, default 1): 2 选择分区第一个磁柱为

7、2 Last cylinder or +size or +sizeM or +sizeK (2-140531, default 140531):15000 选择分区结束磁柱为 15000Command (m for help):n 选择 N 创建第 2 个分区 Command actione extendedp primary partition (1-4) 选择主分区还是扩展分区 P 我们这里选 p 主分区 Partition number (1-4):2 选择分区号码First cylinder (1-35132, default 1): 15001 选择分区第一个磁柱为 15001 La

8、st cylinder or +size or +sizeM or +sizeK (2-140531, default 140531):35132 选择分区结束磁柱为 35132Command (m for help): p 选择 P 查看分区表Disk /dev/cciss/c0d1: 146.7 GB, 146778685440 bytes 255 heads, 32 sectors/track, 35132 cylinders Units = cylinders of 8160 * 512 = 4177920 bytesDevice Boot Start End Blocks Id Sy

9、stem /dev/cciss/c0d1p1 2 15000 61195920 83 Linux /dev/cciss/c0d1p2 15001 35132 82138560 83 Linux Command (m for help):Command (m for help):w 选择 w 保存分区后再查看分区情况 fdisk -l rootlocalhost # fdisk -lDisk /dev/cciss/c0d0: 146.7 GB, 146778685440 bytes 255 heads, 63 sectors/track, 17844 cylinders Units = cyli

10、nders of 16065 * 512 = 8225280 bytesDevice Boot Start End Blocks Id System /dev/cciss/c0d0p1 * 1 254 2040223+ 83 Linux /dev/cciss/c0d0p2 255 6628 51199155 83 Linux /dev/cciss/c0d0p3 6629 13002 51199155 83 Linux /dev/cciss/c0d0p4 13003 17844 38893365 5 Extended /dev/cciss/c0d0p5 13003 14021 8185086 8

11、2 Linux swap /dev/cciss/c0d0p6 14022 17844 30708216 83 LinuxDisk /dev/cciss/c0d1: 146.7 GB, 146778685440 bytes 255 heads, 32 sectors/track, 35132 cylinders Units = cylinders of 8160 * 512 = 4177920 bytesDevice Boot Start End Blocks Id System /dev/cciss/c0d1p1 2 15000 61195920 83 Linux /dev/cciss/c0d

12、1p2 15001 35132 82138560 83 Linux rootlocalhost #如果要求磁盘有多个分区时,我们可以定义一个扩展分区,并在扩展分区上划分出 N 个逻 辑分区。 因为 linux 系统做磁盘分区只能设置 3 个主分区,如需要多个分区时就需要定义一个扩展 分区(扩展分区是不可写的) ,并在扩展分区定义出多个逻辑分区。 Command (m for help): n Command actione extendedp primary partition (1-4) e 注:添加扩展分区Partition number (1-4): 3 注:指定为 3 ,因为主分区已经分了两个了,这个也算主分区,从 3 开始First cylinder (1-140531, default 1): 60001 Last cylinder or +size or +sizeM or +sizeK (60001-140531, default 140531): 注:直接回车,把其余的所有空间都给扩展分区Using default value 140531Command (m for help): n Command actionl logical (5 or over)p primary partition (1

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 行业资料 > 其它行业文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号