Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.34 KB | None | 0 0
  1. --- Logical volume ---
  2. LV Path /dev/vg_space/vol_space
  3. LV Name vol_space
  4. VG Name vg_space
  5. LV Status available
  6. # open 1
  7. LV Size 260.75 GiB
  8. Current LE 66752
  9. Segments 1
  10. Allocation inherit
  11. Read ahead sectors auto
  12. - currently set to 256
  13. Block device 253:0
  14.  
  15. --- Segments ---
  16. Logical extent 0 to 66751:
  17. Type linear
  18. Physical volume /dev/sda5
  19. Physical extents 0 to 66751
  20.  
  21. original state:
  22.  
  23. sda sdb sdc
  24. _______ _______ _______
  25. | | | | | |
  26. | | | | | |
  27. |lv_orig| | empty | | empty |
  28. | | | | | |
  29. | | | | | |
  30. | | | | | |
  31. | | | | | |
  32. |_______| |_______| |_______|
  33.  
  34.  
  35. partition sdb & sdc, pvmove, then partition sda:
  36.  
  37. sda sdb sdc
  38. _______ _______ _______
  39. | | | | | |
  40. | sda1 | | sdb1 | | sdc1 |
  41. | empty | | empty | | empty |
  42. |_______| |_______| |_______|
  43. | | | | | |
  44. | sda2 | |lv_orig| |lv_orig| <= linear on 2 drives
  45. | empty | |half 1 | |half 2 |
  46. |_______| |_______| |_______|
  47.  
  48.  
  49. add sda{1,2,3} to vg, mirror the LV on this in striped mode:
  50.  
  51. sda sdb sdc
  52. _______ _______ _______
  53. |lv_orig| |lv_orig| |lv_orig|
  54. |mirror | |mirror | |mirror | <= striped!
  55. |stripe1| |stripe2| |stripe3|
  56. |_______| |_______| |_______|
  57. | | | | | |
  58. | sda2 | |lv_orig| |lv_orig|
  59. | empty | |half 1 | |half 2 |
  60. |_______| |_______| |_______|
  61.  
  62.  
  63.  
  64. get rid of the sd{b,c}2 side of the mirror:
  65.  
  66. sda sdb sdc
  67. _______ _______ _______
  68. | | | | | |
  69. |lv_orig| |lv_orig| |lv_orig| <= still striped!
  70. |stripe1| |stripe2| |stripe3|
  71. |_______| |_______| |_______|
  72. | | | | | |
  73. | sda2 | | sdb2 | | sdc2 |
  74. | empty | | empty | | empty |
  75. |_______| |_______| |_______|
  76.  
  77.  
  78. delete sd{a,b,c}2 partitions to extend sd{a,b,c}1 on the whole disk,
  79. finally, extend the lv:
  80.  
  81. sda sdb sdc
  82. _______ _______ _______
  83. | | | | | |
  84. | sda1 | | sdb1 | | sdc1 |
  85. | | | | | |
  86. |lv_orig| |lv_orig| |lv_orig| <= definitely striped!
  87. | | | | | |
  88. |bigger&| |bigger&| |bigger&|
  89. |striped| |striped| |striped|
  90. |_______| |_______| |_______|
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement