Software RAID guidance

Robert Fitzpatrick lists at webtent.net
Fri May 5 01:15:41 UTC 2006


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  operator    0, 127 May  4 20:48 data
crw-r-----  1 root  operator    0, 110 May  4 20:43 datas1
crw-r-----  1 root  operator    0, 117 May  4 20:43 datas1a
crw-r-----  1 root  operator    0, 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, 23333984,
 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, 63980000, 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             Size    Used   Avail Capacity  Mounted on
/dev/da0s1a            3.8G     55M    3.4G     2%    /
devfs                  1.0K    1.0K      0B   100%    /dev
/dev/da1s1d            8.3G    1.0G    6.6G    13%    /usr
/dev/da0s1d            4.0G    4.2M    3.7G     0%    /var
/dev/mirror/datas1a     33G    4.0K     30G     0%    /data

-- 
Robert



More information about the freebsd-questions mailing list