Gvinum boot

2004-11-08 Thread M . Keith . Thompson
I have read all of the messages on this board pertaining to vinum  gvinum
and I am still having problems.  I re-installed and started from scratch,
but gvinum starts and says my plexes are stale.  I am following the
instructions in Chapter 12 of online docs.  I am trying to mirror 2 drives.
I am just trying to get the boot drive up and running before I start the
mirror.  Does the partition need to be called gvinum in the bsdlabel
program?

Output from bsdlabel before changes:
# /dev/da0s1:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  a:  2097152  10506244.2BSD 2048 16384 28552 
  b:  10506240  swap
  c: 177741600unused0 0 # raw part, don't
edit
  d:   262144  31477764.2BSD 2048 16384 16392 
  e:  6291456  34099204.2BSD 2048 16384 28552 
  f:  8072784  97013764.2BSD 2048 16384 28552 


Output from bsdlabel after changes:
# /dev/da0s1:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  a:  2097152  10506244.2BSD 2048 16384 28552 
  b:  1050343  281  swap
  c: 177741600unused0 0 # raw part, don't
edit
  d:   262144  31477764.2BSD 2048 16384 16392 
  e:  6291456  34099204.2BSD 2048 16384 28552 
  f:  8072784  97013764.2BSD 2048 16384 28552 
  h: 17774144   16 vinum 


Create.foo:
drive foo device /dev/da0s1h
volume root
  plex org concat
#  a:  2097152  10506244.2BSD
sd len 2097152s driveoffset 1050608s drive foo
volume swap
  plex org concat
#  b:  1050343 281  swap
sd len 1050343s driveoffset 265s drive foo
volume tmp
  plex org concat
#  d:   262144  31477764.2BSD 
sd len 262144s driveoffset 3147760s drive foo
volume var
  plex org concat
#  e:  6291456   34099204.2BSD 
sd len 6291456s driveoffset 3409904s drive foo
volume usr
  plex org concat
#  f:  8072784  97013764.2BSD 
sd len 8072784s driveoffset 9701360s drive foo


Here is the error I get at boot:
GEOM_VINUM: subdisk swap.p0.s0 is stale
GEOM_VINUM: subdisk root.p0.s0 is stale
GEOM_VINUM: subdisk tmp.p0.s0 is stale
GEOM_VINUM: subdisk var.p0.s0 is stale
GEOM_VINUM: subdisk usr.p0.s0 is stale
Mounting root from ufs:/dev/da0s1a
gvinum: lost drive 'foo'
GEOM_VINUM: subdisk swap.p0.s0 is down
GEOM_VINUM: plex swap.p0 is down
GEOM_VINUM: subdisk root.p0.s0 is down
GEOM_VINUM: plex root.p0 is down
GEOM_VINUM: subdisk tmp.p0.s0 is down
GEOM_VINUM: plex tmp.p0 is down
GEOM_VINUM: subdisk var.p0.s0 is down
GEOM_VINUM: plex var.p0 is down
GEOM_VINUM: subdisk usr.p0.s0 is down
GEOM_VINUM: plex usr.p0 is down


Fstab before vinum:
# DeviceMountpoint  FStype  Options Dump
Pass#
/dev/da0s1b noneswapsw  0   0
/dev/da1s1b noneswapsw  0   0
/dev/da0s1a /   ufs rw  1   1
/dev/da1s1d /nofuture   ufs rw  2
2
/dev/da0s1d /tmpufs rw  2   2
/dev/da0s1f /usrufs rw  2   2
/dev/da0s1e /varufs rw  2   2
/dev/acd0   /cdrom  cd9660  ro,noauto   0   0

Fstab after vinum:
# DeviceMountpoint  FStype  Options Dump
Pass#
/dev/gvinum/swapnoneswapsw  0
0
/dev/da1s1b noneswapsw  0   0
/dev/gvinum/root/   ufs rw  1
1
/dev/da1s1d /nofuture   ufs rw  2   2
/dev/gvinum/tmp /tmpufs rw  2   2
/dev/gvinum/usr /usrufs rw  2   2
/dev/gvinum/var /varufs rw  2   2
/dev/acd0   /cdrom  cd9660  ro,noauto   0   0


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Booting w/gvinum

2004-11-08 Thread M . Keith . Thompson
I have read all of the messages on this board pertaining to vinum  gvinum
and I am still having problems.  I re-installed and started from scratch,
but gvinum starts and says my plexes are stale.  I am following the
instructions in Chapter 12 of online docs.  I am trying to mirror 2 drives.
I am just trying to get the boot drive up and running before I start the
mirror.  Does the partition need to be called gvinum in the bsdlabel
program?

Output from bsdlabel before changes:
# /dev/da0s1:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  a:  2097152  10506244.2BSD 2048 16384 28552 
  b:  10506240  swap
  c: 177741600unused0 0 # raw part, don't
edit
  d:   262144  31477764.2BSD 2048 16384 16392 
  e:  6291456  34099204.2BSD 2048 16384 28552 
  f:  8072784  97013764.2BSD 2048 16384 28552 


Output from bsdlabel after changes:
# /dev/da0s1:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  a:  2097152  10506244.2BSD 2048 16384 28552 
  b:  1050343  281  swap
  c: 177741600unused0 0 # raw part, don't
edit
  d:   262144  31477764.2BSD 2048 16384 16392 
  e:  6291456  34099204.2BSD 2048 16384 28552 
  f:  8072784  97013764.2BSD 2048 16384 28552 
  h: 17774144   16 vinum 


Create.foo:
drive foo device /dev/da0s1h
volume root
  plex org concat
#  a:  2097152  10506244.2BSD
sd len 2097152s driveoffset 1050608s drive foo
volume swap
  plex org concat
#  b:  1050343 281  swap
sd len 1050343s driveoffset 265s drive foo
volume tmp
  plex org concat
#  d:   262144  31477764.2BSD 
sd len 262144s driveoffset 3147760s drive foo
volume var
  plex org concat
#  e:  6291456   34099204.2BSD 
sd len 6291456s driveoffset 3409904s drive foo
volume usr
  plex org concat
#  f:  8072784  97013764.2BSD 
sd len 8072784s driveoffset 9701360s drive foo


Here is the error I get at boot:
GEOM_VINUM: subdisk swap.p0.s0 is stale
GEOM_VINUM: subdisk root.p0.s0 is stale
GEOM_VINUM: subdisk tmp.p0.s0 is stale
GEOM_VINUM: subdisk var.p0.s0 is stale
GEOM_VINUM: subdisk usr.p0.s0 is stale
Mounting root from ufs:/dev/da0s1a
gvinum: lost drive 'foo'
GEOM_VINUM: subdisk swap.p0.s0 is down
GEOM_VINUM: plex swap.p0 is down
GEOM_VINUM: subdisk root.p0.s0 is down
GEOM_VINUM: plex root.p0 is down
GEOM_VINUM: subdisk tmp.p0.s0 is down
GEOM_VINUM: plex tmp.p0 is down
GEOM_VINUM: subdisk var.p0.s0 is down
GEOM_VINUM: plex var.p0 is down
GEOM_VINUM: subdisk usr.p0.s0 is down
GEOM_VINUM: plex usr.p0 is down


Fstab before vinum:
# DeviceMountpoint  FStype  Options Dump
Pass#
/dev/da0s1b noneswapsw  0   0
/dev/da1s1b noneswapsw  0   0
/dev/da0s1a /   ufs rw  1   1
/dev/da1s1d /nofuture   ufs rw  2
2
/dev/da0s1d /tmpufs rw  2   2
/dev/da0s1f /usrufs rw  2   2
/dev/da0s1e /varufs rw  2   2
/dev/acd0   /cdrom  cd9660  ro,noauto   0   0

Fstab after vinum:
# DeviceMountpoint  FStype  Options Dump
Pass#
/dev/gvinum/swapnoneswapsw  0
0
/dev/da1s1b noneswapsw  0   0
/dev/gvinum/root/   ufs rw  1
1
/dev/da1s1d /nofuture   ufs rw  2   2
/dev/gvinum/tmp /tmpufs rw  2   2
/dev/gvinum/usr /usrufs rw  2   2
/dev/gvinum/var /varufs rw  2   2
/dev/acd0   /cdrom  cd9660  ro,noauto   0   0


Result of gvinum l:
1 drive:
D foo   State: down /dev/da0h   A: 0/8678 MB (0%)

5 volumes:
V root  State: down Plexes:   1 Size:   1024 MB
V swap  State: down Plexes:   1 Size:512 MB
V tmp   State: down Plexes:   1 Size:128 MB
V var   State: down Plexes:   1 Size:   3072 MB
V usr   State: down Plexes:   1 Size:   3941 MB

5 plexes:
P root.p0 C State: down Subdisks: 1 Size:   1024 MB
P swap.p0 C State: down Subdisks: 1 Size:512 MB
P tmp.p0  C State: down Subdisks: 1 Size:128 MB
P var.p0  C State: down Subdisks: 1 Size:   3072 MB
P usr.p0  C State: down