Re: ceph-volume lvm deactivate/destroy/zap

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Dec 21, 2017 at 3:59 PM, Stefan Kooman <stefan@xxxxxx> wrote:
> Quoting Dan van der Ster (dan@xxxxxxxxxxxxxx):
>> Hi,
>>
>> For someone who is not an lvm expert, does anyone have a recipe for
>> destroying a ceph-volume lvm osd?
>> (I have a failed disk which I want to deactivate / wipe before
>> physically removing from the host, and the tooling for this doesn't
>> exist yet http://tracker.ceph.com/issues/22287)
>>
>> >  ceph-volume lvm zap /dev/sdu # does not work
>> Zapping: /dev/sdu
>> Running command: sudo wipefs --all /dev/sdu
>>  stderr: wipefs: error: /dev/sdu: probing initialization failed:
>> Device or resource busy
>>
>> How does one tear that down so it can be zapped?
>
> wipefs -fa /dev/the/device
> dd if=/dev/zero of=/dev/the/device bs=1M count=1

Thanks Stefan. But isn't there also some vgremove or lvremove magic
that needs to bring down these /dev/dm-... devices I have?

-- dan

>
> ^^ I have succesfully re-created ceph-volume lvm bluestore OSDs with
> above method (assuming you have done the ceph osd purge osd.$ID part
> already and brought down the OSD process itself).
>
> Gr. Stefan
>
> --
> | BIT BV  http://www.bit.nl/        Kamer van Koophandel 09090351
> | GPG: 0xD14839C6                   +31 318 648 688 / info@xxxxxx
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux