Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have been told that my dedicated server (which I use for hosting my websites) has RAID 1 (software), which makes my two disks of 750gb each, act as one, which is good for both speed and instant backup (in case one of them explodes or something)

But I'm not serving any critical application, and I would prefer to be able to use the second disk for daily or semanal backups.

So how do I remove the RAID 1 thing so I can use all the disk space as I wish?

Here's the result for $ df -h, in case you need it:

Filesystem            Size  Used Avail Use% Mounted on
/dev/md1              9.7G  1.7G  7.6G  18% /
/dev/md2              683G  290M  649G   1% /home
tmpfs                 4.0K     0  4.0K   0% /dev/shm

I'm on Centos 5.5

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

What you want to do is something like this:

#Break the array, removing the mirror
mdadm --manage /dev/md2 --fail /dev/sdb1
mdadm --manage /dev/md2 --remove /dev/sdb1
#Create a new file system on the mirror
mke2fs -t ext4 -j /dev/sdb1
#Mount the mirror so you can use it
mkdir /mnt/backup
mount /dev/sdb1 /mnt/backup

Please note that this is a very dangerous set of instructions, and they can destroy all your data. Do not just copy them verbatim! Make sure you have an up-to-date backup of the system and that you verify that each step is suitable for your environment.

share|improve this answer
    
And after breaking the software raid he will probably need to adapt files like /etc/fstab and /boot/grub/menu.lst (if using grub) ? Please expand. –  rems Feb 25 '11 at 18:48
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.