Hello all..
I'm getting some problems with sndradm command, and i did put some "DEBUG"
lines in code (sndradm.c) to see "something"...
What i could get is:
On the machine where the things work (secondary node):
DEBUG1 rdc_maxsets: 64
DEBUG2 rdc_status->nset: 64
DEBUG3 rdc_status->nset: 2
DEBUG4 max: 2
Where don't (primary node):
DEBUG1 rdc_maxsets: 64
DEBUG2 rdc_status->nset: 64
DEBUG3 rdc_status->nset: 0
DEBUG4 max: 0
I did put that lines on the file sndradm.c in the following sections:
1) main function
...
rdc_maxsets = rdc_get_maxsets();
printf ("DEBUG1 rdc_maxsets: %i\n", rdc_maxsets);
if (rdc_maxsets == -1) {
rdc_err(NULL,
gettext("unable to get maxsets value from kernel"));
}
2) rdc_print function
...
rdc_status->nset = rdc_maxsets;
ustatus = spcs_s_ucreate();
printf ("DEBUG2 rdc_status->nset: %i\n", rdc_status->nset);
rc = RDC_IOCTL(RDC_STATUS, rdc_status, 0, 0, 0, 0, ustatus);
if (rc == SPCS_S_ERROR) {
rdc_err(&ustatus, gettext("statistics error"));
}
printf ("DEBUG3 rdc_status->nset: %i\n", rdc_status->nset);
spcs_s_ufree(&ustatus);
max = min(rdc_status->nset, rdc_maxsets);
printf ("DEBUG4 max: %i\n", max);
exit(0);
So, i think the question is: why the "rdc_status->nset" is 0?
I hope you can help me fixing that.
Thanks for your time!
Leal.
This message posted from opensolaris.org
_______________________________________________
storage-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/storage-discuss