openSUSE Forums > Install/Boot/Login » Howto remove active Software Raid ?

Go Back   openSUSE Forums > Install/Boot/Login
Forums FAQ Members List Search Today's Posts Mark Forums Read


Install/Boot/Login Questions about installation, login, boot issues, partitioning, file systems, software that runs at boot (GRUB, LILO, boot scripts)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-Nov-2009, 13:38
Puzzled Penguin
 
Join Date: Nov 2009
Posts: 2
raptorxp hasn't been rated much yet
Default Howto remove active Software Raid ?

Hi,

I already searched for a solution for my problem on this Forum, but I can't find any help.

My problem:
On my Server I have a partition named /dev/md1, that is my main partition for the OS, created from /dev/hda2 and /dev/hdc2 (Softwareraid).
What I want to do is to remove this Raid without deleting files and without having to reinstall the System.

My question:
What have I to do to
a) disable / remove the RAID?
b) let the System being bootable after doing that?

regards, raptorxp
Reply With Quote
  #2 (permalink)  
Old 01-Nov-2009, 20:08
Student Penguin
 
Join Date: Aug 2008
Location: Temporarily, planet Earth
Posts: 50
BotKeeper hasn't been rated much yet
Default Re: Howto remove active Software Raid ?

You will first have to save the data on another media (say a removable disk or inactive disk partition). You can use dump, tar, or cpio. I prefer dump since it saves ACLs and file XATTRs. I use a command like
Code:
dump -j0f /media/disk/root.dump /
to create a file /media/disk/root.dump. It is best to boot a live CD to do this.

Then, while the live CD is still booted split the disk. All you will have to do is a mkfs.ext3 on what ever partitions. For example,
Code:
mkfs.ext3 /dev/hda2
Then, mount the new partition and restore
Code:
mount -t ext3 -oacl,user_xattr /dev/hda2 /mnt
cd /mnt
restore -raof /media/disk/root.dump
The final step is to fix the file /mnt/etc/fstab to use the new partition and so something like
Code:
mount -t proc none /mnt/proc
mount -o bind /sys /mnt/sys
mount -o bind /dev /mnt/dev
chroot /mnt
mkinitrd
exit
Reply With Quote
  #3 (permalink)  
Old 02-Nov-2009, 11:53
Puzzled Penguin
 
Join Date: Nov 2009
Posts: 2
raptorxp hasn't been rated much yet
Default Re: Howto remove active Software Raid ?

Thanks for the first answer, but my problem is that I need to remove the RAID on a running Server (where I have no option to use a Live-CD).

The main Problem is that after some reboots (necessary on that system to get some functions running properly) the Software-RAID doesn't work and the system comes only up with Sinlge User Mode (like an init 2. without Network, SSH and bash) and only allows sh as console.

I know that under Solaris it is possible to remove even a Software RAID when the system partition is involved.
Reply With Quote
  #4 (permalink)  
Old 06-Nov-2009, 13:00
Puzzled Penguin
 
Join Date: Sep 2009
Posts: 22
cheongi hasn't been rated much yet
Default Re: Howto remove active Software Raid ?

According to the software maintainer, YaST does not support partitioned software raid.

See last commenthttps://bugzilla.novell.com/show_bug.cgi?id=548132

Why not rebuild the array with mdadm? Note a degraded array can take a very long time (several hours) to rebuild and the command line mdadm does this in background mode and if you want a progress indication, have to manually ask it.

mdadm can certainly stop an array, but then you probably have to remove the raid entry in fstab to stop the system looking for it on boot. (No expert in this but have spend a lot of time struggling with raid1.)

This is the best guide I have seen to date, though is a bit late on mentioning mdadm.
The Software-RAID HOWTO

There were some tricks to building a bootable system on raid. How to install openSUSE on software RAID - openSUSE. Perhaps there migth be some clues how to remove??
__________________
HP ML110G5 E8400 2GB
openSUSE 11.1, 11.2RC2 x86_64
eVGA 8400GS PCI
Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2