Project

General

Profile

Actions

Bug #24793

open

ceph-volume fails to zap a device (wipefs problem)

Added by Sébastien Han almost 6 years ago. Updated over 4 years ago.

Status:
New
Priority:
Normal
Assignee:
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description


[root@ceph-osd0 /]# ps fauaxf
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
ceph      1616  0.1  3.8 845844 19340 ?        Ssl  12:31   0:06 ceph-osd -i 1 --setuser ceph --setgroup disk
root      1229  0.0  0.3  11820  1692 pts/4    Ss   12:04   0:00 bash
root      3355  0.0  0.3  51704  1700 pts/4    R+   13:31   0:00  \_ ps fauaxf
root       836  0.0  0.3  11820  1544 pts/3    Ss+  08:53   0:00 bash
root         5  0.0  0.1  11820   556 pts/1    Ss+  Jul05   0:00 bash
root         1  0.0  0.0   4360    24 ?        Ss   Jul05   0:00 sleep 365d
[root@ceph-osd0 /]# kill 1616

[root@ceph-osd0 /]# umount /var/lib/ceph/osd/ceph-1

[root@ceph-osd0 /]# ceph-volume lvm zap /dev/sdb
--> Zapping: /dev/sdb
Running command: /usr/sbin/wipefs --all /dev/sdb
 stderr: wipefs: error: /dev/sdb: probing initialization failed: Device or resource busy
-->  RuntimeError: command returned non-zero exit status: 1

[root@ceph-osd0 /]# df
Filesystem                      1K-blocks    Used Available Use% Mounted on
overlay                          39269648 1541404  37728244   4% /
tmpfs                              250012       0    250012   0% /sys/fs/cgroup
devtmpfs                           241300       0    241300   0% /dev
shm                                 65536       0     65536   0% /dev/shm
/dev/mapper/VolGroup00-LogVol00  39269648 1541404  37728244   4% /etc/ceph
tmpfs                              250012   29424    220588  12% /run/lvm/lvmetad.socket

[root@ceph-osd0 /]# ceph-volume lvm zap /dev/sdb
--> Zapping: /dev/sdb
Running command: /usr/sbin/wipefs --all /dev/sdb
 stderr: wipefs: error: /dev/sdb: probing initialization failed: Device or resource busy
-->  RuntimeError: command returned non-zero exit status: 1

[root@ceph-osd0 /]# ps faux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root      1229  0.0  0.3  11820  1700 pts/4    Ss   12:04   0:00 bash
root      3381  0.0  0.3  51704  1688 pts/4    R+   13:32   0:00  \_ ps faux
root       836  0.0  0.3  11820  1544 pts/3    Ss+  08:53   0:00 bash
root         5  0.0  0.1  11820   556 pts/1    Ss+  Jul05   0:00 bash
root         1  0.0  0.0   4360    24 ?        Ss   Jul05   0:00 sleep 365d

[root@ceph-osd0 /]# fuser /dev/sdb
Actions

Also available in: Atom PDF