Advertisement
peetaur

ubuntu or debian custom partition with raid0 and lvm

Jun 27th, 2014
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. in Debian/Ubuntu server install, custom partitioner:
  2.  
  3. delete all partitions
  4.  
  5. for GPT disks, which for sure is any >2TiB:
  6. make one partition
  7. size: 1 MiB
  8. use as: reserved bios boot area (not sure on exact wording)
  9.  
  10. make one partition
  11. size: 512 MB
  12. use as: raid
  13.  
  14. make another partition
  15. size: remainder of disk (just hit enter, it's default)
  16. use as: raid
  17.  
  18. at the top of the partitioner, select "configure raid"
  19. create a raid1 with the 2 smaller partitions (for boot... always use raid1)
  20. create a raid0 with the 2 larger ones (or raid1, 10, 6, or whatever you actually want for root)
  21. finish configuring raid
  22.  
  23. now you see more devices to modify (raid volumes)
  24.  
  25. Modify the smaller raid1:
  26. use as: ext4
  27. mount point: /boot
  28.  
  29. modify the larger raid0:
  30. use as: physical volume for lvm
  31.  
  32. at the top of the partitioner, select "configure logical volume manager"
  33.  
  34. create volume
  35. name: swap
  36. size; 4GB I guess
  37. create volume
  38. name: root
  39. size: remainder of disk (just hit enter; it's default)
  40.  
  41. now you see more volumes again (logical volumes)
  42.  
  43. modify root
  44. use as: ext4
  45. mountpoint: /
  46.  
  47. modify swap
  48. use as: swap area
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement