select group_number,path,total_mb,free_mb,create_date from v$asm_disk order by 1,create_date,path;
colnamefor a30
select group_number,name,total_mb,free_mb from v$asm_diskgroup order by 1;
show parameter asm_diskstring
查看asm磁盘组使用率
colnamefor a15
selectname,trunc((total_mb-free_mb)/1024) used_g,trunc(total_mb/1024) total_g, trunc(free_mb/1024) free_g,round((total_mb-free_mb)/total_mb*100,2) used_percent from v$asm_diskgroup order by used_percent desc ;
取出还没授权的新盘(root 用户)
rhel6: export scsi=scsi_id
rhel7: export scsi=/usr/lib/udev/scsi_id
vi /tmp/a.sh
echo 'device size uuid'
fori in `cat /proc/partitions | awk {'print $4'}|grep sd|tail -$1`;