Advertisement
Guest User

Untitled

a guest
Jun 25th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.40 KB | None | 0 0
  1. [root@metal ~]# rm -rf /var/lib/docker
  2.  
  3. [root@metal ~]# rm -rf /etc/sysconfig/docker-storage
  4.  
  5. [root@metal ~]# container-storage-setup
  6. INFO: Wipe Signatures is set to true. Any signatures on /dev/sdb will be wiped.
  7. wipefs: error: /dev/sdb: probing initialization failed: Device or resource busy
  8. ERROR: Failed to wipe signatures on device /dev/sdb
  9.  
  10. [root@metal ~]# vgremove docker-vg
  11. Do you really want to remove volume group "docker-vg" containing 1 logical volumes? [y/n]: y
  12. Do you really want to remove active logical volume docker-vg/docker-pool? [y/n]: y
  13. Logical volume "docker-pool" successfully removed
  14. Volume group "docker-vg" successfully removed
  15.  
  16. [root@metal ~]# fdisk /dev/sdb
  17. Command (m for help): d
  18. Selected partition 1
  19. Partition 1 is deleted
  20.  
  21. Command (m for help): w
  22. The partition table has been altered!
  23.  
  24. Calling ioctl() to re-read partition table.
  25. Syncing disks.
  26.  
  27. [root@metal ~]# container-storage-setup
  28. INFO: Wipe Signatures is set to true. Any signatures on /dev/sdb will be wiped.
  29. wipefs: error: /dev/sdb: probing initialization failed: Device or resource busy
  30. ERROR: Failed to wipe signatures on device /dev/sdb
  31.  
  32. # **UGH** Now i have to do this to get it working...
  33.  
  34. [root@metal ~]# multipath -l
  35. mpathb (Samsung_SSD_850_EVO_500GB_S2RANB0J105915L) dm-2 ATA ,Samsung SSD 850
  36. size=466G features='0' hwhandler='0' wp=rw
  37. `-+- policy='service-time 0' prio=0 status=active
  38. `- 0:0:0:0 sda 8:0 active undef unknown
  39. mpatha (SanDisk_SDSSDA120G_172964457409) dm-3 ATA ,SanDisk SDSSDA12
  40. size=112G features='0' hwhandler='0' wp=rw
  41. `-+- policy='service-time 0' prio=0 status=active
  42. `- 6:0:0:0 sdb 8:16 active undef unknown
  43.  
  44. [root@metal ~]# multipath -f mpatha
  45.  
  46. [root@metal ~]# container-storage-setup
  47. INFO: Wipe Signatures is set to true. Any signatures on /dev/sdb will be wiped.
  48. /dev/sdb: 2 bytes were erased at offset 0x000001fe (dos): 55 aa
  49. /dev/sdb: calling ioclt to re-read partition table: Success
  50. INFO: Device node /dev/sdb1 exists.
  51. /dev/sdb1: 8 bytes were erased at offset 0x00000218 (LVM2_member): 4c 56 4d 32 20 30 30 31
  52. Physical volume "/dev/sdb1" successfully created.
  53. Volume group "docker-vg" successfully created
  54. Rounding up size to full physical extent 116.00 MiB
  55. Thin pool volume with chunk size 512.00 KiB can address at most 126.50 TiB of data.
  56. Logical volume "docker-pool" created.
  57. Logical volume docker-vg/docker-pool changed.
  58.  
  59. ## finally!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement