Experimental environment
the company originally installed The RHEL 6 server employs an automatic partitioning scheme, and as the number of system users using the server continues to grow, the root partition often suffers from disk space exhaustion, occasionally causing the system to fail to boot. To address these issues, you now need to add a new SCSI hard disk to the server and migrate the data from the user directory "/Home" to the hard disk, requiring that the partition not be automatically mounted after migration.
Add a new piece SCSI HDD 80G
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/89/20/wKioL1gIqKjTx09HAAGdxTJOitM218.jpg-wh_500x0-wm_3 -wmp_4-s_3302256497.jpg "title=" image 1.jpg "alt=" Wkiol1giqkjtx09haagdxtjoitm218.jpg-wh_50 "/>
Create a 20G partition on your new hard disk to hold all of your normal users ' hosting folders
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/89/23/wKiom1gIqNCjYQ47AAGdxTJOitM542.jpg-wh_500x0-wm_3 -wmp_4-s_1902900561.jpg "title=" image 2.jpg "alt=" Wkiom1giqncjyq47aagdxtjoitm542.jpg-wh_50 "/>
Enter nto create a new partition with a capacity size of 20G
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/89/20/wKioL1gIqPXClrVVAAGUp8pfJs0785.jpg-wh_500x0-wm_3 -wmp_4-s_116953835.jpg "title=" image 3.jpg "alt=" Wkiol1giqpxclrvvaagup8pfjs0785.jpg-wh_50 "/>
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/89/23/wKiom1gIqRqR9ztIAAEvjscamlM548.jpg-wh_500x0-wm_3 -wmp_4-s_1041211918.jpg "title=" image 4.jpg "alt=" Wkiom1giqrqr9ztiaaevjscamlm548.jpg-wh_50 "/>
back Up/home directory to root / Bottom
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/89/20/wKioL1gIqUHiJsEoAAEuCuyQpnw709.jpg-wh_500x0-wm_3 -wmp_4-s_3777639640.jpg "title=" image 5.jpg "alt=" Wkiol1giquhijseoaaeucuyqpnw709.jpg-wh_50 "/>
format the/DEV/SDB1 partition as a ext4 System file type
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/89/23/wKiom1gIqX_RLCVMAAFYjvz5gjk793.jpg-wh_500x0-wm_3 -wmp_4-s_877512324.jpg "title=" image 6.jpg "alt=" Wkiom1giqx_rlcvmaafyjvz5gjk793.jpg-wh_50 "/>
Automatic file system mount (input Vi/etc/fstab)
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/89/23/wKiom1gIqc6RzxijAACgzl25i74603.jpg-wh_500x0-wm_3 -wmp_4-s_171013363.jpg "title=" image 7.jpg "alt=" Wkiom1giqc6rzxijaacgzl25i74603.jpg-wh_50 "/>
Mount the partition/dev/sdb1 to/ home
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/89/20/wKioL1gIqg6QSnjXAAHE41gUX1A796.jpg-wh_500x0-wm_3 -wmp_4-s_3658000257.jpg "title=" image 8.jpg "alt=" Wkiol1giqg6qsnjxaahe41gux1a796.jpg-wh_50 "/>
Copy the home/home user Data from the above backup to the newly mounted/home
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/89/23/wKiom1gIqnnys8KoAAF87I2PS10978.jpg-wh_500x0-wm_3 -wmp_4-s_1928466726.jpg "title=" image 9.jpg "alt=" Wkiom1giqnnys8koaaf87i2ps10978.jpg-wh_50 "/>
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/89/20/wKioL1gIqqPBXssaAAB11u47wLs483.jpg-wh_500x0-wm_3 -wmp_4-s_3591576399.jpg "title=" image 10.jpg "alt=" Wkiol1giqqpbxssaaab11u47wls483.jpg-wh_50 "/>
determine /dev/sdb1 partition auto mount after reboot
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/89/23/wKiom1gIqsfjVP9LAABYuUqJOM0748.jpg-wh_500x0-wm_3 -wmp_4-s_470634240.jpg "title=" image 11.jpg "alt=" Wkiom1giqsfjvp9laabyuuqjom0748.jpg-wh_50 "/>
Linux Chapter fifth (migrating/home partition)