START sys/dev/softraid 2024-07-15T07:25:49Z ==== run-mount-0 ==== make -C /usr/src/regress/sys/dev/softraid mount-0 umount -f /mnt/regress-softraid || true umount: /mnt/regress-softraid: not currently mounted rmdir /mnt/regress-softraid || true rmdir: /mnt/regress-softraid: No such file or directory for d in `bioctl softraid0 | awk '/^softraid0/{print $5}'`; do bioctl -d $d; done for v in `vnconfig -l | awk -F'[ :]' '/^vnd[123]:/ && !/not in use/{print $1}'`; do vnconfig -u $v; done ==== vnd-1 ==== rm -f diskimage1 dd if=/dev/null of=diskimage1 bs=1m seek=1100 0+0 records in 0+0 records out 0 bytes transferred in 0.000 secs (0 bytes/sec) vnconfig vnd1 diskimage1 printf "RAID *" | disklabel -wAT- vnd1 [ `disklabel vnd1 | grep -c '\'` -eq 1 ] ==== vnd-2 ==== rm -f diskimage2 dd if=/dev/null of=diskimage2 bs=1m seek=1100 0+0 records in 0+0 records out 0 bytes transferred in 0.000 secs (0 bytes/sec) vnconfig vnd2 diskimage2 printf "RAID *" | disklabel -wAT- vnd2 [ `disklabel vnd2 | grep -c '\'` -eq 1 ] ==== vnd-3 ==== rm -f diskimage3 dd if=/dev/null of=diskimage3 bs=1m seek=1100 0+0 records in 0+0 records out 0 bytes transferred in 0.000 secs (0 bytes/sec) vnconfig vnd3 diskimage3 printf "RAID *" | disklabel -wAT- vnd3 [ `disklabel vnd3 | grep -c '\'` -eq 1 ] ==== raid-0 ==== bioctl -c 0 -l vnd1a,vnd2a,vnd3a softraid0 softraid0: RAID 0 volume attached as sd2 ==== mount-0 ==== printf "/ *" | disklabel -wAT- "`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`" newfs "/dev/r`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`a" /dev/rsd2a: 3299.1MB in 6756480 sectors of 512 bytes 17 cylinder groups of 202.50MB, 12960 blocks, 25920 inodes each super-block backups (for fsck -b #) at: 160, 414880, 829600, 1244320, 1659040, 2073760, 2488480, 2903200, 3317920, 3732640, 4147360, 4562080, 4976800, 5391520, 5806240, 6220960, 6635680, mkdir -p /mnt/regress-softraid mount "/dev/`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`a" /mnt/regress-softraid make -C /usr/src/regress/sys/dev/softraid detach ==== detach ==== umount /mnt/regress-softraid bioctl -d `bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'` ==== run-fill-compare-0 ==== make -C /usr/src/regress/sys/dev/softraid mount-0 umount -f /mnt/regress-softraid || true umount: /mnt/regress-softraid: not currently mounted rmdir /mnt/regress-softraid || true for d in `bioctl softraid0 | awk '/^softraid0/{print $5}'`; do bioctl -d $d; done for v in `vnconfig -l | awk -F'[ :]' '/^vnd[123]:/ && !/not in use/{print $1}'`; do vnconfig -u $v; done ==== vnd-1 ==== rm -f diskimage1 dd if=/dev/null of=diskimage1 bs=1m seek=1100 0+0 records in 0+0 records out 0 bytes transferred in 0.000 secs (0 bytes/sec) vnconfig vnd1 diskimage1 printf "RAID *" | disklabel -wAT- vnd1 [ `disklabel vnd1 | grep -c '\'` -eq 1 ] ==== vnd-2 ==== rm -f diskimage2 dd if=/dev/null of=diskimage2 bs=1m seek=1100 0+0 records in 0+0 records out 0 bytes transferred in 0.000 secs (0 bytes/sec) vnconfig vnd2 diskimage2 printf "RAID *" | disklabel -wAT- vnd2 [ `disklabel vnd2 | grep -c '\'` -eq 1 ] ==== vnd-3 ==== rm -f diskimage3 dd if=/dev/null of=diskimage3 bs=1m seek=1100 0+0 records in 0+0 records out 0 bytes transferred in 0.000 secs (0 bytes/sec) vnconfig vnd3 diskimage3 printf "RAID *" | disklabel -wAT- vnd3 [ `disklabel vnd3 | grep -c '\'` -eq 1 ] ==== raid-0 ==== bioctl -c 0 -l vnd1a,vnd2a,vnd3a softraid0 softraid0: RAID 0 volume attached as sd2 ==== mount-0 ==== printf "/ *" | disklabel -wAT- "`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`" newfs "/dev/r`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`a" /dev/rsd2a: 3299.1MB in 6756480 sectors of 512 bytes 17 cylinder groups of 202.50MB, 12960 blocks, 25920 inodes each super-block backups (for fsck -b #) at: 160, 414880, 829600, 1244320, 1659040, 2073760, 2488480, 2903200, 3317920, 3732640, 4147360, 4562080, 4976800, 5391520, 5806240, 6220960, 6635680, mkdir -p /mnt/regress-softraid mount "/dev/`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`a" /mnt/regress-softraid ==== fill ==== time cp -r /bin /mnt/regress-softraid/ 6.01 real 0.00 user 0.14 sys make -C /usr/src/regress/sys/dev/softraid detach ==== detach ==== umount /mnt/regress-softraid bioctl -d `bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'` ==== compare ==== bioctl -c 0 -l vnd1a,vnd2a,vnd3a -p passfile softraid0 softraid0: RAID 0 volume attached as sd2 bioctl softraid0 Volume Status Size Device softraid0 0 Online 3459317760 sd2 RAID0 0 Online 1153163264 0:0.0 noencl 1 Online 1153163264 0:1.0 noencl 2 Online 1153163264 0:2.0 noencl mount "/dev/`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`a" /mnt/regress-softraid diff -r /bin /mnt/regress-softraid/bin make -C /usr/src/regress/sys/dev/softraid detach ==== detach ==== umount /mnt/regress-softraid bioctl -d `bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'` ==== run-mount-1 ==== make -C /usr/src/regress/sys/dev/softraid mount-1 umount -f /mnt/regress-softraid || true umount: /mnt/regress-softraid: not currently mounted rmdir /mnt/regress-softraid || true for d in `bioctl softraid0 | awk '/^softraid0/{print $5}'`; do bioctl -d $d; done for v in `vnconfig -l | awk -F'[ :]' '/^vnd[123]:/ && !/not in use/{print $1}'`; do vnconfig -u $v; done ==== vnd-1 ==== rm -f diskimage1 dd if=/dev/null of=diskimage1 bs=1m seek=1100 0+0 records in 0+0 records out 0 bytes transferred in 0.000 secs (0 bytes/sec) vnconfig vnd1 diskimage1 printf "RAID *" | disklabel -wAT- vnd1 [ `disklabel vnd1 | grep -c '\'` -eq 1 ] ==== vnd-2 ==== rm -f diskimage2 dd if=/dev/null of=diskimage2 bs=1m seek=1100 0+0 records in 0+0 records out 0 bytes transferred in 0.000 secs (0 bytes/sec) vnconfig vnd2 diskimage2 printf "RAID *" | disklabel -wAT- vnd2 [ `disklabel vnd2 | grep -c '\'` -eq 1 ] ==== vnd-3 ==== rm -f diskimage3 dd if=/dev/null of=diskimage3 bs=1m seek=1100 0+0 records in 0+0 records out 0 bytes transferred in 0.000 secs (0 bytes/sec) vnconfig vnd3 diskimage3 printf "RAID *" | disklabel -wAT- vnd3 [ `disklabel vnd3 | grep -c '\'` -eq 1 ] ==== raid-1 ==== bioctl -c 1 -l vnd1a,vnd2a,vnd3a softraid0 softraid0: RAID 1 volume attached as sd2 ==== mount-1 ==== printf "/ *" | disklabel -wAT- "`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`" newfs "/dev/r`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`a" /dev/rsd2a: 1099.7MB in 2252256 sectors of 512 bytes 6 cylinder groups of 202.50MB, 12960 blocks, 25920 inodes each super-block backups (for fsck -b #) at: 160, 414880, 829600, 1244320, 1659040, 2073760, mkdir -p /mnt/regress-softraid mount "/dev/`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`a" /mnt/regress-softraid make -C /usr/src/regress/sys/dev/softraid detach ==== detach ==== umount /mnt/regress-softraid bioctl -d `bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'` ==== run-fill-compare-1 ==== make -C /usr/src/regress/sys/dev/softraid mount-1 umount -f /mnt/regress-softraid || true umount: /mnt/regress-softraid: not currently mounted rmdir /mnt/regress-softraid || true for d in `bioctl softraid0 | awk '/^softraid0/{print $5}'`; do bioctl -d $d; done for v in `vnconfig -l | awk -F'[ :]' '/^vnd[123]:/ && !/not in use/{print $1}'`; do vnconfig -u $v; done ==== vnd-1 ==== rm -f diskimage1 dd if=/dev/null of=diskimage1 bs=1m seek=1100 0+0 records in 0+0 records out 0 bytes transferred in 0.000 secs (0 bytes/sec) vnconfig vnd1 diskimage1 printf "RAID *" | disklabel -wAT- vnd1 [ `disklabel vnd1 | grep -c '\'` -eq 1 ] ==== vnd-2 ==== rm -f diskimage2 dd if=/dev/null of=diskimage2 bs=1m seek=1100 0+0 records in 0+0 records out 0 bytes transferred in 0.000 secs (0 bytes/sec) vnconfig vnd2 diskimage2 printf "RAID *" | disklabel -wAT- vnd2 [ `disklabel vnd2 | grep -c '\'` -eq 1 ] ==== vnd-3 ==== rm -f diskimage3 dd if=/dev/null of=diskimage3 bs=1m seek=1100 0+0 records in 0+0 records out 0 bytes transferred in 0.000 secs (0 bytes/sec) vnconfig vnd3 diskimage3 printf "RAID *" | disklabel -wAT- vnd3 [ `disklabel vnd3 | grep -c '\'` -eq 1 ] ==== raid-1 ==== bioctl -c 1 -l vnd1a,vnd2a,vnd3a softraid0 softraid0: RAID 1 volume attached as sd2 ==== mount-1 ==== printf "/ *" | disklabel -wAT- "`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`" newfs "/dev/r`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`a" /dev/rsd2a: 1099.7MB in 2252256 sectors of 512 bytes 6 cylinder groups of 202.50MB, 12960 blocks, 25920 inodes each super-block backups (for fsck -b #) at: 160, 414880, 829600, 1244320, 1659040, 2073760, mkdir -p /mnt/regress-softraid mount "/dev/`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`a" /mnt/regress-softraid ==== fill ==== time cp -r /bin /mnt/regress-softraid/ 14.96 real 0.00 user 0.23 sys make -C /usr/src/regress/sys/dev/softraid detach ==== detach ==== umount /mnt/regress-softraid bioctl -d `bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'` ==== compare ==== bioctl -c 1 -l vnd1a,vnd2a,vnd3a -p passfile softraid0 softraid0: RAID 1 volume attached as sd2 bioctl softraid0 Volume Status Size Device softraid0 0 Online 1153163264 sd2 RAID1 0 Online 1153163264 0:0.0 noencl 1 Online 1153163264 0:1.0 noencl 2 Online 1153163264 0:2.0 noencl mount "/dev/`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`a" /mnt/regress-softraid diff -r /bin /mnt/regress-softraid/bin make -C /usr/src/regress/sys/dev/softraid detach ==== detach ==== umount /mnt/regress-softraid bioctl -d `bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'` ==== run-mount-5 ==== make -C /usr/src/regress/sys/dev/softraid mount-5 umount -f /mnt/regress-softraid || true umount: /mnt/regress-softraid: not currently mounted rmdir /mnt/regress-softraid || true for d in `bioctl softraid0 | awk '/^softraid0/{print $5}'`; do bioctl -d $d; done for v in `vnconfig -l | awk -F'[ :]' '/^vnd[123]:/ && !/not in use/{print $1}'`; do vnconfig -u $v; done ==== vnd-1 ==== rm -f diskimage1 dd if=/dev/null of=diskimage1 bs=1m seek=1100 0+0 records in 0+0 records out 0 bytes transferred in 0.000 secs (0 bytes/sec) vnconfig vnd1 diskimage1 printf "RAID *" | disklabel -wAT- vnd1 [ `disklabel vnd1 | grep -c '\'` -eq 1 ] ==== vnd-2 ==== rm -f diskimage2 dd if=/dev/null of=diskimage2 bs=1m seek=1100 0+0 records in 0+0 records out 0 bytes transferred in 0.000 secs (0 bytes/sec) vnconfig vnd2 diskimage2 printf "RAID *" | disklabel -wAT- vnd2 [ `disklabel vnd2 | grep -c '\'` -eq 1 ] ==== vnd-3 ==== rm -f diskimage3 dd if=/dev/null of=diskimage3 bs=1m seek=1100 0+0 records in 0+0 records out 0 bytes transferred in 0.000 secs (0 bytes/sec) vnconfig vnd3 diskimage3 printf "RAID *" | disklabel -wAT- vnd3 [ `disklabel vnd3 | grep -c '\'` -eq 1 ] ==== raid-5 ==== bioctl -c 5 -l vnd1a,vnd2a,vnd3a softraid0 softraid0: RAID 5 volume attached as sd2 ==== mount-5 ==== printf "/ *" | disklabel -wAT- "`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`" newfs "/dev/r`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`a" /dev/rsd2a: 2199.4MB in 4504320 sectors of 512 bytes 11 cylinder groups of 202.50MB, 12960 blocks, 25920 inodes each super-block backups (for fsck -b #) at: 160, 414880, 829600, 1244320, 1659040, 2073760, 2488480, 2903200, 3317920, 3732640, 4147360, mkdir -p /mnt/regress-softraid mount "/dev/`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`a" /mnt/regress-softraid make -C /usr/src/regress/sys/dev/softraid detach ==== detach ==== umount /mnt/regress-softraid bioctl -d `bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'` ==== run-fill-compare-5 ==== make -C /usr/src/regress/sys/dev/softraid mount-5 umount -f /mnt/regress-softraid || true umount: /mnt/regress-softraid: not currently mounted rmdir /mnt/regress-softraid || true for d in `bioctl softraid0 | awk '/^softraid0/{print $5}'`; do bioctl -d $d; done for v in `vnconfig -l | awk -F'[ :]' '/^vnd[123]:/ && !/not in use/{print $1}'`; do vnconfig -u $v; done ==== vnd-1 ==== rm -f diskimage1 dd if=/dev/null of=diskimage1 bs=1m seek=1100 0+0 records in 0+0 records out 0 bytes transferred in 0.000 secs (0 bytes/sec) vnconfig vnd1 diskimage1 printf "RAID *" | disklabel -wAT- vnd1 [ `disklabel vnd1 | grep -c '\'` -eq 1 ] ==== vnd-2 ==== rm -f diskimage2 dd if=/dev/null of=diskimage2 bs=1m seek=1100 0+0 records in 0+0 records out 0 bytes transferred in 0.000 secs (0 bytes/sec) vnconfig vnd2 diskimage2 printf "RAID *" | disklabel -wAT- vnd2 [ `disklabel vnd2 | grep -c '\'` -eq 1 ] ==== vnd-3 ==== rm -f diskimage3 dd if=/dev/null of=diskimage3 bs=1m seek=1100 0+0 records in 0+0 records out 0 bytes transferred in 0.000 secs (0 bytes/sec) vnconfig vnd3 diskimage3 printf "RAID *" | disklabel -wAT- vnd3 [ `disklabel vnd3 | grep -c '\'` -eq 1 ] ==== raid-5 ==== bioctl -c 5 -l vnd1a,vnd2a,vnd3a softraid0 softraid0: RAID 5 volume attached as sd2 ==== mount-5 ==== printf "/ *" | disklabel -wAT- "`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`" newfs "/dev/r`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`a" /dev/rsd2a: 2199.4MB in 4504320 sectors of 512 bytes 11 cylinder groups of 202.50MB, 12960 blocks, 25920 inodes each super-block backups (for fsck -b #) at: 160, 414880, 829600, 1244320, 1659040, 2073760, 2488480, 2903200, 3317920, 3732640, 4147360, mkdir -p /mnt/regress-softraid mount "/dev/`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`a" /mnt/regress-softraid ==== fill ==== time cp -r /bin /mnt/regress-softraid/ 12.36 real 0.00 user 0.01 sys make -C /usr/src/regress/sys/dev/softraid detach ==== detach ==== umount /mnt/regress-softraid bioctl -d `bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'` ==== compare ==== bioctl -c 5 -l vnd1a,vnd2a,vnd3a -p passfile softraid0 softraid0: RAID 5 volume attached as sd2 bioctl softraid0 Volume Status Size Device softraid0 0 Online 2306211840 sd2 RAID5 0 Online 1153163264 0:0.0 noencl 1 Online 1153163264 0:1.0 noencl 2 Online 1153163264 0:2.0 noencl mount "/dev/`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`a" /mnt/regress-softraid diff -r /bin /mnt/regress-softraid/bin make -C /usr/src/regress/sys/dev/softraid detach ==== detach ==== umount /mnt/regress-softraid bioctl -d `bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'` ==== run-mount-C ==== make -C /usr/src/regress/sys/dev/softraid mount-C umount -f /mnt/regress-softraid || true umount: /mnt/regress-softraid: not currently mounted rmdir /mnt/regress-softraid || true for d in `bioctl softraid0 | awk '/^softraid0/{print $5}'`; do bioctl -d $d; done for v in `vnconfig -l | awk -F'[ :]' '/^vnd[123]:/ && !/not in use/{print $1}'`; do vnconfig -u $v; done ==== vnd-1 ==== rm -f diskimage1 dd if=/dev/null of=diskimage1 bs=1m seek=1100 0+0 records in 0+0 records out 0 bytes transferred in 0.000 secs (0 bytes/sec) vnconfig vnd1 diskimage1 printf "RAID *" | disklabel -wAT- vnd1 [ `disklabel vnd1 | grep -c '\'` -eq 1 ] ==== passfile ==== openssl rand -hex -out passfile.tmp 16 chmod 0600 passfile.tmp mv passfile.tmp passfile ==== raid-C ==== bioctl -c C -l vnd1a -p passfile softraid0 softraid0: CRYPTO volume attached as sd2 ==== mount-C ==== printf "/ *" | disklabel -wAT- "`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`" newfs "/dev/r`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`a" /dev/rsd2a: 1099.7MB in 2252256 sectors of 512 bytes 6 cylinder groups of 202.50MB, 12960 blocks, 25920 inodes each super-block backups (for fsck -b #) at: 160, 414880, 829600, 1244320, 1659040, 2073760, mkdir -p /mnt/regress-softraid mount "/dev/`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`a" /mnt/regress-softraid make -C /usr/src/regress/sys/dev/softraid detach ==== detach ==== umount /mnt/regress-softraid bioctl -d `bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'` ==== run-fill-compare-C ==== make -C /usr/src/regress/sys/dev/softraid mount-C umount -f /mnt/regress-softraid || true umount: /mnt/regress-softraid: not currently mounted rmdir /mnt/regress-softraid || true for d in `bioctl softraid0 | awk '/^softraid0/{print $5}'`; do bioctl -d $d; done for v in `vnconfig -l | awk -F'[ :]' '/^vnd[123]:/ && !/not in use/{print $1}'`; do vnconfig -u $v; done ==== vnd-1 ==== rm -f diskimage1 dd if=/dev/null of=diskimage1 bs=1m seek=1100 0+0 records in 0+0 records out 0 bytes transferred in 0.000 secs (0 bytes/sec) vnconfig vnd1 diskimage1 printf "RAID *" | disklabel -wAT- vnd1 [ `disklabel vnd1 | grep -c '\'` -eq 1 ] ==== raid-C ==== bioctl -c C -l vnd1a -p passfile softraid0 softraid0: CRYPTO volume attached as sd2 ==== mount-C ==== printf "/ *" | disklabel -wAT- "`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`" newfs "/dev/r`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`a" /dev/rsd2a: 1099.7MB in 2252256 sectors of 512 bytes 6 cylinder groups of 202.50MB, 12960 blocks, 25920 inodes each super-block backups (for fsck -b #) at: 160, 414880, 829600, 1244320, 1659040, 2073760, mkdir -p /mnt/regress-softraid mount "/dev/`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`a" /mnt/regress-softraid ==== fill ==== time cp -r /bin /mnt/regress-softraid/ 4.97 real 0.00 user 0.36 sys make -C /usr/src/regress/sys/dev/softraid detach ==== detach ==== umount /mnt/regress-softraid bioctl -d `bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'` ==== compare ==== bioctl -c C -l vnd1a -p passfile softraid0 softraid0: CRYPTO volume attached as sd2 bioctl softraid0 Volume Status Size Device softraid0 0 Online 1153163264 sd2 CRYPTO 0 Online 1153163264 0:0.0 noencl mount "/dev/`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`a" /mnt/regress-softraid diff -r /bin /mnt/regress-softraid/bin make -C /usr/src/regress/sys/dev/softraid detach ==== detach ==== umount /mnt/regress-softraid bioctl -d `bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'` ==== run-mount-c ==== make -C /usr/src/regress/sys/dev/softraid mount-c umount -f /mnt/regress-softraid || true umount: /mnt/regress-softraid: not currently mounted rmdir /mnt/regress-softraid || true for d in `bioctl softraid0 | awk '/^softraid0/{print $5}'`; do bioctl -d $d; done for v in `vnconfig -l | awk -F'[ :]' '/^vnd[123]:/ && !/not in use/{print $1}'`; do vnconfig -u $v; done ==== vnd-1 ==== rm -f diskimage1 dd if=/dev/null of=diskimage1 bs=1m seek=1100 0+0 records in 0+0 records out 0 bytes transferred in 0.000 secs (0 bytes/sec) vnconfig vnd1 diskimage1 printf "RAID *" | disklabel -wAT- vnd1 [ `disklabel vnd1 | grep -c '\'` -eq 1 ] ==== vnd-2 ==== rm -f diskimage2 dd if=/dev/null of=diskimage2 bs=1m seek=1100 0+0 records in 0+0 records out 0 bytes transferred in 0.000 secs (0 bytes/sec) vnconfig vnd2 diskimage2 printf "RAID *" | disklabel -wAT- vnd2 [ `disklabel vnd2 | grep -c '\'` -eq 1 ] ==== vnd-3 ==== rm -f diskimage3 dd if=/dev/null of=diskimage3 bs=1m seek=1100 0+0 records in 0+0 records out 0 bytes transferred in 0.000 secs (0 bytes/sec) vnconfig vnd3 diskimage3 printf "RAID *" | disklabel -wAT- vnd3 [ `disklabel vnd3 | grep -c '\'` -eq 1 ] ==== raid-c ==== bioctl -c c -l vnd1a,vnd2a,vnd3a softraid0 softraid0: CONCAT volume attached as sd2 ==== mount-c ==== printf "/ *" | disklabel -wAT- "`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`" newfs "/dev/r`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`a" /dev/rsd2a: 3299.2MB in 6756800 sectors of 512 bytes 17 cylinder groups of 202.50MB, 12960 blocks, 25920 inodes each super-block backups (for fsck -b #) at: 160, 414880, 829600, 1244320, 1659040, 2073760, 2488480, 2903200, 3317920, 3732640, 4147360, 4562080, 4976800, 5391520, 5806240, 6220960, 6635680, mkdir -p /mnt/regress-softraid mount "/dev/`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`a" /mnt/regress-softraid make -C /usr/src/regress/sys/dev/softraid detach ==== detach ==== umount /mnt/regress-softraid bioctl -d `bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'` ==== run-fill-compare-c ==== make -C /usr/src/regress/sys/dev/softraid mount-c umount -f /mnt/regress-softraid || true umount: /mnt/regress-softraid: not currently mounted rmdir /mnt/regress-softraid || true for d in `bioctl softraid0 | awk '/^softraid0/{print $5}'`; do bioctl -d $d; done for v in `vnconfig -l | awk -F'[ :]' '/^vnd[123]:/ && !/not in use/{print $1}'`; do vnconfig -u $v; done ==== vnd-1 ==== rm -f diskimage1 dd if=/dev/null of=diskimage1 bs=1m seek=1100 0+0 records in 0+0 records out 0 bytes transferred in 0.000 secs (0 bytes/sec) vnconfig vnd1 diskimage1 printf "RAID *" | disklabel -wAT- vnd1 [ `disklabel vnd1 | grep -c '\'` -eq 1 ] ==== vnd-2 ==== rm -f diskimage2 dd if=/dev/null of=diskimage2 bs=1m seek=1100 0+0 records in 0+0 records out 0 bytes transferred in 0.000 secs (0 bytes/sec) vnconfig vnd2 diskimage2 printf "RAID *" | disklabel -wAT- vnd2 [ `disklabel vnd2 | grep -c '\'` -eq 1 ] ==== vnd-3 ==== rm -f diskimage3 dd if=/dev/null of=diskimage3 bs=1m seek=1100 0+0 records in 0+0 records out 0 bytes transferred in 0.000 secs (0 bytes/sec) vnconfig vnd3 diskimage3 printf "RAID *" | disklabel -wAT- vnd3 [ `disklabel vnd3 | grep -c '\'` -eq 1 ] ==== raid-c ==== bioctl -c c -l vnd1a,vnd2a,vnd3a softraid0 softraid0: CONCAT volume attached as sd2 ==== mount-c ==== printf "/ *" | disklabel -wAT- "`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`" newfs "/dev/r`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`a" /dev/rsd2a: 3299.2MB in 6756800 sectors of 512 bytes 17 cylinder groups of 202.50MB, 12960 blocks, 25920 inodes each super-block backups (for fsck -b #) at: 160, 414880, 829600, 1244320, 1659040, 2073760, 2488480, 2903200, 3317920, 3732640, 4147360, 4562080, 4976800, 5391520, 5806240, 6220960, 6635680, mkdir -p /mnt/regress-softraid mount "/dev/`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`a" /mnt/regress-softraid ==== fill ==== time cp -r /bin /mnt/regress-softraid/ 3.39 real 0.00 user 0.12 sys make -C /usr/src/regress/sys/dev/softraid detach ==== detach ==== umount /mnt/regress-softraid bioctl -d `bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'` ==== compare ==== bioctl -c c -l vnd1a,vnd2a,vnd3a -p passfile softraid0 softraid0: CONCAT volume attached as sd2 bioctl softraid0 Volume Status Size Device softraid0 0 Online 3459489792 sd2 CONCAT 0 Online 1153163264 0:0.0 noencl 1 Online 1153163264 0:1.0 noencl 2 Online 1153163264 0:2.0 noencl mount "/dev/`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`a" /mnt/regress-softraid diff -r /bin /mnt/regress-softraid/bin make -C /usr/src/regress/sys/dev/softraid detach ==== detach ==== umount /mnt/regress-softraid bioctl -d `bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'` ==== run-mount-1C ==== make -C /usr/src/regress/sys/dev/softraid mount-1C umount -f /mnt/regress-softraid || true umount: /mnt/regress-softraid: not currently mounted rmdir /mnt/regress-softraid || true for d in `bioctl softraid0 | awk '/^softraid0/{print $5}'`; do bioctl -d $d; done for v in `vnconfig -l | awk -F'[ :]' '/^vnd[123]:/ && !/not in use/{print $1}'`; do vnconfig -u $v; done ==== vnd-1 ==== rm -f diskimage1 dd if=/dev/null of=diskimage1 bs=1m seek=1100 0+0 records in 0+0 records out 0 bytes transferred in 0.000 secs (0 bytes/sec) vnconfig vnd1 diskimage1 printf "RAID *" | disklabel -wAT- vnd1 [ `disklabel vnd1 | grep -c '\'` -eq 1 ] ==== vnd-2 ==== rm -f diskimage2 dd if=/dev/null of=diskimage2 bs=1m seek=1100 0+0 records in 0+0 records out 0 bytes transferred in 0.000 secs (0 bytes/sec) vnconfig vnd2 diskimage2 printf "RAID *" | disklabel -wAT- vnd2 [ `disklabel vnd2 | grep -c '\'` -eq 1 ] ==== vnd-3 ==== rm -f diskimage3 dd if=/dev/null of=diskimage3 bs=1m seek=1100 0+0 records in 0+0 records out 0 bytes transferred in 0.000 secs (0 bytes/sec) vnconfig vnd3 diskimage3 printf "RAID *" | disklabel -wAT- vnd3 [ `disklabel vnd3 | grep -c '\'` -eq 1 ] ==== raid-1C ==== bioctl -c 1C -l vnd1a,vnd2a,vnd3a -p passfile softraid0 softraid0: RAID 1C volume attached as sd2 ==== mount-1C ==== printf "/ *" | disklabel -wAT- "`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`" newfs "/dev/r`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`a" /dev/rsd2a: 1099.7MB in 2252256 sectors of 512 bytes 6 cylinder groups of 202.50MB, 12960 blocks, 25920 inodes each super-block backups (for fsck -b #) at: 160, 414880, 829600, 1244320, 1659040, 2073760, mkdir -p /mnt/regress-softraid mount "/dev/`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`a" /mnt/regress-softraid make -C /usr/src/regress/sys/dev/softraid detach ==== detach ==== umount /mnt/regress-softraid bioctl -d `bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'` ==== run-fill-compare-1C ==== make -C /usr/src/regress/sys/dev/softraid mount-1C umount -f /mnt/regress-softraid || true umount: /mnt/regress-softraid: not currently mounted rmdir /mnt/regress-softraid || true for d in `bioctl softraid0 | awk '/^softraid0/{print $5}'`; do bioctl -d $d; done for v in `vnconfig -l | awk -F'[ :]' '/^vnd[123]:/ && !/not in use/{print $1}'`; do vnconfig -u $v; done ==== vnd-1 ==== rm -f diskimage1 dd if=/dev/null of=diskimage1 bs=1m seek=1100 0+0 records in 0+0 records out 0 bytes transferred in 0.000 secs (0 bytes/sec) vnconfig vnd1 diskimage1 printf "RAID *" | disklabel -wAT- vnd1 [ `disklabel vnd1 | grep -c '\'` -eq 1 ] ==== vnd-2 ==== rm -f diskimage2 dd if=/dev/null of=diskimage2 bs=1m seek=1100 0+0 records in 0+0 records out 0 bytes transferred in 0.000 secs (0 bytes/sec) vnconfig vnd2 diskimage2 printf "RAID *" | disklabel -wAT- vnd2 [ `disklabel vnd2 | grep -c '\'` -eq 1 ] ==== vnd-3 ==== rm -f diskimage3 dd if=/dev/null of=diskimage3 bs=1m seek=1100 0+0 records in 0+0 records out 0 bytes transferred in 0.000 secs (0 bytes/sec) vnconfig vnd3 diskimage3 printf "RAID *" | disklabel -wAT- vnd3 [ `disklabel vnd3 | grep -c '\'` -eq 1 ] ==== raid-1C ==== bioctl -c 1C -l vnd1a,vnd2a,vnd3a -p passfile softraid0 softraid0: RAID 1C volume attached as sd2 ==== mount-1C ==== printf "/ *" | disklabel -wAT- "`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`" newfs "/dev/r`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`a" /dev/rsd2a: 1099.7MB in 2252256 sectors of 512 bytes 6 cylinder groups of 202.50MB, 12960 blocks, 25920 inodes each super-block backups (for fsck -b #) at: 160, 414880, 829600, 1244320, 1659040, 2073760, mkdir -p /mnt/regress-softraid mount "/dev/`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`a" /mnt/regress-softraid ==== fill ==== time cp -r /bin /mnt/regress-softraid/ 16.17 real 0.00 user 0.53 sys make -C /usr/src/regress/sys/dev/softraid detach ==== detach ==== umount /mnt/regress-softraid bioctl -d `bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'` ==== compare ==== bioctl -c 1C -l vnd1a,vnd2a,vnd3a -p passfile softraid0 softraid0: RAID 1C volume attached as sd2 bioctl softraid0 Volume Status Size Device softraid0 0 Online 1153163264 sd2 RAID1C 0 Online 1153163264 0:0.0 noencl 1 Online 1153163264 0:1.0 noencl 2 Online 1153163264 0:2.0 noencl mount "/dev/`bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'`a" /mnt/regress-softraid diff -r /bin /mnt/regress-softraid/bin make -C /usr/src/regress/sys/dev/softraid detach ==== detach ==== umount /mnt/regress-softraid bioctl -d `bioctl softraid0 | awk '/^softraid0/{sd=$5}END{print sd}'` ==== unconfig ==== umount -f /mnt/regress-softraid || true umount: /mnt/regress-softraid: not currently mounted rmdir /mnt/regress-softraid || true for d in `bioctl softraid0 | awk '/^softraid0/{print $5}'`; do bioctl -d $d; done for v in `vnconfig -l | awk -F'[ :]' '/^vnd[123]:/ && !/not in use/{print $1}'`; do vnconfig -u $v; done PASS sys/dev/softraid Duration 1m33.50s