I've been searching for answers for two days and didn't find any definite answers on building RAID1 on SPARC. The main problem was with SILO (Sparc Improved boot LOader): can it boot from RAID partition or not. So I just tried it and it works.
I've done this on Debian, but it should be applicable to all Linux distributions.
Setup RAID1 on T5220 with 2 disks /dev/sda and /dev/sdb.
Here's the setup:
Currently only /dev/sda is active and sliced into 3 partitions:
/dev/sda1 is /boot (ext2)
/dev/sda2 is / (ext3)
/dev/sda4 is swap
/dev/sda3 only marks the whole disk. Like c partition on BSD.
/boot has ext2 since the installation. I really don't know why, but I'm keeping it.
First thing's first: compile support for RAID in the kernel (modules won't do)!
Second: using fdisk, change id of all the partitions you would like to add to RAID array to Linux raid autodetect (fd).
Copy the partition table to the next disk:
Using mdadm, create md devices with only one member! NOTE:
When creating md devices, it is wiser to name them the same as the disk devices are named, so that, for example, md2 includes sda2 and sdb2, md3 includes sda3 and sdb3 and so on. That removes the possible brain damage when adding more than 3 partitions in RAID.
Create filesystem on md0 and md1:
Mount both devices and copy data:
Unmount /boot and add the device to /dev/md0 and unswap /dev/sda4 and add it to /dev/md2:
Edit /etc/fstab and replace /dev/sda devices with /dev/md:
Edit silo.conf and replace only root option from:
root=/dev/sda2
to
root=/dev/md1
Everything else stays the same:
Create mdamd.conf from mdadm output: NOTE:
Perhaps even better method for creating mdamd.conf would be by using --examine instead of --detail, which doesn't include metadata information and removes occasional error regarding metadata version.
Reboot. After the system boots, add the remaining /dev/sda2 (ex root) to /dev/md1.
Wait for the devices to sync and you are finished.
At any point you can examine status of your RAID by reading /proc/mdstat:
That's it. OS boots from RAID partition. I even unplugged the disk to see the effects and it holds and boots. The only thing left was to force Linux to rescan the SCSI controller for devices once the removed disk was reinserted. This was done with a simple shell script:
Any comments and/or questions are welcome.
Hi Gurus,
We are migrating Oracle from Solaris to RHEL 7 and looking for Solaris equivalent commands for Linux.
we are using lot of korn shell scripts built on Solaris so, i am looking for equivalent commands which are using in Solaris..
Could you please help me here by proving any info ... (4 Replies)
Hi Gurus,
We are migrating Oracle from Solaris to RHEL 7 and looking for Solaris equivalent commands for Linux.
we are using lot of korn shell scripts built on Solaris so, i am looking for equivalent commands which are using in Solaris..
Could you please help me here by proving any info... (1 Reply)
Hi Oracle Linux users,
You can probably guess from the title what the question is:
Does anyone know if Oracle Linux (the Unbreakable variety I think that is) comes in a
SPARC release or, if not, will there be one some time soon ?
Many thanks,
P;):D:b: (2 Replies)
My Sparc 10 is not working and I would like to get some data file from it. Can I use Sparc HD as an external HD to a linux PC? If I do, dies linux PC will recognize this HD and not ask to format it?
Thanks a lot.
:confused: (5 Replies)
I have a Netra T5220 Solaris 10 server with LDoms installed and enabled. RAID1 is enabled in the control domain with the following slices:
d50 -m d51 d52 1
d51 1 1 c1t0d0s5
d52 1 1 c1t1d0s5
d10 -m d11 d12 1
d11 1 1 c1t0d0s0
d12 1 1 c1t1d0s0
d20 -m d21 d22 1
d21 1 1 c1t0d0s1
d22 1 1... (14 Replies)
Hi, I am wanting to get some input on an issue that I have encountered with Ubuntu 7.10 Gutsy. When installing Linux & booting Linux it freezes almost all the time, I don't know if it is the shell or whatever, but after SILO, it goes wild of freezes, then rebooting all the time. (The display... (0 Replies)
Hi there,
I am trying to mount a SAN volume (which is mapped to solaris sparc) partitioned with ufs filesystem onto a linux (intel processor 64bit) server.
*I have re-compiled the linux kernel t support ufs fstype with ro mount support.
filesystem on solaris:... (3 Replies)
Just that the Subject says.
I am looking for a C compiler for Linux x86 that will allow me to compile a C source code file and the resulting binary will be able to run on a Sparc running Solaris.
Thanks. (2 Replies)