Vinum bootable RAID-1 setup help

Faisal Ali faisal.ali at kwe.com
Wed Dec 22 14:25:48 PST 2004


Hello,

I really tried my best to follow the FreeBSD handbook documentation to setup
bootable RAID-1 volume, I just can't seem to understand Section 17.9.2, Iam
working with 5.3 i386 Release.

Attached is the output of what I have done so far. Please tell me how do I
apply section 17.9.2 next.

Sorry to ask such a lengthy question, but Iam contacting you after trying my
utmost to follow the documentation.

A quick history.I have setup FreeBSD 5.3 on HP NetServer containing two
4.26GB hotswappble Ultra2 SCSI drives.

Thankyou
Faisal Ali
Network Engineer
Kintetsu Global IT Inc.
100 Jericho Quadrangle, Suite 144
Jericho, NY 11753


 
-------------- next part --------------
#df

Filesystem  1K-blocks   Used   Avail Capacity  Mounted on
/dev/da0s1a    253678  35414  197970    15%    /
devfs               1      1       0   100%    /dev
/dev/da0s1e    253678      6  233378     0%    /tmp
/dev/da0s1f   2274424 376192 1716280    18%    /usr
/dev/da0s1d    253678    466  232918     0%    /var

#bsdlabel -e /dev/da0s1

8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:   524288        0    4.2BSD     2048 16384 32776
  b:  2045808   524288      swap
  c:  8321607        0    unused        0     0         # "raw" part, don't edit
  d:   524288  2570096    4.2BSD     2048 16384 32776
  e:   524288  3094384    4.2BSD     2048 16384 32776
  f:  4702935  3618672    4.2BSD     2048 16384 28552


#bsdlabel -e /dev/da1s1

8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:   524288        0    4.2BSD     2048 16384 32776
  b:  2045808   524288      swap
  c:  8321607        0    unused        0     0         # "raw" part, don't edit
  d:   524288  2570096    4.2BSD     2048 16384 32776
  e:   524288  3094384    4.2BSD     2048 16384 32776
  f:  4702935  3618672    4.2BSD     2048 16384 28552


# more /etc/fstab

 Device                Mountpoint      FStype  Options         Dump    Pass#
/dev/da0s1b             none            swap    sw              0       0
/dev/da0s1a             /               ufs     rw              1       1
/dev/da0s1e             /tmp            ufs     rw              2       2
/dev/da0s1f             /usr            ufs     rw              2       2
/dev/da0s1d             /var            ufs     rw              2       2
/dev/acd0               /cdrom          cd9660  ro,noauto       0       0

#vinum
vinum -> mirror -v -n root-a /dev/da0s1a /dev/da1s1a
vinum -> mirror -v -n swap-b /dev/da0s1b /dev/da1s1b
vinum -> mirror -v -n tmp-e /dev/da0s1e /dev/da1s1e
vinum -> mirror -v -n usr-f /dev/da0s1f /dev/da1s1f
vinum -> mirror -v -n var-d /dev/da0s1d /dev/da1s1d
vinum -> list
10 drives:
D vinumdrive0           State: up       /dev/da0s1a     A: 0/256 MB (0%)
D vinumdrive1           State: up       /dev/da1s1a     A: 0/256 MB (0%)
D vinumdrive2           State: up       /dev/da0s1b     A: 0/998 MB (0%)
D vinumdrive3           State: up       /dev/da1s1b     A: 0/998 MB (0%)
D vinumdrive4           State: up       /dev/da0s1e     A: 0/256 MB (0%)
D vinumdrive5           State: up       /dev/da1s1e     A: 0/256 MB (0%)
D vinumdrive6           State: up       /dev/da0s1f     A: 0/2296 MB (0%)
D vinumdrive7           State: up       /dev/da1s1f     A: 0/2296 MB (0%)
D vinumdrive8           State: up       /dev/da0s1d     A: 0/256 MB (0%)
D vinumdrive9           State: up       /dev/da1s1d     A: 0/256 MB (0%)

5 volumes:
V root-a                State: up       Plexes:       2 Size:        255 MB
V swap-b                State: up       Plexes:       2 Size:        998 MB
V tmp-e                 State: up       Plexes:       2 Size:        255 MB
V usr-f                 State: up       Plexes:       2 Size:       2296 MB
V var-d                 State: up       Plexes:       2 Size:        255 MB

10 plexes:
P root-a.p0           C State: up       Subdisks:     1 Size:        255 MB
P root-a.p1           C State: up       Subdisks:     1 Size:        255 MB
P swap-b.p0           C State: up       Subdisks:     1 Size:        998 MB
P swap-b.p1           C State: up       Subdisks:     1 Size:        998 MB
P tmp-e.p0            C State: up       Subdisks:     1 Size:        255 MB
P tmp-e.p1            C State: up       Subdisks:     1 Size:        255 MB
P usr-f.p0            C State: up       Subdisks:     1 Size:       2296 MB
P usr-f.p1            C State: up       Subdisks:     1 Size:       2296 MB
P var-d.p0            C State: up       Subdisks:     1 Size:        255 MB
P var-d.p1            C State: up       Subdisks:     1 Size:        255 MB

10 subdisks:
S root-a.p0.s0          State: up       D: vinumdrive0  Size:        255 MB
S root-a.p1.s0          State: up       D: vinumdrive1  Size:        255 MB
S swap-b.p0.s0          State: up       D: vinumdrive2  Size:        998 MB
S swap-b.p1.s0          State: up       D: vinumdrive3  Size:        998 MB
S tmp-e.p0.s0           State: up       D: vinumdrive4  Size:        255 MB
S tmp-e.p1.s0           State: up       D: vinumdrive5  Size:        255 MB
S usr-f.p0.s0           State: up       D: vinumdrive6  Size:       2296 MB
S usr-f.p1.s0           State: up       D: vinumdrive7  Size:       2296 MB
S var-d.p0.s0           State: up       D: vinumdrive8  Size:        255 MB
S var-d.p1.s0           State: up       D: vinumdrive9  Size:        255 MB
vinum -> quit
# vinum l -rv root-a
Volume root-a:  Size: 268299776 bytes (255 MB)
                State: up
                Flags:
                2 plexes
                Read policy: round robin
Plex root-a.p0: Size:   268299776 bytes (255 MB)
                Subdisks:        1
                State: up
                Organization: concat
                Part of volume root-a

Plex root-a.p1: Size:   268299776 bytes (255 MB)
                Subdisks:        1
                State: up
                Organization: concat
                Part of volume root-a

Subdisk root-a.p0.s0:
                Size:        268299776 bytes (255 MB)
                State: up
                Plex root-a.p0 at offset 0 (0  B)
                Drive vinumdrive0 (/dev/da0s1a) at offset 135680 (132 kB)

Subdisk root-a.p1.s0:
                Size:        268299776 bytes (255 MB)
                State: up
                Plex root-a.p1 at offset 0 (0  B)
                Drive vinumdrive1 (/dev/da1s1a) at offset 135680 (132 kB)

# dmesg
Copyright (c) 1992-2004 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD 5.3-RELEASE #0: Fri Nov  5 04:19:18 UTC 2004
    root at harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
MPTable: <HP       LH 3        >
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Pentium II/Pentium II Xeon/Celeron (399.32-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x652  Stepping = 2
  Features=0x183fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PS
E36,MMX,FXSR>
real memory  = 536870912 (512 MB)
avail memory = 515694592 (491 MB)
ioapic0: Assuming intbase of 0
ioapic0 <Version 1.1> irqs 0-23 on motherboard
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <MPTable Host-PCI bridge> pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
isab0: <PCI-ISA bridge> at device 4.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 UDMA33 controller> port 0xfcd0-0xfcdf,0x376,0x170-0x177,0x3f6,0x1f0
-0x1f7 at device 4.1 on pci0
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0xfce0-0xfcff at device 4.2 on pci0

pcib0: unable to route slot 4 INTD
uhci0: Could not allocate irq
device_attach: uhci0 attach returned 6
pci0: <bridge, PCI-unknown> at device 4.3 (no driver attached)
pcib1: <MPTable PCI-PCI bridge> at device 7.0 on pci0
pci1: <PCI bus> on pcib1
sym0: <895> port 0xe400-0xe4ff mem 0xfebfd000-0xfebfdfff,0xfebff400-0xfebff4ff irq 10 at
device 6.0 on pci1
sym0: Symbios NVRAM, ID 7, Fast-40, LVD, parity checking
sym0: open drain IRQ line driver, using on-chip SRAM
sym0: using LOAD/STORE-based firmware.
sym0: [GIANT-LOCKED]
sym1: <895> port 0xe800-0xe8ff mem 0xfebfe000-0xfebfefff,0xfebff800-0xfebff8ff irq 11 at
device 7.0 on pci1
sym1: Symbios NVRAM, ID 7, Fast-40, LVD, parity checking
sym1: open drain IRQ line driver, using on-chip SRAM
sym1: using LOAD/STORE-based firmware.
sym1: [GIANT-LOCKED]
pci0: <memory> at device 7.1 (no driver attached)
pcib2: <MPTable PCI-PCI bridge> at device 8.0 on pci0
pci2: <PCI bus> on pcib2
fxp0: <Intel 82558 Pro/100 Ethernet> port 0xdcc0-0xdcdf mem 0xfe800000-0xfe8fffff,0xefffd
000-0xefffdfff irq 15 at device 3.0 on pci2
miibus0: <MII bus> on fxp0
inphy0: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:90:27:61:2b:74
pci0: <base peripheral> at device 11.0 (no driver attached)
pci0: <display, VGA> at device 13.0 (no driver attached)
cpu0 on motherboard
orm0: <ISA Option ROMs> at iomem 0xc8000-0xcbfff,0xc0000-0xc7fff on isa0
pmtimer0 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse, device ID 3
fdc0: <Enhanced floppy controller> at port 0x3f0-0x3f5 irq 6 drq 2 on isa0
fdc0: [FAST]
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
ppc0: parallel port not found.
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
unknown: <PNP0303> can't assign resources (port)
unknown: <PNP0c02> can't assign resources (port)
ppc1: parallel port not found.
unknown: <PNP0f13> can't assign resources (irq)
unknown: <PNP0700> can't assign resources (port)
Timecounter "TSC" frequency 399320623 Hz quality 800
Timecounters tick every 10.000 msec
acd0: CDROM <MATSHITA CR-588/LP12> at ata0-master PIO4
Waiting 15 seconds for SCSI devices to settle
(noperiph:sym0:0:-1:-1): SCSI BUS reset delivered.
(noperiph:sym1:0:-1:-1): SCSI BUS reset delivered.
da0 at sym0 bus 0 target 0 lun 0
da0: <HP 4.26GB A 80-DC1B DC1B> Fixed Direct Access SCSI-2 device
da0: 80.000MB/s transfers (40.000MHz, offset 15, 16bit), Tagged Queueing Enabled
da0: 4067MB (8330543 512 byte sectors: 255H 63S/T 518C)
da1 at sym0 bus 0 target 1 lun 0
da1: <HP 4.26GB A 80-DC1B DC1B> Fixed Direct Access SCSI-2 device
da1: 80.000MB/s transfers (40.000MHz, offset 15, 16bit), Tagged Queueing Enabled
da1: 4067MB (8330543 512 byte sectors: 255H 63S/T 518C)
Mounting root from ufs:/dev/da0s1a
vinum: loaded
vinum: drive vinumdrive0 is up
vinum: drive vinumdrive1 is up
vinum: root-a.p0.s0 is up
vinum: root-a.p1.s0 is up
vinum: root-a.p0 is up
vinum: root-a is up
vinum: drive vinumdrive2 is up
vinum: drive vinumdrive3 is up
vinum: swap-b.p0.s0 is up
vinum: swap-b.p1.s0 is up
vinum: swap-b.p0 is up
vinum: swap-b is up
vinum: drive vinumdrive4 is up
vinum: drive vinumdrive5 is up
vinum: tmp-e.p0.s0 is up
vinum: tmp-e.p1.s0 is up
vinum: tmp-e.p0 is up
vinum: tmp-e is up
vinum: drive vinumdrive6 is up
vinum: drive vinumdrive7 is up
vinum: usr-f.p0.s0 is up
vinum: usr-f.p1.s0 is up
vinum: usr-f.p0 is up
vinum: usr-f is up
vinum: drive vinumdrive8 is up
vinum: drive vinumdrive9 is up
vinum: var-d.p0.s0 is up
vinum: var-d.p1.s0 is up
vinum: var-d.p0 is up
vinum: var-d is up

# 


More information about the freebsd-questions mailing list