Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > comp.unix.bsd.openbsd.misc

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-16-2008, 07:49 AM
Peter van Oord van der Vlies
 
Posts: n/a
Default raid problem?

Hello,

I have setup 2 HP DL360 G5 with serial ATA drives.

Both are setup with openbsd 4.0 and disk mirror by Raidframe.
Now almost everytime when i reboot the machine(they are not in
production yet) i get directly after the reboot command a panic.

Now i was reading on the internet that is not recommended to have swap
on a mirror or the same mirror as the rest.
So after the reboot now the system always comes up with a dirty paritity
and starts building again(takes a while to complete).
Also i see the message savecore: no dump device configured. Why is that ?

The question: Is this normal when swap is not outside the raid set or on
the same raid set as the rest ?

Thanks,

Peter
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-16-2008, 07:49 AM
Josh Grosse
 
Posts: n/a
Default Re: raid problem?

On Thu, 15 Feb 2007 20:32:42 +0100, Peter van Oord van der Vlies wrote:

> Hello,
>
> I have setup 2 HP DL360 G5 with serial ATA drives.
>
> Both are setup with openbsd 4.0 and disk mirror by Raidframe.
> Now almost everytime when i reboot the machine(they are not in
> production yet) i get directly after the reboot command a panic.
>
> Now i was reading on the internet that is not recommended to have swap
> on a mirror or the same mirror as the rest.
> So after the reboot now the system always comes up with a dirty paritity
> and starts building again(takes a while to complete).
> Also i see the message savecore: no dump device configured. Why is that ?
>
> The question: Is this normal when swap is not outside the raid set or on
> the same raid set as the rest ?


Peter,

A little information on your configuration will go a long way towards
helping you.

It appears, from your description, that you are getting a repeatable
panic. Nobody is going to be able to help you with that, unless you are
able to provide minimal information: what the panic is, what the backtrace
shows, etc.

I can answer the dump device question, as I had already investigated it.
You can see the details by reading misc@ archives. In brief: When you
have root on RAID, you cannot dump core. It doesn't matter if
your swap is in a RAID set or on a standard device.

As to your continuing problem with "dirty" areas after reboot, it could
certainly be the panic. If you are able to shutdown and boot without
panic, but still going through parity rebuilding, then you have a
configuration problem.

Post the output of disklabel for all disks (real and RAIDFrame), and the
output for fdisk for each disk if your architecture uses MBR.

--
Replying directly will get you locally blacklisted.
Change the address; use my first name in front of the @ if you want to
communicate privately.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-16-2008, 07:49 AM
Peter van Oord van der Vlies
 
Posts: n/a
Default Re: raid problem?

Josh Grosse wrote:
> On Thu, 15 Feb 2007 20:32:42 +0100, Peter van Oord van der Vlies wrote:
>
>> Hello,
>>
>> I have setup 2 HP DL360 G5 with serial ATA drives.
>>
>> Both are setup with openbsd 4.0 and disk mirror by Raidframe.
>> Now almost everytime when i reboot the machine(they are not in
>> production yet) i get directly after the reboot command a panic.
>>
>> Now i was reading on the internet that is not recommended to have swap
>> on a mirror or the same mirror as the rest.
>> So after the reboot now the system always comes up with a dirty paritity
>> and starts building again(takes a while to complete).
>> Also i see the message savecore: no dump device configured. Why is that ?
>>
>> The question: Is this normal when swap is not outside the raid set or on
>> the same raid set as the rest ?

>
> Peter,
>
> A little information on your configuration will go a long way towards
> helping you.
>
> It appears, from your description, that you are getting a repeatable
> panic. Nobody is going to be able to help you with that, unless you are
> able to provide minimal information: what the panic is, what the backtrace
> shows, etc.
>
> I can answer the dump device question, as I had already investigated it.
> You can see the details by reading misc@ archives. In brief: When you
> have root on RAID, you cannot dump core. It doesn't matter if
> your swap is in a RAID set or on a standard device.


>
> As to your continuing problem with "dirty" areas after reboot, it could
> certainly be the panic. If you are able to shutdown and boot without
> panic, but still going through parity rebuilding, then you have a
> configuration problem.
>
> Post the output of disklabel for all disks (real and RAIDFrame), and the
> output for fdisk for each disk if your architecture uses MBR.
>


Thank you josh,

Tommorow i am back at my work and will post the disklayout and the dump.
I had no time today to write down the trace, that's why i was posting
without the information. And the systems have no connection to the
internet yet .

For your information the dirty areas are only when the systems had the
panic. So when the reboot responds normal the system will boot normal.

Peter
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-16-2008, 07:49 AM
Peter van Oord van der Vlies
 
Posts: n/a
Default Re: raid problem?

Josh Grosse wrote:
> On Thu, 15 Feb 2007 20:32:42 +0100, Peter van Oord van der Vlies wrote:
>
>> Hello,
>>
>> I have setup 2 HP DL360 G5 with serial ATA drives.
>>
>> Both are setup with openbsd 4.0 and disk mirror by Raidframe.
>> Now almost everytime when i reboot the machine(they are not in
>> production yet) i get directly after the reboot command a panic.
>>
>> Now i was reading on the internet that is not recommended to have swap
>> on a mirror or the same mirror as the rest.
>> So after the reboot now the system always comes up with a dirty paritity
>> and starts building again(takes a while to complete).
>> Also i see the message savecore: no dump device configured. Why is that ?
>>
>> The question: Is this normal when swap is not outside the raid set or on
>> the same raid set as the rest ?

>
> Peter,
>
> A little information on your configuration will go a long way towards
> helping you.
>
> It appears, from your description, that you are getting a repeatable
> panic. Nobody is going to be able to help you with that, unless you are
> able to provide minimal information: what the panic is, what the backtrace
> shows, etc.
>
> I can answer the dump device question, as I had already investigated it.
> You can see the details by reading misc@ archives. In brief: When you
> have root on RAID, you cannot dump core. It doesn't matter if
> your swap is in a RAID set or on a standard device.
>
> As to your continuing problem with "dirty" areas after reboot, it could
> certainly be the panic. If you are able to shutdown and boot without
> panic, but still going through parity rebuilding, then you have a
> configuration problem.
>
> Post the output of disklabel for all disks (real and RAIDFrame), and the
> output for fdisk for each disk if your architecture uses MBR.
>


I still had a swap on both disks so i use that one now and disabled the
swap on raid0.
It seems to work..

Here is the information you want(the fault and trace is below):

# disklabel -E wd0
# Inside MBR partition 3: type A6 start 63 size 156296322

Treating sectors 63-156296385 as the OpenBSD portion of the disk.
You can use the 'b' command to change this.

Initial label editor (enter '?' for help at any prompt)
> p

device: /dev/rwd0c
type: ESDI
disk: ESDI/IDE disk
label: ST3808110AS
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 156301488
free sectors: 0
rpm: 3600

16 partitions:
# size offset fstype [fsize bsize cpg]
a: 2097585 63 4.2BSD 2048 16384 328 # Cyl
0*- 2080
b: 4194288 2097648 swap # Cyl 2081
- 6241
c: 156301488 0 unused 0 0 # Cyl 0
-155060
d: 150004449 6291936 RAID # Cyl 6242
-155055*

# disklabel -E wd1
# Inside MBR partition 3: type A6 start 63 size 156296322

Treating sectors 63-156296385 as the OpenBSD portion of the disk.
You can use the 'b' command to change this.

Initial label editor (enter '?' for help at any prompt)
> p

device: /dev/rwd1c
type: ESDI
disk: ESDI/IDE disk
label: ST3808110AS
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 156301488
free sectors: 0
rpm: 3600

16 partitions:
# size offset fstype [fsize bsize cpg]
a: 2097585 63 4.2BSD 2048 16384 328 # Cyl
0*- 2080
b: 4194288 2097648 swap # Cyl 2081
- 6241
c: 156301488 0 unused 0 0 # Cyl 0
-155060
d: 150004449 6291936 RAID # Cyl 6242
-155055*

# raidctl -sv raid0
raid0 Components:
/dev/wd0d: optimal
/dev/wd1d: optimal
No spares.
Component label for /dev/wd0d:
Row: 0, Column: 0, Num Rows: 1, Num Columns: 2
Version: 2, Serial Number: 20070200, Mod Counter: 110
Clean: No, Status: 0
sectPerSU: 128, SUsPerPU: 1, SUsPerRU: 1
Queue size: 100, blocksize: 512, numBlocks: 150004352
RAID Level: 1
Autoconfig: Yes
Root partition: Yes
Last configured as: raid0
Component label for /dev/wd1d:
Row: 0, Column: 1, Num Rows: 1, Num Columns: 2
Version: 2, Serial Number: 20070200, Mod Counter: 110
Clean: No, Status: 0
sectPerSU: 128, SUsPerPU: 1, SUsPerRU: 1
Queue size: 100, blocksize: 512, numBlocks: 150004352
RAID Level: 1
Autoconfig: Yes
Root partition: Yes
Last configured as: raid0
Parity status: clean
Reconstruction is 100% complete.
Parity Re-write is 100% complete.
Copyback is 100% complete.


The crash:

uvm_fault(0xd0821a20, 0xe9dbd00, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at pmap_page_remove_86+0x125: movl 0(%eax,%edx,4),%eax


show panic:
the kernel did not panic


trace:
pmap_page_remove_86(d0cba46,d04b6474,8,246,d7fd738 a8) at
pmap_page_remove_86+0x125
uvm_vnp_terminate(d8135138,0,0,0,0,14,d81869d8,9) at uvm_vnp_terminate+0x36b
uvm_attach(d8135138,0,b7,0,d7f4f89c) at uvn_attach+0x2d1
uvmspace_free(d7f4f89c,6,d085f740) at uvmspace_free+0x10d
uvm_exit(d7f3d87c,d038e561,8,286) at uvm_exit+0x1a
reaper(d81869d8) at reaper+0x9a
Bad frame pointer: 0xd0989eb8
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-16-2008, 07:49 AM
Josh Grosse
 
Posts: n/a
Default Re: raid problem?

On Fri, 16 Feb 2007 12:05:00 +0100, Peter van Oord van der Vlies wrote:

> I still had a swap on both disks so i use that one now and disabled the
> swap on raid0.
> It seems to work..


Glad you got things working.

> Here is the information you want(the fault and trace is below):


<snip>

> ...The crash:
>
> uvm_fault(0xd0821a20, 0xe9dbd00, 0, 1) -> e
> kernel: page fault trap, code=0
> Stopped at pmap_page_remove_86+0x125: movl 0(%eax,%edx,4),%eax
>
>
> show panic:
> the kernel did not panic
>
>
> trace:
> pmap_page_remove_86(d0cba46,d04b6474,8,246,d7fd738 a8) at
> pmap_page_remove_86+0x125
> uvm_vnp_terminate(d8135138,0,0,0,0,14,d81869d8,9) at uvm_vnp_terminate+0x36b
> uvm_attach(d8135138,0,b7,0,d7f4f89c) at uvn_attach+0x2d1
> uvmspace_free(d7f4f89c,6,d085f740) at uvmspace_free+0x10d
> uvm_exit(d7f3d87c,d038e561,8,286) at uvm_exit+0x1a
> reaper(d81869d8) at reaper+0x9a
> Bad frame pointer: 0xd0989eb8


Your snipped disklabels showed your IDE drives, but not your raid drives.
I am going to guess your problem was a swap partition config issue,
perhaps your raid disklabels have swap as the first partition, and there
is no offset?

Anyway, its just conjecture. You now have a working RAIDFrame system.
Congratulations!


--
Replying directly will get you locally blacklisted.
Change the address; use my first name in front of the @ if you want to
communicate privately.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-16-2008, 07:49 AM
Peter van Oord van der Vlies
 
Posts: n/a
Default Re: raid problem?

Josh Grosse wrote:
> On Fri, 16 Feb 2007 12:05:00 +0100, Peter van Oord van der Vlies wrote:
>
>> I still had a swap on both disks so i use that one now and disabled the
>> swap on raid0.
>> It seems to work..

>
> Glad you got things working.
>


The systems are still working. Done several rebuilds and kernel builds
today where he normally crashed.


>> Here is the information you want(the fault and trace is below):

>
> <snip>
>
>> ...The crash:
>>
>> uvm_fault(0xd0821a20, 0xe9dbd00, 0, 1) -> e
>> kernel: page fault trap, code=0
>> Stopped at pmap_page_remove_86+0x125: movl 0(%eax,%edx,4),%eax
>>
>>
>> show panic:
>> the kernel did not panic
>>
>>
>> trace:
>> pmap_page_remove_86(d0cba46,d04b6474,8,246,d7fd738 a8) at
>> pmap_page_remove_86+0x125
>> uvm_vnp_terminate(d8135138,0,0,0,0,14,d81869d8,9) at uvm_vnp_terminate+0x36b
>> uvm_attach(d8135138,0,b7,0,d7f4f89c) at uvn_attach+0x2d1
>> uvmspace_free(d7f4f89c,6,d085f740) at uvmspace_free+0x10d
>> uvm_exit(d7f3d87c,d038e561,8,286) at uvm_exit+0x1a
>> reaper(d81869d8) at reaper+0x9a
>> Bad frame pointer: 0xd0989eb8

>
> Your snipped disklabels showed your IDE drives, but not your raid drives.
> I am going to guess your problem was a swap partition config issue,
> perhaps your raid disklabels have swap as the first partition, and there
> is no offset?
>

No the first was a 2048M partition , the 2nd was the swap.

> Anyway, its just conjecture. You now have a working RAIDFrame system.
> Congratulations!
>
>

Next time we buy them with hardware raid controllers and scsi disks.
Normally we do that but only this st*pid customers wants this cheap
systems.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-16-2008, 07:50 AM
Josh Grosse
 
Posts: n/a
Default Re: raid problem?

On Fri, 16 Feb 2007 19:31:03 +0100, Peter van Oord van der Vlies wrote:

> Next time we buy them with hardware raid controllers and scsi disks.
> Normally we do that but only this st*pid customers wants this cheap
> systems.


You can certainly do that. RAIDFrame is a usable, software RAID. I
still think you had a config problem of some kind.

I run RAIDFrame -- and run both root-on-raid as well as swap-on-raid. I
set swap up in its own RAID volume. Most critical, I think, is that I
offset the first used sector to LBA 63. The disklabel has to reside
somewhere.

I have had an IDE disk drive fail, and my two RAID sets continued to run.
The hardware was incapable of physical hot swap, but RAIDFrame kept the
system operating until a scheduled maintenance window. (Yes, RAIDFrame
has logical hot swap, but that wasn't applicable in this situation.)

I don't know if your problems were related to offset or not. Here are
two RAID set disklabels: the first is a data volume:

# size offset fstype [fsize bsize cpg]
a: 204737 63 4.2BSD 2048 16384 199 # Cyl 0*- 199
c: 69206144 0 unused 0 0 # Cyl 0 - 67584*
d: 2097152 204800 4.2BSD 2048 16384 323 # Cyl 200 - 2247
e: 20971520 2301952 4.2BSD 2048 16384 323 # Cyl 2248 - 22727
f: 45932672 23273472 4.2BSD 2048 16384 323 # Cyl 22728 - 67584*

This second is a swap volume:

# size offset fstype [fsize bsize cpg]
b: 3804993 63 swap # Cyl 0*- 3715*
c: 3805056 0 unused 0 0 # Cyl 0 - 3715*


--
Replying directly will get you locally blacklisted.
Change the address; use my first name in front of the @ if you want to
communicate privately.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-16-2008, 07:50 AM
Peter van Oord van der Vlies
 
Posts: n/a
Default Re: raid problem?

Josh Grosse wrote:
> On Fri, 16 Feb 2007 12:05:00 +0100, Peter van Oord van der Vlies wrote:
>
>> I still had a swap on both disks so i use that one now and disabled the
>> swap on raid0.
>> It seems to work..

>
> Glad you got things working.
>
>> Here is the information you want(the fault and trace is below):

>
> <snip>
>
>> ...The crash:
>>
>> uvm_fault(0xd0821a20, 0xe9dbd00, 0, 1) -> e
>> kernel: page fault trap, code=0
>> Stopped at pmap_page_remove_86+0x125: movl 0(%eax,%edx,4),%eax
>>
>>
>> show panic:
>> the kernel did not panic
>>
>>
>> trace:
>> pmap_page_remove_86(d0cba46,d04b6474,8,246,d7fd738 a8) at
>> pmap_page_remove_86+0x125
>> uvm_vnp_terminate(d8135138,0,0,0,0,14,d81869d8,9) at uvm_vnp_terminate+0x36b
>> uvm_attach(d8135138,0,b7,0,d7f4f89c) at uvn_attach+0x2d1
>> uvmspace_free(d7f4f89c,6,d085f740) at uvmspace_free+0x10d
>> uvm_exit(d7f3d87c,d038e561,8,286) at uvm_exit+0x1a
>> reaper(d81869d8) at reaper+0x9a
>> Bad frame pointer: 0xd0989eb8

>
> Your snipped disklabels showed your IDE drives, but not your raid drives.
> I am going to guess your problem was a swap partition config issue,
> perhaps your raid disklabels have swap as the first partition, and there
> is no offset?
>
> Anyway, its just conjecture. You now have a working RAIDFrame system.
> Congratulations!
>
>

At the end of today the systems crashed again after the reboot command.
I have looked at the disklabel and yes i am starting directly from
offset 0 instead of 63. Can this be a real problem ? Tomorrow i will
reconfigure the systems to test this.

Peter
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:17 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856