Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Nov 2004 14:16:03 +0100
From:      Jan-Oliver Neumann <neumannj@arcor.de>
To:        freebsd-geom@freebsd.org
Subject:   gvinum: raid5 rebuild hangs on md disk
Message-ID:  <41A48993.6050203@arcor.de>

next in thread | raw e-mail | index | archive | help
This is a cryptographically signed message in MIME format.

--------------ms070603010206060200090808
Content-Type: multipart/mixed;
 boundary="------------000004080607050909020803"

This is a multi-part message in MIME format.
--------------000004080607050909020803
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

to test gvinum raid5 functionality, I created three file-backed mds and 
used the following config:

drive disk3 device /dev/md2
drive disk2 device /dev/md1
drive disk1 device /dev/md0
volume raid5
plex name raid5.p0 org raid5 546s vol raid5
sd name raid5.p0.s2 drive disk3 len 130494s driveoffset 265s plex 
raid5.p0 plexoffset 1092s
sd name raid5.p0.s1 drive disk2 len 130494s driveoffset 265s plex 
raid5.p0 plexoffset 546s
sd name raid5.p0.s0 drive disk1 len 130494s driveoffset 265s plex 
raid5.p0 plexoffset 0s

The raid5 plex is running fine with this setup and after killing one of 
the mds using "mdconfig -d -u 0",
the raid5 plex is running correctly in degraded mode. When I reattach 
the md, the "lost" subdisk shows
up again as "stale", but when restarting the plex, the rebuild process 
stalls at 0%, the plex continues to
operate in "degraded" mode. Rest of the system is not affected, I am 
running 5-STABLE as of Nov 24th.

ps -axw shows following kernel thread:
621  ??  DL     0:00.02 [gv_rebuild raid5.p0]

As a side note, I updated the gvinum help message to reflect the current 
state of implementation, patch is attached.

Regards,

Jan-Oliver

*** gvinum.c~    Wed Aug  4 02:23:00 2004
--- gvinum.c    Wed Nov 24 13:53:15 2004
***************
*** 357,389 ****
  gvinum_help(void)
  {
      printf("COMMANDS\n"
!         "attach plex volume [rename]\n"
!         "attach subdisk plex [offset] [rename]\n"
!         "        Attach a plex to a volume, or a subdisk to a plex.\n"
!         "checkparity plex [-f] [-v]\n"
!         "        Check the parity blocks of a RAID-4 or RAID-5 plex.\n"
!         "concat [-f] [-n name] [-v] drives\n"
!         "        Create a concatenated volume from the specified 
drives.\n"
          "create [-f] description-file\n"
          "        Create a volume as described in description-file.\n"
!         "detach [-f] [plex | subdisk]\n"
!         "        Detach a plex or subdisk from the volume or plex to"
!         "which it is\n"
!         "        attached.\n"
!         "dumpconfig [drive ...]\n"
!         "        List the configuration information stored on the"
!         " specified\n"
!         "        drives, or all drives in the system if no drive names"
!         " are speci-\n"
!         "        fied.\n"
!         "info [-v] [-V]\n"
!         "        List information about volume manager state.\n"
          "init [-S size] [-w] plex | subdisk\n"
          "        Initialize the contents of a subdisk or all the subdisks"
          " of a\n"
          "        plex to all zeros.\n"
-         "label volume\n"
-         "        Create a volume label.\n"
          "l | list [-r] [-s] [-v] [-V] [volume | plex | subdisk]\n"
          "        List information about specified objects.\n"
          "ld [-r] [-s] [-v] [-V] [volume]\n"
--- 357,372 ----
  gvinum_help(void)
  {
      printf("COMMANDS\n"
!         "cancelinit\n"
!         "        Cancel pending initialization processes.\n"
          "create [-f] description-file\n"
          "        Create a volume as described in description-file.\n"
!         "help\n"
!         "        Print this help message.\n"
          "init [-S size] [-w] plex | subdisk\n"
          "        Initialize the contents of a subdisk or all the subdisks"
          " of a\n"
          "        plex to all zeros.\n"
          "l | list [-r] [-s] [-v] [-V] [volume | plex | subdisk]\n"
          "        List information about specified objects.\n"
          "ld [-r] [-s] [-v] [-V] [volume]\n"
***************
*** 394,431 ****
          "        List information about plexes.\n"
          "lv [-r] [-s] [-v] [-V] [volume]\n"
          "        List information about volumes.\n"
-         "mirror [-f] [-n name] [-s] [-v] drives\n"
-         "        Create a mirrored volume from the specified drives.\n"
-         "move | mv -f drive object ...\n"
-         "        Move the object(s) to the specified drive.\n"
          "printconfig [file]\n"
          "        Write a copy of the current configuration to file.\n"
          "quit    Exit the vinum program when running in interactive mode."
          "  Nor-\n"
          "        mally this would be done by entering the EOF 
character.\n"
-         "rename [-r] [drive | subdisk | plex | volume] newname\n"
-         "        Change the name of the specified object.\n"
-         "rebuildparity plex [-f] [-v] [-V]\n"
-         "        Rebuild the parity blocks of a RAID-4 or RAID-5 plex.\n"
-         "resetconfig\n"
-         "        Reset the complete vinum configuration.\n"
          "rm [-f] [-r] volume | plex | subdisk\n"
          "        Remove an object.\n"
          "saveconfig\n"
          "        Save vinum configuration to disk after configuration"
          " failures.\n"
-         "setstate state [volume | plex | subdisk | drive]\n"
-         "        Set state without influencing other objects, for"
-         " diagnostic pur-\n"
-         "        poses only.\n"
          "start [-i interval] [-S size] [-w] volume | plex | subdisk\n"
          "        Allow the system to access the objects.\n"
          "stop [-f] [volume | plex | subdisk]\n"
          "        Terminate access to the objects, or stop vinum if no"
          " parameters\n"
          "        are specified.\n"
-         "stripe [-f] [-n name] [-v] drives\n"
-         "        Create a striped volume from the specified drives.\n"
      );
 
      return;
--- 377,398 ----


--------------000004080607050909020803--

--------------ms070603010206060200090808
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIII6TCC
As8wggI4oAMCAQICAw0p/TANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UE
ChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNv
bmFsIEZyZWVtYWlsIElzc3VpbmcgQ0EwHhcNMDQxMDA0MTUxMjI2WhcNMDUxMDA0MTUxMjI2
WjBDMR8wHQYDVQQDExZUaGF3dGUgRnJlZW1haWwgTWVtYmVyMSAwHgYJKoZIhvcNAQkBFhFu
ZXVtYW5uakBhcmNvci5kZTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALRJ6aRs
ymv+Msef0dhbRWinlzgjF0xoao8IQno2Ij7QM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BgNVBAMTI1RoYXd0ZSBQZXJzb25hbCBGcmVlbWFpbCBJc3N1
aW5nIENBAgMNKf0wegYLKoZIhvcNAQkQAgsxa6BpMGIxCzAJBgNVBAYTAlpBMSUwIwYDVQQK
ExxUaGF3dGUgQ29uc3VsdGluZyAoUHR5KSBMdGQuMSwwKgYDVQQDEyNUaGF3dGUgUGVyc29u
YWwgRnJlZW1haWwgSXNzdWluZyBDQQIDDSn9MA0GCSqGSIb3DQEBAQUABIIBAIIZXGcMMTcK
/Q4A11v+iBOgES3wZCasj8s92QeCvJligPEorBf26Yb97wTL5/5NuWO1cQvDj1RSGGmMVmVY
GkATUjEpEw6KSzGenr7OucoyLVP7g4d8AO7feEdlQp/k5rIArxQA/ENrRAGrvI+XwSsH0FQ1
gi/TO5KzVT9yKQKAhgtv+Okp8ty4eq9ZbOnLURHeDvVQtZh/MSJlA52iz8/ecnUpyheRbMlM
+YigvvOt+eirpzwY+mktjcdDgA4iuX9ZlFfI2+uBfzK5zZxlkXS163U9/iehkCW8BtUwayJ3
/K2y4CAnzypxIQHQBQYcm4gzUKogv+KQNN2KJmq/ORQAAAAAAAA=
--------------ms070603010206060200090808--



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