How to clear ASM disk Headers in Centos and Redhat

Windows Articles

How to create backups in Windows 10 with FileFort Backup

There is no doubt that the computer is an essential element in our lives. Indeed, its uses go beyond work or study....

Trisquel 9.0 available

Trisquel is a GNU/Linux distribution endorsed and supported by the Free Software Foundation. This means that in addition to incorporating the Linux...

How to install PandoraFMS on CentOS 8?

Worldwide many IT infrastructures are running Linux on one of their servers. This opens the door to an endless number of different...

How to force close a program using PowerShell

Hi! We have mentioned in the past that Windows allows you to open multiple programs at once. In fact, that is one...

How to install the Owncloud desktop client Ubuntu 20.04?

In this post, You will learn how to install the Owncloud desktop client on Ubuntu 20.04. Many users and...
Mel Khamlichi
Mel Khamlichihttp://www.osradar.com
Founder of Osradar, from Amsterdam Netherlands

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 

#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

More articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article

How to create backups in Windows 10 with FileFort Backup

There is no doubt that the computer is an essential element in our lives. Indeed, its uses go beyond work or study....

Trisquel 9.0 available

Trisquel is a GNU/Linux distribution endorsed and supported by the Free Software Foundation. This means that in addition to incorporating the Linux...

How to install PandoraFMS on CentOS 8?

Worldwide many IT infrastructures are running Linux on one of their servers. This opens the door to an endless number of different...

How to force close a program using PowerShell

Hi! We have mentioned in the past that Windows allows you to open multiple programs at once. In fact, that is one...

How to install the Owncloud desktop client Ubuntu 20.04?

In this post, You will learn how to install the Owncloud desktop client on Ubuntu 20.04. Many users and...
x