如何创建ASM磁盘?
如何 创建 磁盘 ASM
2023-09-14 09:01:14 时间
1、添加一块虚拟磁盘
2、开启虚拟机,查看新增磁盘
[root@rhels5532 ~]# fdisk -l Disk /dev/sda: 32.2 GB, 32212254720 bytes 255 heads, 63 sectors/track, 3916 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 3393 27254241 83 Linux /dev/sda2 3394 3915 4192965 82 Linux swap / Solaris Disk /dev/sdb: 19.3 GB, 19327352832 bytes 255 heads, 63 sectors/track, 2349 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk /dev/sdb doesn't contain a valid partition table [root@rhels5532 ~]#
3、磁盘格式化
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
[root@rhels5532 ~]# 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 2349. 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): p Disk /dev/sdb: 19.3 GB, 19327352832 bytes 255 heads, 63 sectors/track, 2349 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-2349, default 1): Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-2349, default 2349): +1g Command (m for help): p Disk /dev/sdb: 19.3 GB, 19327352832 bytes 255 heads, 63 sectors/track, 2349 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb1 1 123 987966 83 Linux Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 2 First cylinder (124-2349, default 124): Using default value 124 Last cylinder or +size or +sizeM or +sizeK (124-2349, default 2349): +1g Command (m for help): p Disk /dev/sdb: 19.3 GB, 19327352832 bytes 255 heads, 63 sectors/track, 2349 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb1 1 123 987966 83 Linux /dev/sdb2 124 246 987997+ 83 Linux Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 3 First cylinder (247-2349, default 247): Using default value 247 Last cylinder or +size or +sizeM or +sizeK (247-2349, default 2349): +1g Command (m for help): p Disk /dev/sdb: 19.3 GB, 19327352832 bytes 255 heads, 63 sectors/track, 2349 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb1 1 123 987966 83 Linux /dev/sdb2 124 246 987997+ 83 Linux /dev/sdb3 247 369 987997+ 83 Linux Command (m for help): n Command action e extended p primary partition (1-4) e Selected partition 4 First cylinder (370-2349, default 370): Using default value 370 Last cylinder or +size or +sizeM or +sizeK (370-2349, default 2349): Using default value 2349 Command (m for help): p Disk /dev/sdb: 19.3 GB, 19327352832 bytes 255 heads, 63 sectors/track, 2349 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb1 1 123 987966 83 Linux /dev/sdb2 124 246 987997+ 83 Linux /dev/sdb3 247 369 987997+ 83 Linux /dev/sdb4 370 2349 15904350 5 Extended Command (m for help): n First cylinder (370-2349, default 370): Using default value 370 Last cylinder or +size or +sizeM or +sizeK (370-2349, default 2349): +3g Command (m for help): n First cylinder (736-2349, default 736): Using default value 736 Last cylinder or +size or +sizeM or +sizeK (736-2349, default 2349): +3g Command (m for help): p Disk /dev/sdb: 19.3 GB, 19327352832 bytes 255 heads, 63 sectors/track, 2349 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb1 1 123 987966 83 Linux /dev/sdb2 124 246 987997+ 83 Linux /dev/sdb3 247 369 987997+ 83 Linux /dev/sdb4 370 2349 15904350 5 Extended /dev/sdb5 370 735 2939863+ 83 Linux /dev/sdb6 736 1101 2939863+ 83 Linux Command (m for help): n First cylinder (1102-2349, default 1102): Using default value 1102 Last cylinder or +size or +sizeM or +sizeK (1102-2349, default 2349): +3g Command (m for help): p Disk /dev/sdb: 19.3 GB, 19327352832 bytes 255 heads, 63 sectors/track, 2349 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb1 1 123 987966 83 Linux /dev/sdb2 124 246 987997+ 83 Linux /dev/sdb3 247 369 987997+ 83 Linux /dev/sdb4 370 2349 15904350 5 Extended /dev/sdb5 370 735 2939863+ 83 Linux /dev/sdb6 736 1101 2939863+ 83 Linux /dev/sdb7 1102 1467 2939863+ 83 Linux Command (m for help): n First cylinder (1468-2349, default 1468): Using default value 1468 Last cylinder or +size or +sizeM or +sizeK (1468-2349, default 2349): +3g Command (m for help): n First cylinder (1834-2349, default 1834): Using default value 1834 Last cylinder or +size or +sizeM or +sizeK (1834-2349, default 2349): +3g Command (m for help): p Disk /dev/sdb: 19.3 GB, 19327352832 bytes 255 heads, 63 sectors/track, 2349 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb1 1 123 987966 83 Linux /dev/sdb2 124 246 987997+ 83 Linux /dev/sdb3 247 369 987997+ 83 Linux /dev/sdb4 370 2349 15904350 5 Extended /dev/sdb5 370 735 2939863+ 83 Linux /dev/sdb6 736 1101 2939863+ 83 Linux /dev/sdb7 1102 1467 2939863+ 83 Linux /dev/sdb8 1468 1833 2939863+ 83 Linux /dev/sdb9 1834 2199 2939863+ 83 Linux Command (m for help): n First cylinder (2200-2349, default 2200): Using default value 2200 Last cylinder or +size or +sizeM or +sizeK (2200-2349, default 2349): +1g Command (m for help): p Disk /dev/sdb: 19.3 GB, 19327352832 bytes 255 heads, 63 sectors/track, 2349 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb1 1 123 987966 83 Linux /dev/sdb2 124 246 987997+ 83 Linux /dev/sdb3 247 369 987997+ 83 Linux /dev/sdb4 370 2349 15904350 5 Extended /dev/sdb5 370 735 2939863+ 83 Linux /dev/sdb6 736 1101 2939863+ 83 Linux /dev/sdb7 1102 1467 2939863+ 83 Linux /dev/sdb8 1468 1833 2939863+ 83 Linux /dev/sdb9 1834 2199 2939863+ 83 Linux /dev/sdb10 2200 2322 987966 83 Linux Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks. [root@rhels5532 ~]#
4、查看格式化后的磁盘信息
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
[root@rhels5532 ~]# fdisk -l Disk /dev/sda: 32.2 GB, 32212254720 bytes 255 heads, 63 sectors/track, 3916 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 3393 27254241 83 Linux /dev/sda2 3394 3915 4192965 82 Linux swap / Solaris Disk /dev/sdb: 19.3 GB, 19327352832 bytes 255 heads, 63 sectors/track, 2349 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb1 1 123 987966 83 Linux /dev/sdb2 124 246 987997+ 83 Linux /dev/sdb3 247 369 987997+ 83 Linux /dev/sdb4 370 2349 15904350 5 Extended /dev/sdb5 370 735 2939863+ 83 Linux /dev/sdb6 736 1101 2939863+ 83 Linux /dev/sdb7 1102 1467 2939863+ 83 Linux /dev/sdb8 1468 1833 2939863+ 83 Linux /dev/sdb9 1834 2199 2939863+ 83 Linux /dev/sdb10 2200 2322 987966 83 Linux [root@rhels5532 ~]#
5、配置ASMLib驱动
相关文章
- WLAN没有有效的IP配置如何一招解决
- quotename mysql,我如何在mySQL中创建一个QUOTENAME函数
- 如何创建成功的FMEA计划
- git如何查看分支是哪个分支创建的_哪里查看QQ建立时间
- 如何创建用于根本原因分析的决策树?
- 【rainbowzhou 面试19/101】技术提问--如何进行数据质量提升?
- 国内如何注册tiktok?使用TK加速器最新国内创建账号教程
- apache如何基于端口创建虚拟主机
- 教你如何处理springboot 没法扫描到repository的解决方法
- Java 多线程详解(二)——如何创建进程和线程编程语言
- 如何在Oracle中创建数据库(oracle怎么创建库)
- 【Linux简易指南:如何打开可执行文件】(linux打开可执行文件)
- “暴风”战机雷达如何做到“一秒一座城”?
- 示例:如何使用Oracle创建新表(在oracle中创建表)
- 学会Linux,开启编程之旅(如何在linux上编程)
- GIMP 教程:如何在 GIMP 中创建曲线文本
- 用户一步步教你如何命令创建Oracle用户(命令创建oracle)
- 如何在 Linux 上下载和使用最佳的播放器(linux下载播放器)
- MySQL中如何快速创建角色(mysql创建角色)
- Linux C语言编程:如何使用清屏函数(linuxc清屏函数)
- MySQL如何创建临时表(mysql 建临时表)
- 如何使用MySQL创建数据库(mysql怎么建数据库)
- MySQL教程如何创建个人信息表(mysql个人信息表创建)
- 如何在MySQL中创建客户表(mysql中创建客户表)
- MySQL如何计算不同列数值的求和(mysql不同列数值求和)
- 如何简洁实现Redis(如何实现简化版redis)
- Oracle中如何使用接口创建应用(oracle中的接口)
- 如何在Oracle 10中创建新的服务(oracle10新建服务)