设为首页 加入收藏

TOP

ASMlib操作系统包安装与配置asmdisk磁盘(一)
2014-11-23 23:30:26 来源: 作者: 【 】 浏览:25
Tags:ASMlib 操作 统包 安装 配置 asmdisk 磁盘
1.添加6块硬盘,每块100g。无论是热加还是冷加,无论是加硬盘,用san存储划lun,或者再加上多路径,都是可以这么做的。

在操作系统层,能识别这样的lun,下面的sdb就是一个刚划分的300g的lun(也就是硬盘,或者裸块设备)。 [root@pri ~]# cd /dev [root@pri dev]# ls -l | grep sd brw-r----- 1 root disk 8, 0 Apr 11 12:21 sda brw-r----- 1 root disk 8, 1 Apr 11 12:21 sda1 brw-r----- 1 root disk 8, 2 Apr 11 12:21 sda2 brw-r----- 1 root disk 8, 16 Apr 11 12:21 sdb
分区 我们对硬盘进行分区,后续把分区分别作为asm磁盘。其实就一块机械硬盘,根本没必要分区再做asm。 只有多块硬盘的时候,可以用asm做镜像与条带化等。如果存储已经做了raid,给我划分的lun我也没必要再做分区,直接可以加为asm了。 当然,比如有/dev/sda,/dev/sdb两块机械硬盘,我可以分别划分出/dev/sda1、/dev/sda2、/dev/sdb1、/dev/sdb2,然后摘取/dev/sda1与/dev/sdb1出来联合做一个asm disk1.

[root@pri dev]# 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 39162. 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-39162, default 1): 1 Last cylinder or +size or +sizeM or +sizeK (1-39162, default 39162): 60 Command (m for help): n Command action e extended p primary partition (1-4) 2 Invalid partition number for type `2' Command action e extended p primary partition (1-4) p Partition number (1-4): 2 First cylinder (61-39162, default 61): 61 Last cylinder or +size or +sizeM or +sizeK (61-39162, default 39162): 120 Command (m for help): n Command action e extended p primary partition (1-4) 3 Invalid partition number for type `3' Command action e extended p primary partition (1-4) p Partition number (1-4): 3 First cylinder (121-39162, default 121): 121 Last cylinder or +size or +sizeM or +sizeK (121-39162, default 39162): 180 Command (m for help): n Command action e extended p primary partition (1-4) p Selected partition 4 First cylinder (181-39162, default 181): 181 Last cylinder or +size or +sizeM or +sizeK (181-39162, default 39162): 240 Command (m for help): n You must delete some partition and add an extended partition first Command (m for help): m Command action a toggle a bootable flag b edit bsd disklabel c toggle the dos compatibility flag d delete a partition l list known partition types m print this menu n add a new partition o create a new empty DOS partition table p print the partition table q quit without saving changes s create a new empty Sun disklabel t change a partition's system id u change display/entry units v verify the partition table w write table to disk and exit x extra functionality (experts only) Command (m for help): d Partition number (1-4): 4 Command (m for help): n Command action e extended p primary partition (1-4) e Selected partition 4 First cylinder (181-39162, default 181): Using default value 181 Last cylinder or +size or +sizeM or +sizeK (181-39162, default 39162): 240 Command (m for help): n First cylinder (181-240, default 181): Using default value 181 Last cylinder or +size or +sizeM or +sizeK (181-240, default 240): 210 Command (m for help): n First cylinder (211-240, default 211): Using default value 211 Last cylinder or +size or +sizeM or +sizeK (211-240, default 240): Using default value 240 Co
首页 上一页 1 2 3 4 下一页 尾页 1/4/4
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇MySpringdataSource从配置文件获取 下一篇droptablepurge

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: