Linux partitioning & LVM to be used together
Hello All,
I am installing CentOS 6.5 [as a VM] via a kickstart file which I created, available on a local ftp server. I have a total of 35GB disk space available, which I have partitioned as follows in the kickstart file- Code:
# Disk partitioning information How do I achieve that? I used system-config-kickstart utility on another CentOS server to create the original kickstart file, but it did not give any option to further partition the /var partition. Do I continue to use the partitions specified in kickstart file & then use LVM to further separate /var into smaller LVs, or create a large LVM of the entire 35G space & use LVM to create all partitions as LVs? Any other suggestions are welcome. Thanks Bhushan Pathak |
I updated the disk partitioning layout manually in the kickstart file as follows -
Code:
# Disk partitioning information |
Generally I prefer to use LVM over partitioning for most purposes.
With LVM: 1) You can add additional disks or partitions to the Volume Group (VG) later to expand what is already there. 2) With LVM order isn't important so you can expand logical volumes (LVs) later even if there are other LVs added after the one you wish to expand. You can also shrink LVs to free up space for other LVs to be expanded. On the other hand if you have partitions you have to remove everything beyond the one you have if you want to expand a given partition. Of course /boot is generally on a partition rather than in LVM. There might be *some* edge cases where having contiguous space might be important but they're fairly rare in my experience. We've run Oracle, MySQL and Postgres DBs in LVM with no problems for years. |
It is correct. Since you require this partition standard to be applied to your new server, better you make changes in your kickstart file.
|
All times are GMT -5. The time now is 01:55 PM. |