How do I remount existing raid 0 without loosing data(fresh
Posted: Thu Nov 15, 2007 9:16 pm
How do I remount a raid array that was already made and configured before a fresh install?
I'm trying to decipher TheeMahns How-To on creating a raid-0 array but not erase my data. Here's what I'm guessing:
This is where I get a little lost, I don't want to loose my data already on there: (obviously subbing my /dev/sd_)
With any luck, I would be able to skip the some of the process in the above code and just identify a working raid array with:
after that point I think I can handle the rest, by making my mounting directory to what ever or wherever I wish, and mount it with
(Thank you again ccal!)
So, My hang up in the process is not destroying the data already on the raid 0 I have. Any input/ideas?
I'm trying to decipher TheeMahns How-To on creating a raid-0 array but not erase my data. Here's what I'm guessing:
- Code: Select all
sudo apt-get install mdadm
This is where I get a little lost, I don't want to loose my data already on there: (obviously subbing my /dev/sd_)
- Code: Select all
sudo mdadm --create /dev/md0 --level=0 --raid-devices=2 /dev/sdb1 /dev/sdc1
With any luck, I would be able to skip the some of the process in the above code and just identify a working raid array with:
- Code: Select all
sudo cat /proc/mdstat
after that point I think I can handle the rest, by making my mounting directory to what ever or wherever I wish, and mount it with
- Code: Select all
sudo cat /proc/mdstat
sudo mount -t ext3 /dev/md0 /mnt/whatever
sudo nano -w /etc/fstab
/dev/md0 /media/whatever ext3 rw,noatime,user,noauto 0 0
sudo mkdir /media/my_mountpoint
(Thank you again ccal!)
So, My hang up in the process is not destroying the data already on the raid 0 I have. Any input/ideas?