Guest User

Untitled

a guest
Jan 23rd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.17 KB | None | 0 0
  1. SSD:
  2. 2GB /boot
  3. 1 or 2GB swap
  4. 28GB /
  5.  
  6. Raid:
  7. One lvm partition that fills the disk mounted in /opt
  8.  
  9. ### Partitioning
  10. d-i partman-auto/disk string /dev/sda /dev/md126
  11. d-i partman-auto/method string lvm
  12.  
  13. d-i partman-lvm/device_remove_lvm boolean true
  14. d-i partman-lvm/device_remove_lvm_span boolean true
  15. d-i partman-md/device_remove_md boolean true
  16. d-i partman-auto/purge_lvm_from_device boolean true
  17.  
  18. d-i partman-lvm/confirm boolean true
  19. d-i partman-lvm/confirm_nooverwrite boolean true
  20.  
  21. d-i partman-auto/expert_recipe string
  22. boot-root ::
  23. 1500 50 2000 ext4
  24. $primary{ } $bootable{ }
  25. method{ format } format{ }
  26. use_filesystem{ } filesystem{ ext4 }
  27. device { /dev/sda }
  28. mountpoint{ /boot }
  29. .
  30. 8000 10000 -1 ext4
  31. $primary{ }
  32. method{ format } format{ }
  33. use_filesystem{ } filesystem{ ext4 }
  34. device { /dev/sda }
  35. mountpoint{ / }
  36. .
  37. 1000 512 2000 linux-swap
  38. $primary{ }
  39. device { /dev/sda }
  40. method{ swap } format{ }
  41. .
  42. 1024 1024 -1 ext4
  43. $lvmok{ }
  44. lv_name{ opt }
  45. method{ lvm } format { }
  46. device { /dev/md126 }
  47. .
  48.  
  49. d-i partman-partitioning/confirm_write_new_label boolean true
  50. d-i partman/choose_partition select finish
  51. d-i partman/confirm boolean true
  52. d-i partman/confirm_nooverwrite boolean true
  53.  
  54. ~$ sudo fdisk -l
  55. Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
  56. Units: sectors of 1 * 512 = 512 bytes
  57. Sector size (logical/physical): 512 bytes / 512 bytes
  58. I/O size (minimum/optimal): 512 bytes / 512 bytes
  59. Disklabel type: dos
  60. Disk identifier: 0x8607ea4b
  61.  
  62. Device Boot Start End Sectors Size Id Type
  63. /dev/sdb1 63 3711737924 3711737862 1.7T 8e Linux LVM
  64.  
  65.  
  66. Disk /dev/sdc: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
  67. Units: sectors of 1 * 512 = 512 bytes
  68. Sector size (logical/physical): 512 bytes / 512 bytes
  69. I/O size (minimum/optimal): 512 bytes / 512 bytes
  70.  
  71.  
  72. Disk /dev/sda: 29.5 GiB, 31675383808 bytes, 61865984 sectors
  73. Units: sectors of 1 * 512 = 512 bytes
  74. Sector size (logical/physical): 512 bytes / 512 bytes
  75. I/O size (minimum/optimal): 512 bytes / 512 bytes
  76. Disklabel type: dos
  77. Disk identifier: 0xf73319fb
  78.  
  79. Device Boot Start End Sectors Size Id Type
  80. /dev/sda1 * 2048 2930687 2928640 1.4G 83 Linux
  81. /dev/sda2 2930688 46827519 43896832 21G 83 Linux
  82. /dev/sda3 46827520 48781311 1953792 954M 82 Linux swap / Solaris
  83. /dev/sda4 48783358 61863935 13080578 6.2G 5 Extended
  84. /dev/sda5 48783360 61863935 13080576 6.2G 8e Linux LVM
  85.  
  86.  
  87. Disk /dev/md126: 1.7 TiB, 1900411879424 bytes, 3711741952 sectors
  88. Units: sectors of 1 * 512 = 512 bytes
  89. Sector size (logical/physical): 512 bytes / 512 bytes
  90. I/O size (minimum/optimal): 131072 bytes / 262144 bytes
  91. Disklabel type: dos
  92. Disk identifier: 0x8607ea4b
  93.  
  94. Device Boot Start End Sectors Size Id Type
  95. /dev/md126p1 63 3711737924 3711737862 1.7T 8e Linux LVM
  96.  
  97. Partition 1 does not start on physical sector boundary.
  98.  
  99.  
  100. Disk /dev/mapper/ubuntu--vg-opt: 976 MiB, 1023410176 bytes, 1998848 sectors
  101. Units: sectors of 1 * 512 = 512 bytes
  102. Sector size (logical/physical): 512 bytes / 512 bytes
  103. I/O size (minimum/optimal): 512 bytes / 512 bytes
Add Comment
Please, Sign In to add comment