Disk 上のデータを全て消去し、空の CDNFS disk に戻す方法について説明します。ここでは disk11 の内容を消去することとします。
'show disks details' コマンドにより、現在の状態を確認します。"mounted internally" と表示されている通り、現在は mount されていて
使用可能な状態にあることが分かります。
se0#show disks details
(省略)
disk11: Normal (h11 c00 i00 l00 - sata_mv) 476940MB(465.8GB)
disk11/01: CDNFS 476932MB(465.8GB) mounted internally
(*) Disk drive won't be used after reload.
まず最初に、disk11 を unmount します。
se0#disk unuse disk11
This will restart applications currently using disk11
and unmount all partitions on disk11.
Do you want to continue? (Yes/No): yes
disk11 is now unused.
"mounted internall" が消えていることが確認できます。
se0#show disks details
(省略)
disk11: Normal (h11 c00 i00 l00 - sata_mv) 476940MB(465.8GB)
disk11/01: CDNFS 476932MB(465.8GB)
(*) Disk drive won't be used after reload.
次に disk の内容を消去します。
se0#disk erase disk11
This will erase everything on disk11.
Are you sure? [no]yes
All partitions on disk11 have been erased.
'show disk detail' の出力にて、パーティション情報(show disk detail 内の "disk11/01")が消えて、
"Unallocated" となっていることが確認できます。
se0#show disks details
(省略)
disk11: Normal (h11 c00 i00 l00 - sata_mv) 476940MB(465.8GB)
Unallocated: 476940MB(465.8GB)
パーティションを再作成して mount し、CDNFS drive として追加します。
se0#disk policy apply
[WARNING] disk11 conflicts with the current policy, and will be reclaimed.
[WARNING] Provisioning disk11 as a new CDNFS drive.
CDNFS として正常に mount されていることを確認します。 "mounted internally" となっていることが確認できます。
se0#show disks details
(省略)
disk11: Normal (h11 c00 i00 l00 - sata_mv) 476940MB(465.8GB)
disk11/01: CDNFS 476932MB(465.8GB) mounted internally