Hi guys, our small server at work ran out of space so I bought two 3TB WD Caviars and I'm trying to create a RAID matrix.
I've created two gpt partitions with parted (and succeeded):
Code:
(parted) print
Model: ATA WDC WD30EZRX-00M (scsi)
Dysk /dev/sdd: 3001GB
Rozmiar sektora (logiczny/fizyczny): 512B/512B
Tablica partycji: gpt
Numer Początek Koniec Rozmiar System plików Nazwa Flaga
1 17,4kB 3001GB 3001GB ext3 vg01 lvm
Code:
(parted) print
Model: ATA WDC WD30EZRX-00M (scsi)
Dysk /dev/sdf: 3001GB
Rozmiar sektora (logiczny/fizyczny): 512B/512B
Tablica partycji: gpt
Numer Początek Koniec Rozmiar System plików Nazwa Flaga
1 17,4kB 3001GB 3001GB ext3 vg02 lvm
Now I'm trying to include these two partitions in a RAID1 matrix, this is the command I'm using and the output:
Code:
[root@ftp2 ~]# mdadm -C -v /dev/md2 --level=1 -n 2 /dev/sdd1 /dev/sdf1
mdadm: Defaulting to version 1.-1 metadata
mdadm: /dev/sdd1 appears to contain an ext2fs file system
size=-1364700748K mtime=Sat Jul 9 15:52:45 2011
mdadm: /dev/sdf1 appears to contain an ext2fs file system
size=-1364700748K mtime=Thu Jan 1 01:00:00 1970
mdadm: size set to 2930266412K
Continue creating array? y
mdadm: ADD_NEW_DISK for /dev/sdd1 failed: Device or resource busy
the /dev/sdd1 is not mounted anywhere
Code:
[root@ftp2 ~]# umount -l /dev/sdd1
umount: /dev/sdd1: not mounted
[root@ftp2 ~]# umount -l /dev/sdf1
umount: /dev/sdf1: not mounted
I've ran partprobe just in case - still nothing.
What am I missing? I'm running:
Linux version 2.6.26.8-57.fc8 (mockbuild@x86-3.fedora.phx.redhat.com) (gcc version 4.1.2 20070925 (Red Hat 4.1.2-33)) #1 SMP Thu Dec 18 19:19:45 EST 2008