Re: Software RAID guidance

2006-05-05 Thread David Robillard

Robert Fitzpatrick wrote:


I have an old NT4 PIII here that has a pair Adaptec Array1000 Family
controllers with 2 pairs of identical drives on one of them (2 IBM 9GB
and 2 Seagate 35GB). From what I googled, *nix does not support the
controller, so I have removed the RAID arrays and loaded FreeBSD 6.0
onto the two IBM drives. Now, I wanted to mirror the other two for data
and looking for guidance as to whether it is first of all suited for
software RAID and if so, CCD or vinum. I am contemplating vinum because
the handbook mentions CCD is when cost is the important factor and for
me, is reliability. What would someone suggest? If vinum, one thing I
don't quite understand is do I create the partitions to be used in the
device? There doesn't seem to be a man for gvinum and the link to it in
the handbook section 19.6.1 is broken.


Hi Robert,

I use gmirror(8) to setup RAID 1 volumes. I've used it successfully
with IDE, SCSI and SATA drives. It is very simple to setup and
administration is easy. If you only need RAID 1, then you should try
it out. Should you need RAID 5 and/or a fully fledged volume manager,
then vinum is the way.

I also wrote a document on gmirror(8) setup. If you're interested, I
can share it with you.

David

FYI: man page URLs

gmirror(8)
http://www.freebsd.org/cgi/man.cgi?query=gmirrorapropos=0sektion=0manpath=FreeBSD+6.0-RELEASE+and+Portsformat=html

vinum(4)
http://www.freebsd.org/cgi/man.cgi?query=vinumapropos=0sektion=0manpath=FreeBSD+6.0-RELEASE+and+Portsformat=html

--
David Robillard
UNIX systems administrator, CISSP
Montreal: +1 514 966 0122
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Software RAID guidance

2006-05-04 Thread Alex Zbyslaw

Robert Fitzpatrick wrote:


I have an old NT4 PIII here that has a pair Adaptec Array1000 Family
controllers with 2 pairs of identical drives on one of them (2 IBM 9GB
and 2 Seagate 35GB). From what I googled, *nix does not support the
controller, so I have removed the RAID arrays and loaded FreeBSD 6.0
onto the two IBM drives. Now, I wanted to mirror the other two for data
and looking for guidance as to whether it is first of all suited for
software RAID and if so, CCD or vinum. I am contemplating vinum because
the handbook mentions CCD is when cost is the important factor and for
me, is reliability. What would someone suggest? If vinum, one thing I
don't quite understand is do I create the partitions to be used in the
device? There doesn't seem to be a man for gvinum and the link to it in
the handbook section 19.6.1 is broken.
 

Just to give you another option.  You can support RAID1 using atacontrol 
to just make two disk into a RAID.  Plenty of posts in the archive with 
more info.  As an outsider (i.e. without any RAID) this option always 
seemed the simplest.  No doubt other with experience can tell you the 
relative merits of atacontrol vs gmirror.


--Alex


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Software RAID guidance

2006-05-04 Thread Robert Fitzpatrick
On Fri, 2006-05-05 at 00:37 +0100, Alex Zbyslaw wrote:
 Robert Fitzpatrick wrote:
 
 I have an old NT4 PIII here that has a pair Adaptec Array1000 Family
 controllers with 2 pairs of identical drives on one of them (2 IBM 9GB
 and 2 Seagate 35GB). From what I googled, *nix does not support the
 controller, so I have removed the RAID arrays and loaded FreeBSD 6.0
 onto the two IBM drives. Now, I wanted to mirror the other two for data
 and looking for guidance as to whether it is first of all suited for
 software RAID and if so, CCD or vinum. I am contemplating vinum because
 the handbook mentions CCD is when cost is the important factor and for
 me, is reliability. What would someone suggest? If vinum, one thing I
 don't quite understand is do I create the partitions to be used in the
 device? There doesn't seem to be a man for gvinum and the link to it in
 the handbook section 19.6.1 is broken.
   
 
 Just to give you another option.  You can support RAID1 using atacontrol 
 to just make two disk into a RAID.

Yes, I saw mention of atacontrol somewhere in the handbook, the drives
all SCSI. It seems atacontrol only addresses IDE? Excuse my ignorance on
the subject of ATA vs SCSI :/

files# atacontrol list
ATA channel 0:
Master: acd0 CD-ROM 50X/10 ATA/ATAPI revision 0
Slave:   no device present
ATA channel 1:
Master:  no device present
Slave:   no device present

-- 
Robert

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Software RAID guidance

2006-05-04 Thread Ian Jefferson
I have been uable to get vinum to work under 6.0.  I'm no expert though.

Vinum became gvinum in 6.0 and is implemented using geom.

Recently the gvinum man page has been updated and it available in 6.1
RC-1.

I think if you want mirroring only you should consult the geom pages.  It
seems as though geom is the way of the future but does not currently
support R5 which is what I was looking for.

Somewhere out there is a pretty comprehensive set of iozone benchmarks
comparing linux and BSD software Raid.  Ah found it:
http://www25.big.jp/~jam/filesystem/old/

This might give you some ideas.

On Thu, 4 May 2006, Robert Fitzpatrick wrote:

 I have an old NT4 PIII here that has a pair Adaptec Array1000 Family
 controllers with 2 pairs of identical drives on one of them (2 IBM 9GB
 and 2 Seagate 35GB). From what I googled, *nix does not support the
 controller, so I have removed the RAID arrays and loaded FreeBSD 6.0
 onto the two IBM drives. Now, I wanted to mirror the other two for data
 and looking for guidance as to whether it is first of all suited for
 software RAID and if so, CCD or vinum. I am contemplating vinum because
 the handbook mentions CCD is when cost is the important factor and for
 me, is reliability. What would someone suggest? If vinum, one thing I
 don't quite understand is do I create the partitions to be used in the
 device? There doesn't seem to be a man for gvinum and the link to it in
 the handbook section 19.6.1 is broken.

 Thanks in advance.

 --
 Robert

 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Software RAID guidance

2006-05-04 Thread Kevin Kinsey

Robert Fitzpatrick wrote:

I have an old NT4 PIII here that has a pair Adaptec Array1000 Family
controllers with 2 pairs of identical drives on one of them (2 IBM 9GB
and 2 Seagate 35GB). From what I googled, *nix does not support the
controller, so I have removed the RAID arrays and loaded FreeBSD 6.0
onto the two IBM drives. Now, I wanted to mirror the other two for data
and looking for guidance as to whether it is first of all suited for
software RAID and if so, CCD or vinum. I am contemplating vinum because
the handbook mentions CCD is when cost is the important factor and for
me, is reliability. What would someone suggest? If vinum, one thing I
don't quite understand is do I create the partitions to be used in the
device? There doesn't seem to be a man for gvinum and the link to it in
the handbook section 19.6.1 is broken.

Thanks in advance.



Unlike what some seem to be claiming, I *have* been able
to use gvinum on 6.X --- the documentation for vinum was
helpful, you just put a g in front of the commands; quid
pro quo, a few things in vinum aren't carried over into
gvinum, but it's basically the same stuff (thanks Lukas,
thanks Grog, etc.).

I did have some system instability during my trial, though;
I've put it down to a bad IDE HDD (because it gave issues
when not part of a gvinum plex as well), but I didn't give
it a serious amount of testing.

As for the handbook, you seem to be correct.  You might file
a doc PR --- they'd probably appreciate having the opportunity
to fix this.  However, I do find gvinum(8) on my box

Kevin Kinsey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Software RAID guidance

2006-05-04 Thread Robert Fitzpatrick
On Thu, 2006-05-04 at 19:59 -0400, Ian Jefferson wrote:
 I think if you want mirroring only you should consult the geom pages.

Great, I believe I have this setup right. I'm not sure what the fdisk
issue may be with the message 'fdisk: Geom not found', but all looks to
have setup properly. Now, just to have a clear understanding, what is
the purpose of /dev/mirror/datas1c as it is not used in creating the
mirror it seems?

files# geom mirror label -v -s 35000 data /dev/da2 /dev/da3
Metadata value stored on /dev/da2.
Metadata value stored on /dev/da3.
Done.
files# gmirror load
files# fdisk -vBI /dev/mirror/data
*** Working on device /dev/mirror/data ***
parameters extracted from in-core disklabel are:
cylinders=4462 heads=255 sectors/track=63 (16065 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=4462 heads=255 sectors/track=63 (16065 blks/cyl)

Information from DOS bootblock is:
1: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 63, size 71681967 (35000 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 365/ head 254/ sector 63
2: UNUSED
3: UNUSED
4: UNUSED
fdisk: Geom not found
files# ls -l /dev/mirror/
total 0
crw-r-  1 root  operator0, 127 May  4 20:48 data
crw-r-  1 root  operator0, 110 May  4 20:43 datas1
crw-r-  1 root  operator0, 117 May  4 20:43 datas1a
crw-r-  1 root  operator0, 118 May  4 20:43 datas1c
files# bsdlabel -wB /dev/mirror/datas1
files# newfs -U /dev/mirror/datas1a
/dev/mirror/datas1a: 35001.0MB (71681948 sectors) block size 16384, fragment 
size 2048
using 191 cylinder groups of 183.77MB, 11761 blks, 23552 inodes.
with soft updates
super-block backups (for fsck -b #) at:
 160, 376512, 752864, 1129216, 1505568, 1881920, 2258272, 2634624, 3010976, 
3387328, 3763680, 4140032,
 4516384, 4892736, 5269088, 5645440, 6021792, 6398144, 6774496, 7150848, 
7527200, 7903552, 8279904,
 8656256, 9032608, 9408960, 9785312, 10161664, 10538016, 10914368, 11290720, 
11667072, 12043424,
 12419776, 12796128, 13172480, 13548832, 13925184, 14301536, 14677888, 
15054240, 15430592, 15806944,
 16183296, 16559648, 16936000, 17312352, 17688704, 18065056, 18441408, 
18817760, 19194112, 19570464,
 19946816, 20323168, 20699520, 21075872, 21452224, 21828576, 22204928, 
22581280, 22957632, 2984,
 23710336, 24086688, 24463040, 24839392, 25215744, 25592096, 25968448, 
26344800, 26721152, 27097504,
 27473856, 27850208, 28226560, 28602912, 28979264, 29355616, 29731968, 
30108320, 30484672, 30861024,
 31237376, 31613728, 31990080, 32366432, 32742784, 33119136, 33495488, 
33871840, 34248192, 34624544,
 35000896, 35377248, 35753600, 36129952, 36506304, 36882656, 37259008, 
37635360, 38011712, 38388064,
 38764416, 39140768, 39517120, 39893472, 40269824, 40646176, 41022528, 
41398880, 41775232, 42151584,
 42527936, 42904288, 43280640, 43656992, 44033344, 44409696, 44786048, 
45162400, 45538752, 45915104,
 46291456, 46667808, 47044160, 47420512, 47796864, 48173216, 48549568, 
48925920, 49302272, 49678624,
 50054976, 50431328, 50807680, 51184032, 51560384, 51936736, 52313088, 
52689440, 53065792, 53442144,
 53818496, 54194848, 54571200, 54947552, 55323904, 55700256, 56076608, 
56452960, 56829312, 57205664,
 57582016, 57958368, 58334720, 58711072, 59087424, 59463776, 59840128, 
60216480, 60592832, 60969184,
 61345536, 61721888, 62098240, 62474592, 62850944, 63227296, 63603648, 
6398, 64356352, 64732704,
 65109056, 65485408, 65861760, 66238112, 66614464, 66990816, 67367168, 
67743520, 68119872, 68496224,
 68872576, 69248928, 69625280, 70001632, 70377984, 70754336, 71130688, 71507040
files# mount /dev/mirror/datas1a /data
files# df -h
Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/da0s1a3.8G 55M3.4G 2%/
devfs  1.0K1.0K  0B   100%/dev
/dev/da1s1d8.3G1.0G6.6G13%/usr
/dev/da0s1d4.0G4.2M3.7G 0%/var
/dev/mirror/datas1a 33G4.0K 30G 0%/data

-- 
Robert

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Software RAID guidance

2006-05-04 Thread Cheng-Lung Sung
You can try gmirror(8)
Ref: 
1. http://people.freebsd.org/~rse/mirror/
2. http://www.onlamp.com/lpt/a/6309
On Thu, May 04, 2006 at 07:24:15PM -0400, Robert Fitzpatrick wrote:
 I have an old NT4 PIII here that has a pair Adaptec Array1000 Family
 controllers with 2 pairs of identical drives on one of them (2 IBM 9GB
 and 2 Seagate 35GB). From what I googled, *nix does not support the
 controller, so I have removed the RAID arrays and loaded FreeBSD 6.0
 onto the two IBM drives. Now, I wanted to mirror the other two for data
 and looking for guidance as to whether it is first of all suited for
 software RAID and if so, CCD or vinum. I am contemplating vinum because
 the handbook mentions CCD is when cost is the important factor and for
 me, is reliability. What would someone suggest? If vinum, one thing I
 don't quite understand is do I create the partitions to be used in the
 device? There doesn't seem to be a man for gvinum and the link to it in
 the handbook section 19.6.1 is broken.
 
 Thanks in advance.

-- 
Cheng-Lung Sung - clsung@


pgp5qEjA4LT8h.pgp
Description: PGP signature


Re: Software RAID guidance

2006-05-04 Thread Cheng-Lung Sung

IMHO, fdisk is unnecessary. I got my two brand 
new HDs ad[46] mirrored w/o fdisk.

On Thu, May 04, 2006 at 09:15:39PM -0400, Robert Fitzpatrick wrote:
 On Thu, 2006-05-04 at 19:59 -0400, Ian Jefferson wrote:
  I think if you want mirroring only you should consult the geom pages.
 
 Great, I believe I have this setup right. I'm not sure what the fdisk
 issue may be with the message 'fdisk: Geom not found', but all looks to
 have setup properly. Now, just to have a clear understanding, what is
 the purpose of /dev/mirror/datas1c as it is not used in creating the
 mirror it seems?

Have you tried to mount it?

-- 
Cheng-Lung Sung - clsung@


pgpn7j51uTNwz.pgp
Description: PGP signature


Re: Software RAID guidance

2006-05-04 Thread Robert Fitzpatrick
On Fri, 2006-05-05 at 09:20 +0800, Cheng-Lung Sung wrote:
  Great, I believe I have this setup right. I'm not sure what the fdisk
  issue may be with the message 'fdisk: Geom not found', but all looks to
  have setup properly. Now, just to have a clear understanding, what is
  the purpose of /dev/mirror/datas1c as it is not used in creating the
  mirror it seems?
 
 Have you tried to mount it?
 

files# mount /dev/mirror/datas1c
mount: /dev/mirror/datas1c: unknown special file or file system

-- 
Robert

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Software RAID guidance

2006-05-04 Thread Cheng-Lung Sung
Hi,

newfs first?

In my experiment, there is only one mirror/gm0s1 exists (no s1a, s1c...)

On Thu, May 04, 2006 at 09:40:17PM -0400, Robert Fitzpatrick wrote:
 On Fri, 2006-05-05 at 09:20 +0800, Cheng-Lung Sung wrote:
   Great, I believe I have this setup right. I'm not sure what the fdisk
   issue may be with the message 'fdisk: Geom not found', but all looks to
   have setup properly. Now, just to have a clear understanding, what is
   the purpose of /dev/mirror/datas1c as it is not used in creating the
   mirror it seems?
  
  Have you tried to mount it?
  
 
 files# mount /dev/mirror/datas1c
 mount: /dev/mirror/datas1c: unknown special file or file system

-- 
Cheng-Lung Sung - clsung@


pgpK0zIgjIVTI.pgp
Description: PGP signature


Re: Software RAID guidance

2006-05-04 Thread Robert Fitzpatrick
On Fri, 2006-05-05 at 09:16 +0800, Cheng-Lung Sung wrote:
 1. http://people.freebsd.org/~rse/mirror/

Great doc, thanks! I was able to get the first part of the 2nd approach
booting from the gm0 mirror, but after booting and trying to add my da0
to the mirror, it does not recognize the device...I tried re-splicing
the drive in sysinstall with no help...

files# gmirror configure -a gm0s1
No such device: gm0s1.
files# df -h
Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/mirror/gm0s1a 8.3G1.2G6.4G16%/
devfs  1.0K1.0K  0B   100%/dev
/dev/mirror/datas1a 33G4.0K 30G 0%/data
files# ls -lah /dev/mirror/
total 1
dr-xr-xr-x  2 root  wheel  512 Dec 31  1969 .
dr-xr-xr-x  5 root  wheel  512 Dec 31  1969 ..
crw-r-  1 root  operator0, 116 May  4 23:43 data
crw-r-  1 root  operator0, 118 May  4 23:43 datas1
crw-r-  1 root  operator0, 121 May  4 19:43 datas1a
crw-r-  1 root  operator0, 122 May  4 23:43 datas1c
crw-r-  1 root  operator0, 109 May  4 23:43 gm0
crw-r-  1 root  operator0, 117 May  4 23:43 gm0s1
crw-r-  1 root  operator0, 119 May  4 19:43 gm0s1a
crw-r-  1 root  operator0, 120 May  4 23:43 gm0s1c

Again, not sure where mine is getting the s1c devices...while the data
mirror was setup with another doc, the gm0 setup flawlessly following
your 2nd approach.

-- 
Robert

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]