Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello
On our server we have two 750 gig hard drive which are in software raid mod
the server is up and running with OS and everything on first hard sda0
I need to disable raid on hard drives so i can use both hard drive sepreatly
as sda0 and sdb0
I dont want to touch anything on first hard drive just get second hard out of raid and repartion and reformat it for my backup usage
How can i do this ?
Regards
Once there are no unfailed partitions on sdb you can safely reuse it. You can't change sda to non-raid without saving the data and reformatting the partition, but that's ok. It won't hurt anything to leave it as a degraded raid 1.
Last edited by smallpond; 04-21-2011 at 08:14 AM.
Reason: Forgot a line
md0 : active raid1 sdb1[1] sda1[0]
4198976 blocks [2/2] [UU]
md1 : active raid1 sdb2[1] sda2[0]
2104448 blocks [2/2] [UU]
md2 : active raid1 sdb3[1] sda3[0]
726266432 blocks [2/2] [UU]
So i just need to follow the rest of your guide ? and then fdisk sdb and repartiton right ?
It wont cause any damage to first hard drive and OS on it ?
Regards
Thanks
I have done as you said also removed mdadm.conf in /etc
then re foramtted second hard and re partitioned it.
The only thing is little strange is
when i type fdisk -l i see following
Quote:
Disk /dev/sda: 300.0 GB, 300069052416 bytes
255 heads, 63 sectors/track, 36481 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 262 2102562 fd Linux raid autodetect
/dev/sda2 263 295 265072+ fd Linux raid autodetect
/dev/sda3 296 36481 290664045 fd Linux raid autodetect
Disk /dev/sdb: 300.0 GB, 300069052416 bytes
255 heads, 63 sectors/track, 36481 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 24320 195350368+ 83 Linux
/dev/sdb2 24321 36481 97683232+ 83 Linux
Disk /dev/md2: 297.6 GB, 297639870464 bytes
2 heads, 4 sectors/track, 72665984 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md2 doesn't contain a valid partition table
Disk /dev/md1: 271 MB, 271319040 bytes
2 heads, 4 sectors/track, 66240 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md1 doesn't contain a valid partition table
Disk /dev/md0: 2152 MB, 2152923136 bytes
2 heads, 4 sectors/track, 525616 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md0 doesn't contain a valid partition table
and when type cat /proc/mdstat i see following
Quote:
md0 : active raid1 sda1[0]
2102464 blocks [2/1] [U_]
md1 : active raid1 sda2[0]
264960 blocks [2/1] [U_]
md2 : active raid1 sda3[0]
290663936 blocks [2/1] [U_]
It seems second hard drive is no longer in raid mode but first one is somehow still raid
So am i ok or need to do something more ?
Regards
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.