mkfs文件系统
I have a disk from another server installed on a new server. However, when I try to make a filesystem on it, mkfs
reports
我在新服务器上安装了另一台服务器的磁盘。 但是,当我尝试在其上创建文件系统时, mkfs
报告
# mkfs -t ext4 /dev/sdd1
mke2fs 1.42.8 (20-Jun-2013)
/dev/sdd1 is apparently in use by thesystem; will not make a filesystem here!
This is a new disk to the new server. It is not mounted.
这是新服务器的新磁盘。 未安装。
I deleted the partition sdd1 and recreated it using cfdisk
. It did not help. The same error message.
我删除了分区sdd1,并使用cfdisk
重新创建了它。 它没有帮助。 相同的错误消息。
What’s wrong here? How to fix it?
怎么了 如何解决?
This is possibly caused by a RAID signature on the disk showing that the disk belongs to a RAID.
这可能是由于磁盘上的RAID签名表明该磁盘属于RAID而引起的。
If you are sure that the disk will never be used in a RAID system anymore, you may follow this tutorials to clean the RAID signature: How to Clean RAID Signatures on Linux
如果您确定该磁盘将不再在RAID系统中使用,则可以按照以下教程来清理RAID签名: 如何在Linux上清理RAID签名
This issue can also be caused by multipath, if it is installed and in use. The device will need to included in multipath’s blacklist. (tip from Marcus White)
如果已安装并使用多路径,也可能是由多路径引起的。 该设备将需要包含在多路径的黑名单中。 ( 来自马库斯·怀特的小贴士 )
mkfs文件系统