曾经就T2的机器没办法做上LVM的问题纠结了N天,最后打单子问T2,他们给出了解决的办法,经过测试成功,在这里分享给大家.
LVM on CentOS Install Instructions
You can use our standard CentOS “RAID 0” install to create the base install and then convert the “RAID 0” slice to LVM.
Reinstall the CentOS OS with RAID 0 and once the OS install has completed log in to the system and run the following commands (choose which setup you prefer - LVM on RAID 1 [RECOMMENDED], LVM on RAID 0, LVM without RAID):
LVM on RAID 1
1 | umount /raid0 |
Note that you can name your Volume Group whatever you like, I just chose to name it “lvmRaid” (you see that in the last vgcreate command).
At this point you have an empty LVM space running on RAID 1.
LVM on RAID 0
1 | umount /raid0 |
Note that you can name your Volume Group whatever you like, I just chose to name it “lvmRaid” (you see that in the last vgcreate > command).
At this point you have an empty LVM space running on RAID 0.
LVM with no RAID
1 | umount /raid0 |
Note that you can name your Volume Group whatever you like, I just chose to name it “lvmSet” (you see that in the last vgcreate command).
At this point you have an empty LVM space running without RAID.
You may also want to create a “storage” partition to store your templates and ISO images. You can do that with commands like these:
1 | lvcreate -L 50g lvmRaid -n storage |
Note that if you used the “LVM No RAID” commands then your volume group may be named lvmSet instead of lvmRaid. Adjust the commands accordingly.