把一块硬盘加到机器后

分区没问题

但是无法格式化,报错

[root@kvm ~]# mkfs.ext4 /dev/sdc1
mke2fs 1.42.9 (28-Dec-2013)  
/dev/sdc1 is apparently in use by the system; will not make a filesystem here!

fuser看不出毛病

没办法,看看新硬盘是否以前是raid中的一块吧

[root@kvm ~]# cat /proc/mdstat
Personalities :  
md127 : inactive sdc[0](S)  
      5201 blocks super external:imsm

unused devices: <none>


[root@kvm ~]# mdadm --detail /dev/md127
/dev/md127:
           Version : imsm
        Raid Level : container
     Total Devices : 1

   Working Devices : 1

     Member Arrays :

    Number   Major   Minor   RaidDevice

       -       8       32        -        /dev/sdc

哇,有个md127的raid信息

停了它,然后再mkfs.xfs格式化就行了

mdadm --stop /dev/md127  
mdadm: stopped /dev/md127  
comments powered by Disqus