raid 1

sorry ppls for my ignorance… I need a quick help… trying to setup opensuse 12.3 on a server but it seems it doesn’t see the raid field… I0m trying to set up mirroring… any help pls

Hi
12.3 is out of support…?

You need to either use fdisk or YaST Partitioner expert mode to set up the partitions as type ‘RAID’ , then use YaST partitioner to set up the RAID devices, format create mount point etc.

Else use fdisk and mdadm to setup.

Thx m8 for the fast response… I’ve tried to create a raid field in expert mode but it gives me something like I don’t have enough free drives… Sorry for not exact information but I’m not at that server at the moment… Do I have to dismount them or?

Hi
When you get to the partition part, on the first page (in expert) rescan the drives, then (I’m assuming there is no data on said drives) under the section ‘drives’ expand then select each drive eg sda if there is an sda1 then select edit and change it to a RAID type. Once your done with the drives, then in the section RAID you should be able to select the add button and select the drives eg sda1 sdb1 to ‘add’ also you need to select the radio button at the top for the raid type. Then just follow the on screen directions for formatting and setting the mount point. Note you do need a separate partition outside of the raid array to boot…

it works… thx but it tells me that I don’t have a swap partiton

Didn’t you create one??

Managed to create boot and home partitions on raid but it warns me that I don’t have swap partition so I’m trying to manage that too

On Fri 24 Apr 2015 05:26:02 PM CDT, racci wrote:

Managed to create boot and home partitions on raid but it warns me that
I don’t have swap partition so I’m trying to manage that too

Hi
So you only have the two disks? If so there are some additional things
to think about with respect to a disk failure so the system can boot
degraded…

sda1 - 512MB /boot
sda2 - 0.5 installed RAM part md0 RAID 0 swap priority 0
sda3 - 40GB / part md0 RAID 1
sda4 - balance /home part md1 RAID 1

sda1 - 512MB spare boot
sda2 - 0.5 installed RAM part md0 RAID 0 swap priority 1
sda3 - 40GB / part md0 RAID 1
sda4 - Balance /home part md1 RAID 1

Then every time there is a kernel update use the dd command to copy
sda1 to sdb1. You also need to install the bootloader mbr code
in /dev/sdb. Then in the event of sda failing it will give a starting
point to boot from (/etc/fstab needs a tweak and boot flag set), remove
the failed sda, put in a new device and rebuild the array.

If both fail or the controller, then it’s a restore from backup or
replace the controller…


Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel 3.12.39-47-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

Hi
My bad, aside from calling the second disk sda as well, it should be sdb…

The swap can be two separate partitions used as one and priority set, else just a RAID 0 pair as one swap.


sda2  0.5 installed RAM swap priority 0
sdb2  0.5 installed RAM swap priority 1

or

sda2  0.5 installed RAM part md0 RAID 0
sda2  0.5 installed RAM part md0 RAID 0

yeah I figured that one out… thank you you’re a life saver :wink:

I did all that… but I have one q… this what are you guiding me to do is software RAID isn’t it? … I have a hardware raid on this server and it’s configured… why doesn’t suse see it as one drive? thats my major concern…

Is it really hardware RAID or is it FAKE (BIOS assisted). If it is a chip on the mother board is is most likely FAKE. Note also some boards are FAKE also you have to take great care. FAKE is not real hardware RAID it helps on boot but the OS still uses software RAID. Read up on dmraid. In Linux that is what manages FAKE

well it is a chip on motherboard… it’s an intel se7320sp2 motherboard with 6300se intel raid I’m not sure but I belive it’s hardware… but if you say it’s not I’ll move on…

Nope it is BIOS assisted RAID aka FAKE
https://en.wikipedia.org/wiki/RAID#FAKE

well my friend you helped me A LOT… thank you for all your effort and I appreciate it verry much… you have a beer or somethin’ if you ever come to croatia zadar or similar :D…

I’ve gave up software raid on the MB and followed all of your instructions you gave me… I’ve created 2 partitions sda1 and sdb1 with 512MB as boot and spare boot… created 2 GB swap partitions on md0 as stripping… 40GB md1 as mirroring and rest on home partition… tried that about 10 times and I’ve got some ridicules errors on formatting disks… turns out the problem was on home partition… I’ve tried to set up XFS file format and it didn’t work… as I turned it to ext3 everythin’ went smooth… the only thing I’m still a little bit concerned is that I’m not sure if dd command worked but I’m running out of time atm so I have to finish this up… everything is up and running and I think I could manage to copy bootloader using some live CD…

once more thank you very much for your time and patience I really do appreciate it when someone gives his time to help a newbie…

cheers m8 :wink:

On Sun 26 Apr 2015 03:06:02 PM CDT, racci wrote:

well my friend you helped me A LOT… thank you for all your effort and
I appreciate it verry much… you have a beer or somethin’ if you ever
come to croatia zadar or similar :D…

I’ve gave up software raid on the MB and followed all of your
instructions you gave me… I’ve created 2 partitions sda1 and sdb1 with
512MB as boot and spare boot… created 2 GB swap partitions on md0 as
stripping… 40GB md1 as mirroring and rest on home partition… tried
that about 10 times and I’ve got some ridicules errors on formatting
disks… turns out the problem was on home partition… I’ve tried to
set up XFS file format and it didn’t work… as I turned it to ext3
everythin’ went smooth… the only thing I’m still a little bit
concerned is that I’m not sure if dd command worked but I’m running out
of time atm so I have to finish this up… everything is up and running
and I think I could manage to copy bootloader using some live CD…

once more thank you very much for your time and patience I really do
appreciate it when someone gives his time to help a newbie…

cheers m8 :wink:

Hi
What you sometimes have is filesystem remnants on the partition, so
before creating the raid partitions (and only the partitions your
needing) run wipefs on the partition then create the raid etc.

Just mount it temporarily and check eg;


mount /dev/sdb1 /mnt
ls -la /mnt
umount /mnt


Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel 3.12.39-47-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!