On 06/26/15 10:13, Christos Zoulas wrote:
In article <[email protected]>,
William A. Mahaffey III <[email protected]> wrote:
# newfs -O2 -b32k raid[0,1]a            # root & /usr RAID's ....
# newfs -O2 -b64k -I dk0                # /home device ....

which I think does FFSv2. Thanks again & TIA for any more ideas :-).
Have a good one.
That does FFSv2 indeed.

christos

First, thanks for all the help so far :-). I am going to wipe my 2 intended root drives using a FreeBSD USB boot disk & try again. So as to hopefully eliminate any fat-fingering that may have happened, & also to retain a log of what I did & what resulted, I am going to (try to) script the process. To that end I grepped out the stuff from the README-file posted earlier in the thread & culled it down to just operate on the 2 intended root drives. I will run this w/ output redirected to a file that I can retreive from the NetBSD USB boot disk & post for more questions if it doesn't work. I attach the shell script & other files referenced therein. I would be eternally grateful if savvier-than-I folks could give a quick perusal for obvious screw-ups or recommendations :-). I would like advice on how to automatically generate a simple disklabel for the resulting RAID1 device, see comments in the shell script (1st file). TIA & have a nice weekend.

--

        William A. Mahaffey III

 ----------------------------------------------------------------------

        "The M1 Garand is without doubt the finest implement of war
         ever devised by man."
                           -- Gen. George S. Patton Jr.

Attachment: NetBSD.setup.WAM.sh
Description: application/shellscript

# /dev/rwd0d:
type: ESDI
disk: HGST HTS721010A9
label: disk0
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 1938021
total sectors: 1953525168
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0 

6 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a:  33554432      2048       RAID                     # (Cyl.      2*-  33290*)
 c: 1953523120      2048     unused      0     0        # (Cyl.      2*- 
1938020)
 d: 1953525168         0     unused      0     0        # (Cyl.      0 - 
1938020)
 e:  33554432  33556480       swap                     # (Cyl.  33290*-  66578*)
 f: 1886414256  67110912       RAID                     # (Cyl.  66578*- 
1938020)
# RAID1 on 2 partitions, 32K blocksize ....

# row col spare
START array
1 2 0

START disks
/dev/wd0a
/dev/wd1a

# secPerSU SUsPerParityUbit SUsPerReconUnit RAID-level
START layout
32 1 1 1

START queue
fifo 100
# /etc/fstab
/dev/raid0a     /               ffs     rw,log  1 1
/dev/raid1a     /usr            ffs     rw,log  1 2
/dev/wd0e       swap            swap    sw      0 0
/dev/wd1e       swap            swap    sw      0 0
/dev/wd2e       swap            swap    sw      0 0
/dev/wd3e       swap            swap    sw      0 0
/dev/wd4e       swap            swap    sw      0 0
/dev/wd5e       swap            swap    sw      0 0
/dev/dk0        /home           ffs     rw,log  1 3
/proc           /proc           procfs  rw
kernfs          /kern           kernfs  rw
ptyfs           /dev/pts        ptyfs   rw
# tmpfs         /tmp            tmpfs   rw

Reply via email to