简单配置ASM

2014-11-24 17:15:58 · 作者: · 浏览: 0

环境描述


添加三块硬盘,用来做ASM磁盘组:



三块磁盘最好一样大, 不一样大在做冗余时容易导致热点竞争,增大磁盘的I/O,影响性能。


重启一下系统,格式磁盘



启动系统后fdisk -l查看加载的磁盘,fdisk /dev/sdbsdb进行格式化


[root@localhost ~]# fdisk /dev/sdb


Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel


Building a new DOS disklabel. Changes will remain in memory only,


until you decide to write them. After that, of course, the previous


content won't be recoverable.


The number of cylinders for this disk is set to 1044.


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)


Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)



Command (m for help): n


Command action


e extended


p primary partition (1-4)


p


Partition number (1-4): 1


First cylinder (1-1044, default 1):


Using default value 1


Last cylinder or +size or +sizeM or +sizeK (1-1044, default 1044):


Using default value 1044


Command (m for help): w


The partition table has been altered!


Calling ioctl() to re-read partition table.


Syncing disks.


[root@localhost ~]# fdisk /dev/sdc


[root@localhost ~]# fdisk /dev/sdd


[root@localhost ~]# fdisk -l


看到如下信息 sdbsbcsdd三块磁盘将用来做ASM磁盘组


Disk /dev/sdb: 8589 MB, 8589934592 bytes


255 heads, 63 sectors/track, 1044 cylinders


Units = cylinders of 16065 * 512 = 8225280 bytes



Device Boot Start End Blocks Id System


/dev/sdb1 1 1044 8385898+ 83 Linux



Disk /dev/sdc: 8589 MB, 8589934592 bytes


255 heads, 63 sectors/track, 1044 cylinders


Units = cylinders of 16065 * 512 = 8225280 bytes



Device Boot Start End Blocks Id System


/dev/sdc1 1 1044 8385898+ 83 Linux



Disk /dev/sdd: 8589 MB, 8589934592 bytes


255 heads, 63 sectors/track, 1044 cylinders


Units = cylinders of 16065 * 512 = 8225280 bytes



Device Boot Start End Blocks Id System


/dev/sdd1 1 1044 8385898+ 83 Linux