This forum is currently locked. You can't register or post questions at this time. (read more)

oracleasm createdisk Device or resource busy

All posts relating to Oracle database administration.

Moderator: Tim...

Kakakoko
Member
Posts: 22
Joined: Mon Dec 02, 2013 5:37 am

oracleasm createdisk Device or resource busy

Postby Kakakoko » Wed Dec 18, 2013 11:10 am

hi,

I have trying to mark my disks for ASM use, but I get following error:
[root@test /]# oracleasm createdisk Vol1 /dev/sdb1
Unable to open device "/dev/sdb1": Device or resource busy

how can I resolve this problem?

Inforamtion for You:
----------------------------------------------------------------------------
[root@test /]# fdisk -l

Disk /dev/sda: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 3916 31350847+ 8e Linux LVM

Disk /dev/sdb: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 5221 41937651 83 Linux

Disk /dev/sdc: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 * 1 3916 31455238+ 8e Linux LVM
----------------------------------------------------------------------------

----------------------------------------------------------------------------
[root@test /]# fdisk /dev/sdb

The number of cylinders for this disk is set to 5221.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/sdb: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 5221 41937651 83 Linux

Command (m for help): d
Selected partition 1

Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-5221, default 1): 1
Last cylinder or +size or +sizeM or +sizeK (1-5221, default 5221): 5221

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
----------------------------------------------------------------------------

Tim...
Site Admin
Posts: 18437
Joined: Mon Nov 01, 2004 5:56 pm
Location: England, UK
Contact:

Re: oracleasm createdisk Device or resource busy

Postby Tim... » Wed Dec 18, 2013 1:34 pm

Hi.

It would appear you already have something mounted/reading/writing to that partition.

Cheers

Tim...
Tim...
Oracle ACE Director
Oracle ACE of the Year 2006 - Oracle Magazine Editors Choice Awards
OakTable Member
OCP DBA 7.3, 8, 8i, 9i, 10g, 11g
OCP Advanced PL/SQL Developer
Oracle Database: SQL Certified Expert
My website: http://www.oracle-base.com
My blog: http://www.oracle-base.com/blog

Kakakoko
Member
Posts: 22
Joined: Mon Dec 02, 2013 5:37 am

Re: oracleasm createdisk Device or resource busy

Postby Kakakoko » Thu Dec 19, 2013 7:48 am

Hi Tim,

Thanks for your reply.
>>It would appear you already have something mounted/reading/writing to that partition.
Yes,when installing Linux the partitions were selected and created.
Is there any way that this partitions can be used to make disk for ASM use?

Tim...
Site Admin
Posts: 18437
Joined: Mon Nov 01, 2004 5:56 pm
Location: England, UK
Contact:

Re: oracleasm createdisk Device or resource busy

Postby Tim... » Thu Dec 19, 2013 8:28 am

Hi.

Nope. ASM wants clean partitions. You would have to remove the partitions and recreate them.

If these are the partitions for your system disk, then you really don't want to be messing with them. If they are for other direct attached disks, then you can unmount them, remove the partitions and start again.

Cheers

Tim...
Tim...
Oracle ACE Director
Oracle ACE of the Year 2006 - Oracle Magazine Editors Choice Awards
OakTable Member
OCP DBA 7.3, 8, 8i, 9i, 10g, 11g
OCP Advanced PL/SQL Developer
Oracle Database: SQL Certified Expert
My website: http://www.oracle-base.com
My blog: http://www.oracle-base.com/blog


Return to “Oracle Database Administration”

Who is online

Users browsing this forum: No registered users and 7 guests