smartctl 7.0 2018-12-30 r4883 [x86_64-linux-5.19.7-1.el7.elrepo.x86_64] (local build) Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION === Model Number: Amazon Elastic Block Store Serial Number: vol0d9d42104245d5125 Firmware Version: 2.0 PCI Vendor/Subsystem ID: 0x1d0f IEEE OUI Identifier: 0xa002dc Controller ID: 0 Number of Namespaces: 1 Namespace 1 Size/Capacity: 214,748,364,800 [214 GB] Namespace 1 Formatted LBA Size: 512 Local Time is: Wed Mar 13 04:21:53 2024 UTC Firmware Updates (0x03): 1 Slot, Slot 1 R/O Maximum Data Transfer Size: 64 Pages Warning Comp. Temp. Threshold: 70 Celsius Namespace 1 Features (0x12): NA_Fields *Other*
Supported Power States St Op Max Active Idle RL RT WL WT Ent_Lat Ex_Lat 0 + 0.01W - - 0 0 0 0 1000000 1000000
Supported LBA Sizes (NSID 0x1) Id Fmt Data Metadt Rel_Perf 0 + 512 0 0
=== START OF SMART DATA SECTION === SMART overall-health self-assessment test result: PASSED
SMART/Health Information (NVMe Log 0x02) Critical Warning: 0x00 Temperature: - Available Spare: 0% Available Spare Threshold: 0% Percentage Used: 0% Data Units Read: 0 Data Units Written: 0 Host Read Commands: 0 Host Write Commands: 0 Controller Busy Time: 0 Power Cycles: 0 Power On Hours: 0 Unsafe Shutdowns: 0 Media and Data Integrity Errors: 0 Error Information Log Entries: 0 Warning Comp. Temperature Time: 0
Error Information (NVMe Log 0x01, max 64 entries) No Errors Logged
ls /dev/mapper/ceph-* rm -rf /dev/mapper/ceph--52ae98df--3053--40af--86c4--def1ed9b9e68-osd--block--f09b0512--e73a--473b--8316--ccfe092c142d
ceph-volume lvm zap /dev/nvme1n1 --destroy
报错,表明当前磁盘正在被占用,需要解除占用后,再格式化
--> Zapping: /dev/nvme1n1 stderr: wipefs: error: /dev/nvme1n1: probing initialization failed: Device or resource busy --> failed to wipefs device, will try again to workaround probable race condition stderr: wipefs: error: /dev/nvme1n1: probing initialization failed: Device or resource busy --> failed to wipefs device, will try again to workaround probable race condition stderr: wipefs: error: /dev/nvme1n1: probing initialization failed: Device or resource busy --> failed to wipefs device, will try again to workaround probable race condition stderr: wipefs: error: /dev/nvme1n1: probing initialization failed: Device or resource busy --> failed to wipefs device, will try again to workaround probable race condition stderr: wipefs: error: /dev/nvme1n1: probing initialization failed: Device or resource busy --> failed to wipefs device, will try again to workaround probable race condition
查看是否有进程占用,如有则需要清理进程
lsof /dev/nvme1n1 fuser /dev/nvme1n1
查看是否有设备映射,需要删除设备映射
dmsetup ls dmsetup remove ceph--52ae98df--3053--40af--86c4--def1ed9b9e68-osd--block--f09b0512--e73a--473b--8316--ccfe092c142d