ubuntuusers.de

mdadm -> Device or resource busy

Status: Gelöst | Ubuntu-Version: Server 10.04 (Lucid Lynx)
Antworten |

xPload

Anmeldungsdatum:
28. September 2006

Beiträge: 16

Beim Einrichten eines RAID1 (sdb + sdc) mit mdadm bekomme ich die Fehlermeldung Device or resource busy

Starten wir aber von vorne .... System wird gestartet, melde mich als root an und zeige mir die Partitionen an:

root@homeserver:/home/user1# fdisk -l

Platte /dev/sda: 500.1 GByte, 500107862016 Byte
255 Köpfe, 63 Sektoren/Spur, 60801 Zylinder
Einheiten = Zylinder von 16065 Ã 512 = 8225280 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0004edb2

   Gerät  boot.     Anfang        Ende     Blöcke   Id  System
/dev/sda1   *           1        3648    29296875   83  Linux
/dev/sda2           60440       60802     2909185    5  Erweiterte
/dev/sda3            3648       60439   456178368+  83  Linux
/dev/sda5           60440       60802     2909184   82  Linux Swap / Solaris

Partitionstabelleneinträge sind nicht in Platten-Reihenfolge

Platte /dev/sdc: 320.1 GByte, 320072933376 Byte
255 Köpfe, 63 Sektoren/Spur, 38913 Zylinder
Einheiten = Zylinder von 16065 Ã 512 = 8225280 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000a28f2

   Gerät  boot.     Anfang        Ende     Blöcke   Id  System
/dev/sdc1               1       38913   312568641   fd  Linux raid autodetect

Platte /dev/sdb: 320.1 GByte, 320072933376 Byte
255 Köpfe, 63 Sektoren/Spur, 38913 Zylinder
Einheiten = Zylinder von 16065 Ã 512 = 8225280 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xf98f4c1d

   Gerät  boot.     Anfang        Ende     Blöcke   Id  System
/dev/sdb1               1       38913   312568641   fd  Linux raid autodetect

Passt!

root@homeserver:/home/user1# ls /dev
block            loop2               ram0    rtc0      tty0   tty27  tty45  tty63    vcs3
bsg              loop3               ram1    sda       tty1   tty28  tty46  tty7     vcs4
bus              loop4               ram10   sda1      tty10  tty29  tty47  tty8     vcs5
char             loop5               ram11   sda2      tty11  tty3   tty48  tty9     vcs6
console          loop6               ram12   sda3      tty12  tty30  tty49  ttyS0    vcs7
core             loop7               ram13   sda5      tty13  tty31  tty5   ttyS1    vcsa
cpu_dma_latency  mapper              ram14   sdb       tty14  tty32  tty50  ttyS2    vcsa1
disk             mcelog              ram15   sdb1      tty15  tty33  tty51  ttyS3    vcsa2
dri              mem                 ram2    sdc       tty16  tty34  tty52  urandom  vcsa3
ecryptfs         net                 ram3    sdc1      tty17  tty35  tty53  usbmon0  vcsa4
fb0              network_latency     ram4    sg0       tty18  tty36  tty54  usbmon1  vcsa5
fd               network_throughput  ram5    sg1       tty19  tty37  tty55  usbmon2  vcsa6
full             null                ram6    sg2       tty2   tty38  tty56  usbmon3  vcsa7
fuse             oldmem              ram7    shm       tty20  tty39  tty57  usbmon4  vga_arbiter
hpet             pktcdvd             ram8    snapshot  tty21  tty4   tty58  usbmon5  zero
input            port                ram9    sndstat   tty22  tty40  tty59  usbmon6
kmsg             ppp                 random  stderr    tty23  tty41  tty6   usbmon7
log              psaux               rfkill  stdin     tty24  tty42  tty60  vcs
loop0            ptmx                root    stdout    tty25  tty43  tty61  vcs1
loop1            pts                 rtc     tty       tty26  tty44  tty62  vcs2

Passt auch! (sdb1 und sdc1 sind da)

Nun möchte ich mir mit mdadm das RAID erstellen

root@homeserver:/home/user1# mdadm --create /dev/md0 --auto=yes --level=0 --raid-devices=2 /dev/sdb1 /dev/sdc1
mdadm: Cannot open /dev/sdb1: Device or resource busy
mdadm: Cannot open /dev/sdc1: Device or resource busy
mdadm: create aborted

Durch was soll das Gerät besetzt sein?? Ich komme einfach nicht weiter ..

marexel

Anmeldungsdatum:
11. Juni 2009

Beiträge: 302

Gute Frage, ich hänge mit 10.10_64 an der gleichen Stelle. Da der Status auf gelöst gesetzt wurde, würde mich die Lösung interessieren.
Danke,

marexel

Antworten |