Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jan 2006 22:33:40 -0800
From:      Jo Rhett <jrhett@svcolo.com>
To:        freebsd-hardware@freebsd.org
Subject:   gvinum in 6.0-rel -- how to attach plexes?
Message-ID:  <20060112063340.GA84964@svcolo.com>

next in thread | raw e-mail | index | archive | help
I've got a (home) server that I was using vinum for instead of the hardware
raid controllers we use at the shop.  Unfortunately it died pretty hard,
and I'm trying to recover data from the hard disk on the replacement
system.

Old Hard Disk: 4.10-rel with a vinum root

New Hard Disk: 6.0-rel

I've added geom_vinum_load="YES" to /boot/loader.conf and now when I boot I
can run "gvinum" and I see

gvinum -> list
1 drive:
D ibm1                  State: up       /dev/ad2s1e     A: 58131/58131 MB
(100%)

5 volumes:
V space                 State: up       Plexes:       0 Size:          0  B
V tmp                   State: up       Plexes:       0 Size:          0  B
V var                   State: up       Plexes:       0 Size:          0  B
V usr                   State: up       Plexes:       0 Size:          0  B
V root                  State: up       Plexes:       0 Size:          0  B

5 plexes:
P space.p0            C State: up       Subdisks:     0 Size:          0  B
P tmp.p0              C State: up       Subdisks:     0 Size:          0  B
P var.p0              C State: up       Subdisks:     0 Size:          0  B
P usr.p0              C State: up       Subdisks:     0 Size:          0  B
P root.p0             C State: up       Subdisks:     0 Size:          0  B

5 subdisks:
S space.p0.s0           State: up       D: ibm1         Size:         48 GB
S tmp.p0.s0             State: up       D: ibm1         Size:        256 MB
S var.p0.s0             State: up       D: ibm1         Size:       4096 MB
S usr.p0.s0             State: up       D: ibm1         Size:       4096 MB
S root.p0.s0            State: up       D: ibm1         Size:        256 MB


What do I need to do to get the subdisks/plexs/volumes reattached or
restarted?  How can I get to this data?  The vast majority of the commands
listed in gvinum's help aren't working...

gvinum -> attach tmp.p0.s0 tmp.p0
unknown command 'attach'

gvinum -> start tmp
gvinum: can't start: cannot start volume 'tmp'; errno: 6

gvinum -> start -w tmp
gvinum: illegal option -- w

There is no man page for gvinum, and no /dev/gvinum directory list various
mailing list postings refer to.  

Where can I go from here?

-- 
Jo Rhett
senior geek
SVcolo : Silicon Valley Colocation



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060112063340.GA84964>