487505b921bd51f10d.png (27.76 KB, 下载次数: 346)
2018-9-7 14:33 上传
C:\Program Files (x86)\VMware\VMware Workstation>vmware-vdiskmanager.exe -c -s 30g -a lslogic -t 2 "E:\wangjia\disk\shardisk-3.vmdk" Creating disk 'E:\wangjia\disk\shardisk-3.vmdk' Create: 100% done. Virtual disk creation successful. [root@rac01~]# fdisk -l 磁盘 /dev/sda:107.4 GB, 107374182400 字节,209715200 个扇区 Units = 扇区 of 1 * 512 = 512 bytes 扇区大小(逻辑/物理):512 字节 / 512 字节 I/O 大小(最小/最佳):512 字节 / 512 字节 磁盘标签类型:dos 磁盘标识符:0x0000f2db 设备 Boot Start End Blocks Id System /dev/sda1 * 2048 411647 204800 83 Linux /dev/sda2 411648 184977407 92282880 8e Linux LVM 磁盘 /dev/sdb:10.7 GB, 10737418240 字节,20971520 个扇区 Units = 扇区 of 1 * 512 = 512 bytes 扇区大小(逻辑/物理):512 字节 / 512 字节 I/O 大小(最小/最佳):512 字节 / 512 字节 磁盘 /dev/sdc:10.7 GB, 10737418240 字节,20971520 个扇区 Units = 扇区 of 1 * 512 = 512 bytes 扇区大小(逻辑/物理):512 字节 / 512 字节 I/O 大小(最小/最佳):512 字节 / 512 字节 磁盘 /dev/sdd:32.2 GB, 32212254720 字节,62914560 个扇区 Units = 扇区 of 1 * 512 = 512 bytes 扇区大小(逻辑/物理):512 字节 / 512 字节 I/O 大小(最小/最佳):512 字节 / 512 字节 磁盘 /dev/mapper/rhel-root:85.9 GB, 85899345920 字节,167772160 个扇区 Units = 扇区 of 1 * 512 = 512 bytes 扇区大小(逻辑/物理):512 字节 / 512 字节 I/O 大小(最小/最佳):512 字节 / 512 字节 磁盘 /dev/mapper/rhel-swap:8589 MB, 8589934592 字节,16777216 个扇区 Units = 扇区 of 1 * 512 = 512 bytes 扇区大小(逻辑/物理):512 字节 / 512 字节 I/O 大小(最小/最佳):512 字节 / 512 字节 [root@rac01 ~]# /lib/udev/scsi_id -g -u /dev/sdd 36000c290f36666fbe8482802d2e4f4f5 [root@rac01 ~]# vi /etc/udev/rules.d/99-oracle-asmdevices.rules KERNEL=="sdb", ENV{ID_SERIAL}=="36000c2952d5ef06cfdf74d34717b2da5", SYMLINK+="asm_disk_1", OWNER="grid", GROUP="asmadmin", MODE="0660" KERNEL=="sdc", ENV{ID_SERIAL}=="36000c298294ae08a9236bfc0a4752162", SYMLINK+="asm_disk_2", OWNER="grid", GROUP="asmadmin", MODE="0660" KERNEL=="sdd", ENV{ID_SERIAL}=="36000c290f36666fbe8482802d2e4f4f5", SYMLINK+="asm_disk_3", OWNER="grid", GROUP="asmadmin", MODE="0660" ~ ~ [root@rac01 ~]# cd /etc/udev/rules.d/ [root@rac01 rules.d]# scp -r 99-oracle-asmdevices.rules root@192.168.0.143:/etc/udev/rules.d/ root@192.168.0.143's password: 99-oracle-asmdevices.rules 100% 411 224.1KB/s 00:00 [root@rac01 rules.d]# [root@rac02 ~]# [root@rac02 ~]# ll /dev/sd* brw-rw---- 1 root disk 8, 0 9月 7 14:17 /dev/sda brw-rw---- 1 root disk 8, 1 9月 7 14:17 /dev/sda1 brw-rw---- 1 root disk 8, 2 9月 7 14:17 /dev/sda2 brw-rw---- 1 grid asmadmin 8, 16 9月 7 14:20 /dev/sdb brw-rw---- 1 grid asmadmin 8, 32 9月 7 14:19 /dev/sdc brw-rw---- 1 grid asmadmin 8, 48 9月 7 14:19 /dev/sdd [root@rac02 ~]# 查看当前asm磁盘分配情况 SQL> select name,PATH,GROUP_NUMBER from v$asm_disk; NAME PATH GROUP_NUMBER ------------------------------ -------------------- ------------ /dev/asm_disk_3 0 DATA_0000 /dev/asm_disk_1 1 DATA_0001 /dev/asm_disk_2 1 查询磁盘组当前空间 SQL> select GROUP_NUMBER,NAME,TOTAL_MB from v$asm_diskgroup; GROUP_NUMBER NAME TOTAL_MB ------------ ------------------------------ ---------- 1 DATA 20480 增加磁盘到磁盘组DATA SQL> ALTER DISKGROUP data ADD DISK '/dev/asm_disk_3' name DATA_0002; Diskgroup altered. 验证查询磁盘组空间 SQL> select GROUP_NUMBER,NAME,TOTAL_MB from v$asm_diskgroup; GROUP_NUMBER NAME TOTAL_MB ------------ ------------------------------ ---------- 1 DATA 51200 SQL> select name,PATH,GROUP_NUMBER from v$asm_disk; NAME PATH GROUP_NUMBER ------------------------------ -------------------- ------------ DATA_0000 /dev/asm_disk_1 1 DATA_0001 /dev/asm_disk_2 1 DATA_0002 /dev/asm_disk_3 1 |
欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) | Powered by Discuz! X3.2 |