[DRBD-user] [DRBD9] drbdmanage_add-volume makes dstate Inconsistent

Hiroshi Fujishima h-fujishima at sakura.ad.jp
Fri Nov 6 11:42:30 CET 2015

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Hi,

Adding new volume to the existsing resource which has one volume
makes existing volume's dstate Inconsistent.

Is it expected behavior?

- CentOS 7
- drbd-9.0	GIT-hash: ece72f515db06d78f1603c452d38d1f943648eb4
- drbd-utils	GIT-hash: 13f1450d0aa5af7466977f4c8be77794817b578e
- drbd-manage	GIT-hash: c5f39e2511d40329ae66783e6476a6c41c273440

[root at drbd1 ~]# drbdmanage list-nodes
+------------------------------------------------------------------------------+
| Name  | Pool Size | Pool Free | Site |                               | State |
|------------------------------------------------------------------------------|
| drbd1 |     20476 |     20468 |  N/A |                               |    ok |
| drbd2 |     20476 |     20468 |  N/A |                               |    ok |
+------------------------------------------------------------------------------+
[root at drbd1 ~]# drbdmanage list-volumes
No resources defined
[root at drbd1 ~]# drbdmanage list-assignments
No assignments defined
[root at drbd1 ~]# drbdmanage add-volume test 100mb --deploy 2
Operation completed successfully
Operation completed successfully
[root at drbd1 ~]# drbdmanage list-volumes
+------------------------------------------------------------------------------+
| Name | Vol ID | Size | Minor |                                       | State |
|------------------------------------------------------------------------------|
| test |      0 |   95 |   100 |                                       |    ok |
+------------------------------------------------------------------------------+
[root at drbd1 ~]# drbdmanage list-assignments
+------------------------------------------------------------------------------+
| Node  | Resource | Vol ID |                                          | State |
|------------------------------------------------------------------------------|
| drbd1 | test     |      * |                                          |    ok |
| drbd2 | test     |      * |                                          |    ok |
+------------------------------------------------------------------------------+
[root at drbd1 ~]# drbd-overview
  0:.drbdctrl/0  Connected(2*) Secondary(2*) UpToDa/UpToDa
  1:.drbdctrl/1  Connected(2*) Secondary(2*) UpToDa/UpToDa
100:test/0       Connected(2*) Secondary(2*) UpToDa/Incons
[root at drbd1 ~]# drbd-overview
  0:.drbdctrl/0  Connected(2*) Secondary(2*) UpToDa/UpToDa
  1:.drbdctrl/1  Connected(2*) Secondary(2*) UpToDa/UpToDa
100:test/0       Connected(2*) Secondary(2*) UpToDa/UpToDa
[root at drbd1 ~]# drbdmanage add-volume test 100mb --deploy 2
Operation completed successfully
Operation completed successfully
[root at drbd1 ~]# drbdmanage list-volumes
+------------------------------------------------------------------------------+
| Name | Vol ID | Size | Minor |                                       | State |
|------------------------------------------------------------------------------|
| test |      0 |   95 |   100 |                                       |    ok |
| test |      1 |   95 |   101 |                                       |    ok |
+------------------------------------------------------------------------------+
[root at drbd1 ~]# drbdmanage list-assignments
+------------------------------------------------------------------------------+
| Node  | Resource | Vol ID |                                          | State |
|------------------------------------------------------------------------------|
| drbd1 | test     |      * |                                          |    ok |
| drbd2 | test     |      * |                                          |    ok |
+------------------------------------------------------------------------------+
[root at drbd1 ~]# drbd-overview
  0:.drbdctrl/0  Connected(2*) Secondary(2*) UpToDa/UpToDa
  1:.drbdctrl/1  Connected(2*) Secondary(2*) UpToDa/UpToDa
100:test/0       Connected(2*) Secondary(2*) Incons/Incons
101:test/1       Connected(2*) Secondary(2*) Incons/Incons

Regards.

--
Hiroshi Fujishima
-------------- next part --------------
A non-text attachment was scrubbed...
Name: drbd1.log.gz
Type: application/octet-stream
Size: 3674 bytes
Desc: not available
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20151106/f3d97852/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: drbd2.log.gz
Type: application/octet-stream
Size: 3608 bytes
Desc: not available
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20151106/f3d97852/attachment-0001.obj>


More information about the drbd-user mailing list