ASM Cheat Sheet
ASM Cheat Sheet
--Use the following syntax to add configuration information about an existing ASM instance:
--P.S.:
--For all of the SRVCTL commands in this section for which the
--Note that adding or dropping disks will initiate a rebalance of the data on the disks.
--or
--or
--select INCARNATION,
Select name, path, MOUNT_STATUS,HEADER_STATUS, MODE_STATUS, STATE, group_number,
--Check the Num of Extents in use per Disk inside one Disk Group.
WHERE name=’PWX_DATA.272.669293645’);
--or
--or
--on +ASM2 :
--Generate the dd command which will reset the header of all the
--and only the instance-specific entry for the asm_diskgroups parameter is updated.
--By manually mounting the diskgroup on other instances, the asm_diskgroups parameter
--on +ASM1 :
--on +ASM2 :
Command Description
- cp Command Enables you to copy files between ASM disk groups on a local instance and remote
instances.
- du Command Displays the total disk space occupied by ASM files in the specified
- find Command Lists the paths of all occurrences of the specified name (with wildcards) under the
specified directory.
- ls Command Lists the contents of an ASM directory, the attributes of the specified
- rmalias Command Deletes the specified alias, retaining the file that the alias points to.
Kfed tool From Unix Prompt for reading ASM disk header.
Kfed read /dev/vx/rdsk/fra1dg/fra1
Select ‘alter diskgroup DATA1 add disk ‘’’ || PATH || ‘’’;’ from v$asm_disk
Select ‘alter diskgroup FRA1 add disk ‘’’ || PATH || ‘’’;’ from v$asm_disk
Where GROUP_NUMBER=0;
Sql to find candidate disks
SELECT
, b.path disk_file_path
, b.name disk_file_name
, b.failgroup disk_file_fail_group
FROM
ORDER BY
a.name;