How to add space to other partition?
hi there,
i want to install cpanel so i need more space in /, I want to add more space from /home to / am using centos 5.6 example: now is like this Filesystem Size Used Avail Use% Mounted on /dev/md2 1016G 1.8G 963G 1% / /dev/md1 496M 36M 435M 8% /boot /dev/md3 1.7T 196M 1.6T 1% /home i want to have like this Filesystem Size Used Avail Use% Mounted on /dev/md2 1.8G 2.8 T 1% / /dev/md1 36M 435M 8% /boot /dev/md3 196M 150G 1% /home if is possible without lousing any data. thanks. |
Quote:
I haven't used Linux software RAID enough to know the answer even if you had given enough info. But I do know how to use google. The first hit when I tried google to get your answer looks pretty good: http://www.howtoforge.com/how-to-res...-software-raid The first step described there also looks like a very good step to get the additional data someone would need in order to give you a better answer. Post the output from Code:
cat /proc/mdstat I also suggest posting the output from the following command as root: Code:
fdisk -l |
Quote:
Code:
[root@server3 ~]# cat /proc/mdstat fdisk -l : Code:
[root@server3 ~]# fdisk -l |
That info shows me your goal is a little trickier to reach than I would have expected. But it certainly is doable.
I looked at a few online descriptions of the process and I don't understand why they make it as difficult and dangerous as they do. I think it should be a little simpler than the online descriptions make it. But maybe there is some aspect of software RAID I'm misunderstanding. You should be aware of four layers for /home and three layers for / and that resizing must affect all layers. There might be some GUI tool that does all the layers together (as there is for non RAID partitions) making all this easy. I don't know it. You have a file system for /home. That file system is inside a RAID partition md3. That RAID partition is inside logical partitions sda5 and sdb5. Those logical partitions are inside extended partitions sda4 and sdb4. Lacking knowledge of a tool that coordinates the whole process, I think you would need to: 1) shrink the file system inside md3 2) shrink the RAID partition md3 3) shrink/move the logical partitions, I think leaving the freed space inside the extended partitions sda5 and sdb5. 4) shrink the extended partitions sda4 and sdb4 leaving the freed space before them Then 5) Extend the primary partitions sda3 and sdb3. 6) Extend the RAID partition md2. 7) Extend the filesystem inside md2. For step 5, online info I have read instead suggests: 5a) remove one of sda3 or sdb3 from md2 5b) grow the one that was removed 5c) replace and resync it 5d) remove the other 5e) grow it 5f) replace and resync it. I don't know if/why all that is needed. |
''You have a file system for /home. That file system is inside a RAID partition md3''
This means if i unsize this partition the raid 1 will not be active(will not mirrir)? |
Quote:
Hopefully some expert will soon look at posts 1 and 3 and give you a better answer. |
Quote:
Am ready to give you my server pass and to make it for me. contact me at b.sejdini(at)yahoo.com if you can help me with this. Thanks |
Quote:
BTW, have you ever resized a software RAID on Windows XP (I have). That is different but way harder, plus it required using Linux tools. Quote:
My own skill level is high enough to blunder through something like this in person (I have done many similar tasks that way) but not nearly high enough to deal with the extra challenge of working remotely. Since the system is so new, what is wrong with the plan of wipe it all out and install Centos (or Ubuntu if you really prefer) from scratch partitioned whatever way you want? But looking at your other thread also made me realize you don't really need/want to mess with resizing md3. You really want to delete md3. You can easily copy all of /home from md3 to some other directory on md2. Later you can dismount and eliminate /home and rename that other directory as /home. Then delete md3, sda5, sda4, sdb5 and sdb4. I think all that might even be doable while the full system is booted normally (as long as ordinary users aren't logged in). Then growing md2 should be somewhat simpler with sda4 and sdb4 completely gone. Growing md2 would still require being booted from something else. |
All times are GMT -5. The time now is 07:57 AM. |