Moving folders to 2nd Drive
Redhat Enterprise 6 32bit. I'm a noob so I do not know all the Linux terms. We want to create two partitions on one drive. We also want to move folders such as /home /var /temp etc. to the 2nd partition. Now will the programs still work if we wiped out the 1st partition and installed the same OS with updated patches from an image? Basically what it is, is we have two computers. Only one has access to the Internet. We want to make an image of the fully patched machine and transfer it to the standalone machine without having to reinstall all the software. If this is possible what folders do we need to move to the 2nd partition? Also what size do you think we should make the 1st partition if most of the files will go to the 2nd partition?
Responses
Hi Jarett,
Did you want to use LVM or basic partitions?
If you use either labels or LVM or UUIDs to mount the partitions you create, then if one of the partitions gets deleted, you should have no issues.
See this article too...
Jarett - like Samantha has mentioned, you want to consider using LVM
sda1 - /boot
sda2 - LVM (VolGroup00)
/ - lv_root
/home - lv_home
/tmp - lv_tmp
/var - lv_var
You have much more flexibility using LVM, in particular if you leave some free space in your VG. You can use LVM snapshots - as one rollback method. If... things go completely south on your system, you can re-install the OS and not impact those separate volumes. (I actually do this with my laptop(s) where I bounce between fedora and RHEL but still keep my data in-tact.
Also - LVM allows flexibility in sizing. I.e. if you create a lv_tmp that is 2GB and you later decide that it needs to be 4GB, it is a simple resize procedure.
Another link: ;-)
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/s2-diskpartrecommend-x86.html
You can create LV-mirrors and do a split prior to the upgrade, etc..
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
