Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Nov 2005 12:21:20 -0500
From:      Ahnjoan Amous <ahnjoan@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Incorrectly followed steps to re-sync vinum subdisk
Message-ID:  <5e575c8a0511100921m3a9a14abt3a6c0e920bb6dbc9@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Tonight while checking a few things on my personal machine I noticed
that one of my vinum sub disks was stale.  Included below are the
steps I took attempting to remedy this.  Clearly I did not follow the
proper procedures and now the volume is un-mountable.  Currently when
I attempt to mount the /export filesystem the machine panics and
reboots.  My apologies in advance for the length of information
included.  I include it so that it might aid in recovery of the data
on this filesystem.  It has been cleaned up a bit but am happy to
provide the full output with the multiple "help" command output.
Shortly after the command sequence included the machine rebooted.
Since then I have booted in to single user mode and commented out
/export from fstab.  The machine is fully functioning with the
exception of the important data on /export.

If anyone doesn't believe I will be able to recover the data on my own
but does know of a company that might be able to recover data written
on a vinum mirror would you send me their name?

Thank you
Ahnjoan

root@bigbox:~ > df -k
Filesystem       1K-blocks     Used    Avail Capacity  Mounted on
/dev/vinum/root    1012974    61138   870800     7%    /
devfs                    1        1        0   100%    /dev
/dev/vinum/tmp1   50777034 35262392 11452480    75%    /export
procfs                   4        4        0   100%    /proc
devfs                    1        1        0   100%    /var/db/dhcpd/dev
#####################################################################
root@bigbox:~ > vinum list
2 drives:
D been                  State: up       /dev/ad2s1h     A: 7739/76347 MB (1=
0%)
D evie                  State: up       /dev/ad0s1h     A: 7739/76347 MB (1=
0%)

7 volumes:
V root                  State: up       Plexes:       2 Size:       1024 MB
V tmp1                  State: up       Plexes:       2 Size:         50 GB

14 plexes:
P root.p0             C State: up       Subdisks:     1 Size:       1024 MB
P tmp1.p0             C State: faulty   Subdisks:     1 Size:         50 GB
P root.p1             C State: up       Subdisks:     1 Size:       1024 MB
P tmp1.p1             C State: up       Subdisks:     1 Size:         50 GB

14 subdisks:
S root.p0.s0            State: up       D: been         Size:       1024 MB
S tmp1.p0.s0            State: stale    D: been         Size:         50 GB
S root.p1.s0            State: up       D: evie         Size:       1024 MB
S tmp1.p1.s0            State: up       D: evie         Size:         50 GB
#####################################################################
root@bigbox:~ > vinum
vinum -> detach tmp1.p0.s0
#####################################################################
vinum -> list
2 drives:
D been                  State: up       /dev/ad2s1h     A: 7739/76347 MB (1=
0%)
D evie                  State: up       /dev/ad0s1h     A: 7739/76347 MB (1=
0%)

7 volumes:
V root                  State: up       Plexes:       2 Size:       1024 MB
V tmp1                  State: up       Plexes:       2 Size:         50 GB

14 plexes:
P root.p0             C State: up       Subdisks:     1 Size:       1024 MB
P tmp1.p0             C State: faulty   Subdisks:     0 Size:          0  B
P root.p1             C State: up       Subdisks:     1 Size:       1024 MB
P tmp1.p1             C State: up       Subdisks:     1 Size:         50 GB

14 subdisks:
S root.p0.s0            State: up       D: been         Size:       1024 MB
S tmp1.p0.s0            State: stale    D: been         Size:         50 GB
S root.p1.s0            State: up       D: evie         Size:       1024 MB
S tmp1.p1.s0            State: up       D: evie         Size:         50 GB
#####################################################################
vinum -> start tmp1.p0.s0
Can't start tmp1.p0.s0: Invalid argument (22)
#####################################################################
vinum -> start
** no additional drives found: No such file or directory
Can't save Vinum config: No child processes
#####################################################################
vinum -> start tmp1.p0.s0
Can't start tmp1.p0.s0: Invalid argument (22)
#####################################################################
vinum -> list
2 drives:
D been                  State: up       /dev/ad2s1h     A: 7739/76347 MB (1=
0%)
D evie                  State: up       /dev/ad0s1h     A: 7739/76347 MB (1=
0%)

7 volumes:
V root                  State: up       Plexes:       2 Size:       1024 MB
V tmp1                  State: up       Plexes:       2 Size:         50 GB

14 plexes:
P root.p0             C State: up       Subdisks:     1 Size:       1024 MB
P tmp1.p0             C State: faulty   Subdisks:     0 Size:          0  B
P root.p1             C State: up       Subdisks:     1 Size:       1024 MB
P tmp1.p1             C State: up       Subdisks:     1 Size:         50 GB

14 subdisks:
S root.p0.s0            State: up       D: been         Size:       1024 MB
S tmp1.p0.s0            State: R 0%     D: been         Size:         50 GB
                       *** Start tmp1.p0.s0 with 'start' command ***
S root.p1.s0            State: up       D: evie         Size:       1024 MB
S tmp1.p1.s0            State: up       D: evie         Size:         50 GB
#####################################################################
vinum -> stop tmp1.p0.s0
#####################################################################
vinum -> list
2 drives:
D been                  State: up       /dev/ad2s1h     A: 7739/76347 MB (1=
0%)
D evie                  State: up       /dev/ad0s1h     A: 7739/76347 MB (1=
0%)

7 volumes:
V root                  State: up       Plexes:       2 Size:       1024 MB
V tmp1                  State: up       Plexes:       2 Size:         50 GB

14 plexes:
P root.p0             C State: up       Subdisks:     1 Size:       1024 MB
P tmp1.p0             C State: faulty   Subdisks:     0 Size:          0  B
P root.p1             C State: up       Subdisks:     1 Size:       1024 MB
P tmp1.p1             C State: up       Subdisks:     1 Size:         50 GB

14 subdisks:
S root.p0.s0            State: up       D: been         Size:       1024 MB
S tmp1.p0.s0            State: down     D: been         Size:         50 GB
S root.p1.s0            State: up       D: evie         Size:       1024 MB
S tmp1.p1.s0            State: up       D: evie         Size:         50 GB
#####################################################################
vinum -> start tmp1.p0.s0
Can't start tmp1.p0.s0: Device busy (16)
#####################################################################
vinum -> list
2 drives:
D been                  State: up       /dev/ad2s1h     A: 7739/76347 MB (1=
0%)
D evie                  State: up       /dev/ad0s1h     A: 7739/76347 MB (1=
0%)

7 volumes:
V root                  State: up       Plexes:       2 Size:       1024 MB
V tmp1                  State: up       Plexes:       2 Size:         50 GB

14 plexes:
P root.p0             C State: up       Subdisks:     1 Size:       1024 MB
P tmp1.p0             C State: faulty   Subdisks:     0 Size:          0  B
P root.p1             C State: up       Subdisks:     1 Size:       1024 MB
P tmp1.p1             C State: up       Subdisks:     1 Size:         50 GB

14 subdisks:
S root.p0.s0            State: up       D: been         Size:       1024 MB
S tmp1.p0.s0            State: reborn   D: been         Size:         50 GB
S root.p1.s0            State: up       D: evie         Size:       1024 MB
S tmp1.p1.s0            State: up       D: evie         Size:         50 GB
#####################################################################
vinum -> stop tmp1.p0.s0
#####################################################################
vinum -> setstate obsolete tmp1.p0.s0
#####################################################################
vinum -> start tmp1.p0.s0
#####################################################################
vinum -> list
2 drives:
D been                  State: up       /dev/ad2s1h     A: 7739/76347 MB (1=
0%)
D evie                  State: up       /dev/ad0s1h     A: 7739/76347 MB (1=
0%)

7 volumes:
V root                  State: up       Plexes:       2 Size:       1024 MB
V tmp1                  State: up       Plexes:       2 Size:         50 GB

14 plexes:
P root.p0             C State: up       Subdisks:     1 Size:       1024 MB
P tmp1.p0             C State: faulty   Subdisks:     0 Size:          0  B
P root.p1             C State: up       Subdisks:     1 Size:       1024 MB
P tmp1.p1             C State: up       Subdisks:     1 Size:         50 GB

14 subdisks:
S root.p0.s0            State: up       D: been         Size:       1024 MB
S tmp1.p0.s0            State: up       D: been         Size:         50 GB
S root.p1.s0            State: up       D: evie         Size:       1024 MB
S tmp1.p1.s0            State: up       D: evie         Size:         50 GB
#####################################################################
vinum -> quit
#####################################################################
root@bigbox:~ > cd /export
#####################################################################
root@bigbox:/export > ls
.snap   archive


CRASH



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