分页: 1 / 1

多块硬盘无法挂载

发表于 : 2012-08-22 10:11
gentle723
多块硬盘无法挂载问题: sdb,sdc和sdd(sdc与sdd能组成软RAID)。以下是log, 请各位牛人指教,多谢!!!



Create 'Linux' partition on /dev/sdb ...
Checking that no-one is using this disk right now ...
BLKRRPART: Device or resource busy

This disk is currently in use - repartitioning is probably a bad idea.
Umount all file systems, and swapoff all swap partitions on this disk.
Use the --no-reread flag to suppress this check.
Use the --force flag to overrule all checks.
Error!
Create 'Linux RAID auto' partition on /dev/sdc ...
Checking that no-one is using this disk right now ...
BLKRRPART: Device or resource busy

This disk is currently in use - repartitioning is probably a bad idea.
Umount all file systems, and swapoff all swap partitions on this disk.
Use the --no-reread flag to suppress this check.
Use the --force flag to overrule all checks.
Error!
Create 'Linux RAID auto' partition on /dev/sdd ...
Checking that no-one is using this disk right now ...
OK

Disk /dev/sdd: 243201 cylinders, 255 heads, 63 sectors/track
Old situation:
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/sdd1 0 - 0 0 0 Empty
/dev/sdd2 0 - 0 0 0 Empty
/dev/sdd3 0 - 0 0 0 Empty
/dev/sdd4 0 - 0 0 0 Empty
New situation:
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/sdd1 0+ 243200 243201- 1953512032 fd Linux raid autodetect
/dev/sdd2 0 - 0 0 0 Empty
/dev/sdd3 0 - 0 0 0 Empty
/dev/sdd4 0 - 0 0 0 Empty
Warning: no primary partition is marked bootable (active)
This does not matter for LILO, but the DOS MBR will not boot this disk.
Successfully wrote the new partition table

Re-reading the partition table ...

If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)
OK
Formatting /dev/sdb1 as ext4 ...
mke2fs 1.42 (29-Nov-2011)
/dev/sdb1 is mounted; will not make a filesystem here!
Error!
Creating RAID ...
mdadm: device /dev/sdc1 not suitable for any style of array
Error!
Formatting /dev/md127 as ext4 ...
mke2fs 1.42 (29-Nov-2011)
Could not stat /dev/md127 --- No such file or directory

The device apparently does not exist; did you specify it correctly?
Error!
Scan details to mdadm.conf ...
Mounting new partitions...
mkdir: cannot create directory `/traces': File exists
mkdir: cannot create directory `/postgres_db': File exists
mount: special device /dev/md127 does not exist
mount: /dev/sdb1 already mounted or /postgres_db busy
mount: according to mtab, /dev/sdb1 is already mounted on /postgres_db