创建RAID做磁盘分区格式化并挂载.doc
文本预览下载声明
停线上所有应用进程
停掉resin
httpd.sh stop
停apache (root用户)
./apachectl stop
停数据库 (oracle用户)
/home/oracle/sqlplus /nolog
SQL conn / as sysdba
SQL shutdown immediate
SQLexit
4:停数据库的监听
/home/oracle/lsnrctl
LSNRCTL stop
停服务器插硬件
注: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.7 GB, 146778685440 bytes 线上原有硬盘情况
255 heads, 63 sectors/track, 17844 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/cciss/c0d0p1 * 1 254 2040223+ 83 Linux
/dev/cciss/c0d0p2 255 6628 83 Linux
/dev/cciss/c0d0p3 6629 13002 83 Linux
/dev/cciss/c0d0p4 13003 17844 5 Extended
/dev/cciss/c0d0p5 13003 14021 8185086 82 Linux swap
/dev/cciss/c0d0p6 14022 17844 83 Linux
Disk /dev/cciss/c0d1: 146.7 GB, 146778685440 bytes 新加的硬盘做完RAID后情况
255 heads, 32 sectors/track, 35132 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes
Device Boot Start End Blocks Id System
2、fdisk /dev/cciss/c0d1 给新硬盘分区
显示如下:
[root@localhost ~]# fdisk /dev/cciss/c0d1
The number of cylinders for this disk is set to 35132.
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)
运行后出现fdisk的命令提示符:
Command (m for help):m
可以用m命令来看fdisk命令的内部命令
n命令创建一个新分区
d命令删除一个存在的分区
p命令显示分区列表;t命令修改分区的类型ID号
l命令显示分区ID号的列表
a命令指定启动分区
w命令是将对分区表的修改存盘让它发生作用。
Command (m for help
显示全部