22.4 C
Texas
Melhttp://www.osradar.com
Guru Unix /Linux and GNU supporter

How to clear ASM disk Headers in Centos and Redhat

For some reasons you need to reuse the ASM disks on your  Linux Centos or  Redhat Server,  but the disk headers persisting. The only easy  way to  make this possible is to clear the headers with  bellow commands

Am using  Redhat7.4 with Oracle Entreprise 12.2c

How to clear ASM disk Headers  ?

1-Show ASM disks 

- Advertisement -
#ls -alt /dev/asm/
total 0
lrwxrwxrwx 1 root root 8 May 3 11:11 fra01 -> ../dm-16
lrwxrwxrwx 1 root root 8 May 3 11:11 oradata01 -> ../dm-18

2-Clear the Disks  Headers

# dd if=/dev/zero of=/dev/asm/fra01 bs=8192 count=12800
12800+0 records in
12800+0 records out
104857600 bytes (105 MB) copied, 0.136025 s, 771 MB/s

and

# dd if=/dev/zero of=/dev/asm/oradata01 bs=8192 count=12800
12800+0 records in
12800+0 records out
104857600 bytes (105 MB) copied, 0.141869 s, 739 MB/s

3-Reload Udev rules  without rebooting 

udevadm control --reload-rules && udevadm trigger

Enjoy

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article