# /dev/ad4: 8 partitions: # size offset fstype [fsize bsize bps/cpg] c: 488397168 0 unused 0 0 # "raw" part, don't edit e: 488397168 0 4.2BSD 0 0 0 # /dev/ad6: 8 partitions: # size offset fstype [fsize bsize bps/cpg] c: 488397168 0 unused 0 0 # "raw" part, don't edit e: 488397168 0 4.2BSD 0 0 0
euterpe# ccdconfig ccd0 32 0x02 /dev/ad4e /dev/ad6e
# /dev/ccd0: 8 partitions: # size offset fstype [fsize bsize bps/cpg] c: 976794304 0 unused 0 0 # "raw" part, don't edit
euterpe# newfs /dev/ccd0c
euterpe% iostat -c 9999 ad0 ad4 ad6 tty ad0 ad4 ad6 cpu tin tout KB/t tps MB/s KB/t tps MB/s KB/t tps MB/s us ni sy in id 0 12 7.75 2 0.01 15.99 83 1.30 15.99 83 1.30 0 0 19 9 72 0 231 0.00 0 0.00 16.00 324 5.06 16.00 324 5.06 2 0 68 30 0 0 77 0.00 0 0.00 16.00 280 4.37 16.00 280 4.37 2 0 69 30 0 0 77 0.00 0 0.00 16.00 303 4.73 16.00 303 4.73 1 0 69 30 0 0 77 0.00 0 0.00 16.00 306 4.78 16.00 306 4.78 2 0 63 33 2 0 77 0.00 0 0.00 16.00 391 6.11 16.00 391 6.11 3 0 66 31 0 0 77 0.00 0 0.00 15.97 426 6.64 16.00 425 6.64 1 0 77 23 0 0 77 7.60 5 0.04 16.00 413 6.45 16.00 413 6.45 4 0 59 38 0 0 77 16.00 3 0.05 16.00 402 6.29 16.00 402 6.29 2 0 72 26 0 0 77 0.00 0 0.00 16.00 418 6.53 16.00 417 6.51 2 0 69 30 0 0 77 0.00 0 0.00 16.00 348 5.43 16.00 348 5.43 2 0 63 35 0 0 77 0.00 0 0.00 16.00 380 5.93 16.00 380 5.93 2 0 70 29 0 0 77 0.00 0 0.00 15.94 434 6.75 15.99 433 6.75 2 0 65 33 0
euterpe% df -h /usr/home Filesystem Size Used Avail Capacity Mounted on /dev/concat/gc0a 1.0T 514G 432G 54% /usr/home euterpe% gmirror status Name Status Components mirror/gm2 COMPLETE ad4 ad6 mirror/gm0 COMPLETE ad12 ad14 mirror/gm1 COMPLETE ad16 ad18 euterpe% gstripe status Name Status Components stripe/st0 UP mirror/gm0 mirror/gm1 euterpe% gconcat status Name Status Components concat/gc0 UP mirror/gm2 stripe/st0 euterpe%
$ df -h Filesystem Size Used Avail Capacity Mounted on /dev/mirror/gm9s1a 496M 329M 127M 72% / devfs 1.0K 1.0K 0B 100% /dev /dev/mirror/gm9s1d 496M 24K 456M 0% /tmp /dev/mirror/gm9s1e 1.9G 371M 1.4G 20% /var /dev/mirror/gm9s1f 221G 2.4G 201G 1% /usr /dev/mirror/gm0 2.6T 992G 1.5T 40% /usr/home $ gmirror status Name Status Components mirror/gm9 COMPLETE ada0 ada1 mirror/gm0 COMPLETE ada2 ada3 $ cat /var/run/dmesg.boot | egrep "ada[0-9]\:" ada0: <ST3250410AS 4.AAA> ATA-7 SATA 2.x device ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) ada0: Command Queueing enabled ada0: 238475MB (488397168 512 byte sectors: 16H 63S/T 16383C) ada1: <ST3250312AS JC45> ATA-8 SATA 3.x device ada1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) ada1: Command Queueing enabled ada1: 238475MB (488397168 512 byte sectors: 16H 63S/T 16383C) ada2: <Hitachi HUA723030ALA640 MKAOA580> ATA-8 SATA 3.x device ada2: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) ada2: Command Queueing enabled ada2: 2861588MB (5860533168 512 byte sectors: 16H 63S/T 16383C) ada3: <Hitachi HUA723030ALA640 MKAOA580> ATA-8 SATA 3.x device ada3: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) ada3: Command Queueing enabled ada3: 2861588MB (5860533168 512 byte sectors: 16H 63S/T 16383C) $
Filesystem Size Used Avail Capacity Mounted on /dev/mirror/gm0s1d 451G 2.0K 415G 0% /backup
Geom name: gm0 State: DEGRADED Components: 2 Balance: round-robin Slice: 4096 Flags: NONE GenID: 0 SyncID: 1 ID: 1281368106 Providers: 1. Name: mirror/gm0 Mediasize: 500107861504 (466G) Sectorsize: 512 Mode: r2w1e3 Consumers: 1. Name: ad4 Mediasize: 500107862016 (466G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: NONE GenID: 0 SyncID: 1 ID: 3676727894 2. Name: ad5 Mediasize: 500107862016 (466G) Sectorsize: 512 Mode: r1w1e1 State: SYNCHRONIZING Priority: 0 Flags: DIRTY, SYNCHRONIZING GenID: 0 SyncID: 1 Synchronized: 15% ID: 2313025836
lucas
what does ``Hardcode providers' names in metadata.'' mean? see man 8 gmirror, option -h.
-h hardcode the provider name (mirror0) in metadata
on the component (consumer) device (da1s1e);
without this, the mirror configuration is
effectively stored in memory and thus won't be
remembered if the mirror is torn down