ASM: Device is already labeled for ASM disk

like052629發表於2016-04-08

當一塊磁碟或分割槽已經被一個DataGroup用過,此時想用這塊磁碟或分割槽重新生成Asmlib生成Oracle磁碟裝置時即會報標題的錯。

[@more@]

類似如下:

/etc/init.d/oracleasm createdisk VOL1 /dev/sda1
Marking disk "/dev/sda1" as an ASM disk: asmtool:
Device "/dev/sda1" is already labeled for ASM disk "" [FAILED]

/etc/init.d/oracleasm deletedisk VOL1
Removing ASM disk "VOL1" [FAILED]

解決問題其實很簡單,把磁碟頭清一下就可以了:

dd if=/dev/zero of=<your_raw_device> bs=1024 count=100

現在操作就該正常了:

dd if=/dev/zero of=/dev/sda1 bs=1024 count=100
100+0 records in
100+0 records out

/etc/init.d/oracleasm createdisk VOL /dev/sda1
Marking disk "/dev/sda1" as an ASM disk: [ OK ]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28258625/viewspace-2077649/,如需轉載,請註明出處,否則將追究法律責任。

相關文章