
ソフトウェア RAID を削除する方法についての手順を確認しましたが、その中にはwipefs -af <device>
との両方の手順が含まれているものもありますmdadm --zero-superblock --force <device>
。
両方使用する必要がありますか? 結果はどのように異なりますか?
ここでは、/dev/sda3 と /dev/sdb3 で RAID を作成しました。小さなテストを実行しましたが、結果は同じようです。
machine1:~# wipefs /dev/sda3 # <-- see the signature on sda3
offset type
----------------------------------------------------------------
0x1000 linux_raid_member [raid]
LABEL: machine1:md_system
UUID: 54f255a8-c32d-2a67-f728-151f89a7471b
machine1:~# wipefs -af /dev/sda3 # <-- wipe signature using wipefs
/dev/sda3: 4 bytes were erased at offset 0x00001000 (linux_raid_member): fc 4e 2b a9
machine1:~# wipefs /dev/sda3 # <-- as you can see, signature was erased
machine1:~#
machine1:~# wipefs /dev/sdb3 # <-- see signature on sdb3
offset type
----------------------------------------------------------------
0x1000 linux_raid_member [raid]
LABEL: machine1:md_system
UUID: 54f255a8-c32d-2a67-f728-151f89a7471b
machine1:~# mdadm --misc --zero-superblock --force /dev/sdb3 # <-- wipe signature using mdadm
machine1:~# wipefs /dev/sdb3 # <-- as you can see, signature was also erased
machine1:~#
答え1
どちらの指示もゼロ化のスーパーブロック、つまり、サインファイルシステムのメタデータ関してレイド。