Red Hat Training
A Red Hat training course is available for Red Hat Enterprise Linux
16.2.7. 項目の削除
ssm remove は、アイテム、デバイスプール、またはボリュームを削除するために使用されます。
注記
削除したデバイスがプールで使用されている場合は、失敗します。これは、-f 引数を使用して強制できます。
ボリュームを削除したときにマウントされていた場合は、マウントに失敗します。デバイスとは異なり、-f で強制することはできません。
lvm_poolとその中のものをすべて削除するには、次のコマンドを使用します。
#
ssm remove lvm_pool
Do you really want to remove volume group "lvm_pool" containing 2 logical volumes? [y/n]: y
Do you really want to remove active logical volume snap20150519T130900? [y/n]: y
Logical volume "snap20150519T130900" successfully removed
Do you really want to remove active logical volume lvol001? [y/n]: y
Logical volume "lvol001" successfully removed
Volume group "lvm_pool" successfully removed