Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Jun 2013 16:00:59 +0200
From:      Patrick Proniewski <patpro@patpro.net>
To:        freebsd-hardware@freebsd.org
Subject:   getting rid of a RAID controler
Message-ID:  <D8111AF3-28CB-488E-A1EC-57D62631749A@patpro.net>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Hello,

I have a server, far away in a datacenter, running FreeBSD 8.1. The server has a PCIe 3ware 9650SE-4LPML RAID controller.
The configuration is this one: 

RAID 1, 2 disks : System, binaries, and some user data
JBOD/Passthrough, 1 disk, user data
JBOD/Passthrough, 1 disk, user data

/, /tmp, and /var are UFS
/usr/local, /usr/ports, /home are ZFS

I want to get rid of the 3ware and plug my HDDs on the motherboard, so I'm facing few challenges:

- how can I make sure HDDs will be recognized natively when they are not "served" by the RAID controller?
- how can I make sure I can boot from one of my mirrored HDD?
- how can I recreate a RAID 1 array from the 2 mirrored HDD?

I know I'll have to edit /etc/fstab, and export/import ZFS.
I know the 3ware controller reserves the first Mb on each HDD to write info/config about arrays.

I can spend only limited time in the datacenter, and have to plan a long time ahead for each visit, so the most I can do remotely, the better it is.
I'm thinking about this scenario: 

0- export ZFS pools
1- break mirror: plug HDD "A" to motherboard, leave HDD "B" on RAID controller, boot from "B"
2- format and partition "A" to prepare for a software RAID (gpart?), rsync data from "B" to "A", tweak fstab on "A"
3- remove RAID controller, plug HDDs "B", "C", "D" to motherboard, boot from "A"
4- format "B", add "B" to software RAID, reconstruct mirror
5- reboot from A+B RAID 1, import ZFS pools

Any piece of advice is welcome, anybody who has some experience in that field is welcome. I've used gpart only once, copy-pasting from a tutorial, and I don't know how to deal with the creation of a "one hdd RAID 1 array" (step 2).
I don't know if my HDDs will be recognized without formatting ("C" and "D").
If it's absolutely sure they are recognized without a format step, I guess I can just export ZFS, change fstab, plug all HDDs on motherboard, reboot from one half of the mirror and do everything else remotely.

thanks,
Patrick


[-- Attachment #2 --]
0	*H
010	+0	*H

M0400
	*H
0}10	UIL10U

StartCom Ltd.1+0)U"Secure Digital Certificate Signing1)0'U StartCom Certification Authority0
071024210155Z
171024210155Z010	UIL10U

StartCom Ltd.1+0)U"Secure Digital Certificate Signing1806U/StartCom Class 1 Primary Intermediate Client CA0"0
	*H
0
	-).2AUGo#G
B|NDRpM-B=o-we5JQpa>O.#._<V
[~**pz~3WG.ᘟMlr[<Ce6fqO"uxfWN#uicgkv$Lb%y`_{`xK'GN00U00U0USr풜\|~5NԸQ0U#0N@[i04hCA0f+Z0X0'+0http://ocsp.startssl.com/ca0-+0!http://www.startssl.com/sfsca.crt0[UT0R0'%#!http://www.startssl.com/sfsca.crl0'%#!http://crl.startssl.com/sfsca.crl0U y0w0u+70f0.+"http://www.startssl.com/policy.pdf04+(http://www.startssl.com/intermediate.pdf0
	*H

}x,\c^#wMq}>UK/^yX֏y	frMIŲB61ymQ󸟆ҨݬZ0&;@#13qۑ&	̢o	6r_;GO>*I(	74XS1r3)!LJy6Kotˆ#
_wSr
;B
ADp(fs䰷6%.W0J3:bC<8t X1<Cn=t==wST~\wkBf|15zUP)(IjVB!OfI=bb\4-*em/нSJm7N[]'@ڽD9Kr>R7/|o^I@ټ'Pa$ z9a'L)(
I}vcH]۸D*W}
m>Q|C.(,lQ00
D0
	*H
010	UIL10U

StartCom Ltd.1+0)U"Secure Digital Certificate Signing1806U/StartCom Class 1 Primary Intermediate Client CA0
121004043928Z
131004184306Z0Y10U
zm88vYvifJz4tIj910Upatpro@patpro.net1 0	*H
	patpro@patpro.net0"0
	*H
0
Ϟ4*7.'4$iZ
z/'O^;x}1aXH'1D2CT)+dIjHs2rwx||6xlS?$vu!+P
4<ę6@FAaF:X:F0Xf|}
U?6N,)7NΗ<Kp3}`jk(-7pg62ޤ00	U00U0U%0++0U(50.h
;J0U#0Sr풜\|~5NԸQ0U0patpro@patpro.net0!U 00+700.+"http://www.startssl.com/policy.pdf04+(http://www.startssl.com/intermediate.pdf0+00' StartCom Certification Authority0This certificate was issued according to the Class 1 Validation requirements of the StartCom CA policy, reliance only for the intended purpose in compliance of the relying party obligations.0+00' StartCom Certification Authority0dLiability and warranties are limited! See section "Legal and Limitations" of the StartCom CA policy.06U/0-0+)'%http://crl.startssl.com/crtu1-crl.crl0+009+0-http://ocsp.startssl.com/sub/class1/client/ca0B+06http://aia.startssl.com/certs/sub.class1.client.ca.crt0#U0http://www.startssl.com/0
	*H
3aCY0~
V$W:¾B#5K5au=iIQ.jKvb`x=.E%UzO/A4ţ}gP+>[)=ꯊ&w@Urd)֜s߫@ec
 M$v7~_*6%޹m>T^?`3|sg/q/4<(~^*_'PfR=k/[,dk+
,]vm1o0k0010	UIL10U

StartCom Ltd.1+0)U"Secure Digital Certificate Signing1806U/StartCom Class 1 Primary Intermediate Client CA
D0	+0	*H
	1	*H
0	*H
	1
130612140100Z0#	*H
	1]:iH'rʓ=nHvg0	+710010	UIL10U

StartCom Ltd.1+0)U"Secure Digital Certificate Signing1806U/StartCom Class 1 Primary Intermediate Client CA
D0*H
	1010	UIL10U

StartCom Ltd.1+0)U"Secure Digital Certificate Signing1806U/StartCom Class 1 Primary Intermediate Client CA
D0
	*H
`w&|5Z6$c"Jv4cLqX*ɤ}a؃uT#
5n47^
BG_YuҭsԦ!e/m	øPrbkG)Ts#3mzsx`~
IJtc`kM{ը헜k#SpgFYe6Nʀ.lz1YJY$aBgWq@DOb,{se&:凰	l

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D8111AF3-28CB-488E-A1EC-57D62631749A>