Hi i need a lil help. I've gotten a new dedicated server since my other server was totally unstable hardware wise. Thing is the new hosting co that i switched to that setup the os and set up raid din't add a swapspace and formatted the whole disk in one partition. Any clues how i could shrink the partition to make room so i can add a swap partition without causing harm to the os and files? Raid runs with md. Any help would be appreciated. Thanx.
You will need to restart it into emergency screen and do it from there. Just for verifying, can you post results of top and df command
Could you give me more details about this "emergency screen"? I guess you mean safe mode or something? I only have ssh access . How do i get ssh to work in singe user mode? Here's the related processes running: 1013 root 10 -5 0 0 0 S 0 0.0 0:00.22 md0_raid1 781 root 10 -5 0 0 0 S 0 0.0 0:00.00 scsi_eh_3 780 root 10 -5 0 0 0 S 0 0.0 0:00.00 scsi_eh_2 779 root 11 -5 0 0 0 S 0 0.0 0:00.01 scsi_eh_1 778 root 11 -5 0 0 0 S 0 0.0 0:00.01 scsi_eh_0 16 root 10 -5 0 0 0 S 0 0.0 0:00.00 kblockd/0 17 root 10 -5 0 0 0 S 0 0.0 0:00.00 kblockd/1 3 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/0 6 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/1 4 root RT 0 0 0 0 S 0 0.0 0:00.00 watchdog/0 7 root RT 0 0 0 0 S 0 0.0 0:00.00 watchdog/1 Code (markup):
You will need a KVM/IP for accessing your server when booting it in single user mode. Otherwise, you will need to ask your host to do it for you. I don't care about your processes, but I asked for the top-lines of result of top command, and the result of df command
I was looking more into doing from ssh access kvm is $$ df's result is Filesystem 1K-blocks Used Available Use% Mounted on /dev/md0 153794596 10381416 135600780 8% / tmpfs 513828 0 513828 0% /lib/init/rw udev 10240 32 10208 1% /dev tmpfs 513828 0 513828 0% /dev/shm none 65536 2184 63352 4% /tmp Code (markup): I was thinking removing the raid partition format one drive move everything over to the other reboot to that partition smaller partition then format the other one too then redo raid. Is that possible?
I am not familiar with software raid. All our systems are using true hardware raid. I have heard once from my hardware vendor that software raid is not as easy as hardware raid. You will need to very familiar with Linux file system to do the raid tasks. Might be someone else can jump in and help. However, I still doubt that you can do in ssh only, without KVM or serial console. Make sure to backup your data before touching anything
007c, You do not have to resize the RAID to make space for swap. You can just create a local loopback and use it as swap. Secondly, you can't resize a RAID parition. You need to reformat it