特殊:Badtitle/NS100:FakeRaidDebug:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第15行: | 第15行: | ||
255 heads, 63 sectors/track, 19452 cylinders, total 312500000 sectors | 255 heads, 63 sectors/track, 19452 cylinders, total 312500000 sectors | ||
Units == sectors of 1 * 512 == 512 bytes | Units == sectors of 1 * 512 == 512 bytes | ||
Subtract | Subtract 3000 from the number of total sectors. For example, | ||
312500000 minus | 312500000 minus 3000 = 312497000 | ||
Run the command "dd if=/dev/sda of=outputfile skip=312498000" (changing sda and skip= to your values) Pack up the outputfile using the tar command above, post it and ask for help. ALSO include the output from the fdisk command above. | Run the command "dd if=/dev/sda of=outputfile skip=312498000" (changing sda and skip= to your values) Pack up the outputfile using the tar command above, post it and ask for help. ALSO include the output from the fdisk command above. | ||
NOW you're done! | NOW you're done! | ||
== Advanced troubleshooting == | == Advanced troubleshooting == | ||
If you'd rather not wait for help in the forums, you can actually solve this yourself, but it is quite a bit more work. I'm going to explain whats happening here and what you need to do but from that point its up to you. | If you'd rather not wait for help in the forums, you can actually solve this yourself, but it is quite a bit more work. I'm going to explain whats happening here and what you need to do but from that point its up to you. | ||
fakeRAID metadata is stored somewhere close to the end of the harddrive, and is used by dmraid to figure out what your raid setup is. Sometimes dmraid has trouble finding or understanding the metadata and that's what is happening to you. So the dd command takes a dump of the last | fakeRAID metadata is stored somewhere close to the end of the harddrive, and is used by dmraid to figure out what your raid setup is. Sometimes dmraid has trouble finding or understanding the metadata and that's what is happening to you. So the dd command takes a dump of the last 3000 sectors of your harddrive so that the metadata can be manually located. Once found, the location (or "offset") is added to dmraid and a new version of the dmraid package is generated. | ||
If you want to find the metadata yourself, you're first going to need to know what you're looking for. If you have a promise controller like I do, you're going to be looking for "Promise Technology, Inc.". However, if your fakeRAID is from another vendor then you're going to need to look through the dmraid source code to see what your manufacturer's header looks like. The metadata layouts can be found in the lib/format/ataraid directory of the source code bundle: | If you want to find the metadata yourself, you're first going to need to know what you're looking for. If you have a promise controller like I do, you're going to be looking for "Promise Technology, Inc.". However, if your fakeRAID is from another vendor then you're going to need to look through the dmraid source code to see what your manufacturer's header looks like. The metadata layouts can be found in the lib/format/ataraid directory of the source code bundle: | ||
http://people.redhat.com/~heinzm/sw/dmraid/src/ | http://people.redhat.com/~heinzm/sw/dmraid/src/ | ||
Next you're going to need to get a readable dump of the end of your hard drive and start looking for the metadata header. Running the command "dd if=/dev/sda | Next you're going to need to get a readable dump of the end of your hard drive and start looking for the metadata header. Running the command "dd if=/dev/sda skip=312497000 | hexdump -C > outputfile.txt" (substituting your values) will give you a file that you can manually browse through and eyeball for your header. | ||
Once you've found your header, you're going to have to figure out exactly which sector it is located on. The way I did this was just by manually changing the skip= parameter, increasing and decreasing it until the start of the dump lined up exactly with the start of the header. | Once you've found your header, you're going to have to figure out exactly which sector it is located on. The way I did this was just by manually changing the skip= parameter, increasing and decreasing it until the start of the dump lined up exactly with the start of the header. | ||
Each time you run the dd command it will tell you how many bytes were generated. If your dd output has the metadata header lined up exactly, then the number of bytes generated is also the exact offset where the metadata lies relative to the end of the disk. You just need to use the sector size from the fdisk command to complete the calculation. So if my metadata lined up exactly at skip=312499089 and the dd command dumped 466432 bytes then: | Each time you run the dd command it will tell you how many bytes were generated. If your dd output has the metadata header lined up exactly, then the number of bytes generated is also the exact offset where the metadata lies relative to the end of the disk. You just need to use the sector size from the fdisk command to complete the calculation. So if my metadata lined up exactly at skip=312499089 and the dd command dumped 466432 bytes then: | ||
第34行: | 第34行: | ||
Good luck! | Good luck! | ||
== User Contributed Tips == | == User Contributed Tips == | ||
Include a tip from your fakeRAID installation here. | Include a tip from your fakeRAID installation here. | ||
I had an IRQ conflict involving a promise "FasTrak Lite" MB controller. It was sharing IRQ 10 with my USB 2.0 controller. As a result dmraid -ay or dmraid -r would lock the machine hard. Disabling the USB controller made the RAID work fine, and I still have USB 1.0 which is good enough to run the mouse. | I had an IRQ conflict involving a promise "FasTrak Lite" MB controller. It was sharing IRQ 10 with my USB 2.0 controller. As a result dmraid -ay or dmraid -r would lock the machine hard. Disabling the USB controller made the RAID work fine, and I still have USB 1.0 which is good enough to run the mouse. | ||
Look into 'mdadm.' | |||
Intel ICH10R had its metadata 2115 sectors back from the end - updated the page to 3K sectors. | |||
---- | ---- | ||
[[category:CategoryHardware]] | [[category:CategoryHardware]] | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2009年5月12日 (二) 16:42的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/FakeRaidDebug }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/af | • {{#if: UbuntuHelp:FakeRaidDebug|Afrikaans| [[::FakeRaidDebug/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/ar | • {{#if: UbuntuHelp:FakeRaidDebug|العربية| [[::FakeRaidDebug/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/az | • {{#if: UbuntuHelp:FakeRaidDebug|azərbaycanca| [[::FakeRaidDebug/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/bcc | • {{#if: UbuntuHelp:FakeRaidDebug|جهلسری بلوچی| [[::FakeRaidDebug/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/bg | • {{#if: UbuntuHelp:FakeRaidDebug|български| [[::FakeRaidDebug/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/br | • {{#if: UbuntuHelp:FakeRaidDebug|brezhoneg| [[::FakeRaidDebug/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/ca | • {{#if: UbuntuHelp:FakeRaidDebug|català| [[::FakeRaidDebug/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/cs | • {{#if: UbuntuHelp:FakeRaidDebug|čeština| [[::FakeRaidDebug/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/de | • {{#if: UbuntuHelp:FakeRaidDebug|Deutsch| [[::FakeRaidDebug/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/el | • {{#if: UbuntuHelp:FakeRaidDebug|Ελληνικά| [[::FakeRaidDebug/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/es | • {{#if: UbuntuHelp:FakeRaidDebug|español| [[::FakeRaidDebug/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/fa | • {{#if: UbuntuHelp:FakeRaidDebug|فارسی| [[::FakeRaidDebug/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/fi | • {{#if: UbuntuHelp:FakeRaidDebug|suomi| [[::FakeRaidDebug/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/fr | • {{#if: UbuntuHelp:FakeRaidDebug|français| [[::FakeRaidDebug/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/gu | • {{#if: UbuntuHelp:FakeRaidDebug|ગુજરાતી| [[::FakeRaidDebug/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/he | • {{#if: UbuntuHelp:FakeRaidDebug|עברית| [[::FakeRaidDebug/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/hu | • {{#if: UbuntuHelp:FakeRaidDebug|magyar| [[::FakeRaidDebug/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/id | • {{#if: UbuntuHelp:FakeRaidDebug|Bahasa Indonesia| [[::FakeRaidDebug/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/it | • {{#if: UbuntuHelp:FakeRaidDebug|italiano| [[::FakeRaidDebug/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/ja | • {{#if: UbuntuHelp:FakeRaidDebug|日本語| [[::FakeRaidDebug/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/ko | • {{#if: UbuntuHelp:FakeRaidDebug|한국어| [[::FakeRaidDebug/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/ksh | • {{#if: UbuntuHelp:FakeRaidDebug|Ripoarisch| [[::FakeRaidDebug/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/mr | • {{#if: UbuntuHelp:FakeRaidDebug|मराठी| [[::FakeRaidDebug/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/ms | • {{#if: UbuntuHelp:FakeRaidDebug|Bahasa Melayu| [[::FakeRaidDebug/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/nl | • {{#if: UbuntuHelp:FakeRaidDebug|Nederlands| [[::FakeRaidDebug/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/no | • {{#if: UbuntuHelp:FakeRaidDebug|norsk| [[::FakeRaidDebug/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/oc | • {{#if: UbuntuHelp:FakeRaidDebug|occitan| [[::FakeRaidDebug/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/pl | • {{#if: UbuntuHelp:FakeRaidDebug|polski| [[::FakeRaidDebug/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/pt | • {{#if: UbuntuHelp:FakeRaidDebug|português| [[::FakeRaidDebug/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/ro | • {{#if: UbuntuHelp:FakeRaidDebug|română| [[::FakeRaidDebug/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/ru | • {{#if: UbuntuHelp:FakeRaidDebug|русский| [[::FakeRaidDebug/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/si | • {{#if: UbuntuHelp:FakeRaidDebug|සිංහල| [[::FakeRaidDebug/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/sq | • {{#if: UbuntuHelp:FakeRaidDebug|shqip| [[::FakeRaidDebug/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/sr | • {{#if: UbuntuHelp:FakeRaidDebug|српски / srpski| [[::FakeRaidDebug/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/sv | • {{#if: UbuntuHelp:FakeRaidDebug|svenska| [[::FakeRaidDebug/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/th | • {{#if: UbuntuHelp:FakeRaidDebug|ไทย| [[::FakeRaidDebug/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/tr | • {{#if: UbuntuHelp:FakeRaidDebug|Türkçe| [[::FakeRaidDebug/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/vi | • {{#if: UbuntuHelp:FakeRaidDebug|Tiếng Việt| [[::FakeRaidDebug/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/yue | • {{#if: UbuntuHelp:FakeRaidDebug|粵語| [[::FakeRaidDebug/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/zh | • {{#if: UbuntuHelp:FakeRaidDebug|中文| [[::FakeRaidDebug/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/zh-hans | • {{#if: UbuntuHelp:FakeRaidDebug|中文(简体)| [[::FakeRaidDebug/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FakeRaidDebug | UbuntuHelp:FakeRaidDebug | {{#if: | :}}FakeRaidDebug}}/zh-hant | • {{#if: UbuntuHelp:FakeRaidDebug|中文(繁體)| [[::FakeRaidDebug/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:FakeRaidDebug|:FakeRaidDebug|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :FakeRaidDebug/zh | | {{#ifexist: FakeRaidDebug/zh | | {{#ifeq: {{#titleparts:FakeRaidDebug|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:FakeRaidDebug|1|-1|}} | zh | | }}
What to do when dmraid fails
This wiki entry discusses what to do when dmraid doesn't properly find and activate your fakeRAID|array. This procedure was developed to address bug #112402
"dmraid -r" just returns "No RAID disks."
If you get this error message, this page is the place for you. 1. First run the comand "dmraid -ay -vvv -d". If errors show up here, that probably indicates that other problems outside of dmraid exist with your disk. 2. Run the command "dmraid -b" and make sure that dmraid can see your block devices. 3. Run the command "dmraid -rD" and look for the three output files: ( .dat, .offset, .size ). If it generates these files, pack them up, post them and ask for help. Use the command "tar jcvf yourfilename.tar.bz2 *.{dat,size,offset}"
You're done!
"dmraid -rD" generates no files
Run the command "fdisk -u -l /dev/sda" (if sda is not your disk, change it) You'll get something like this: Disk /dev/sda: 160.0 GB, 160000000000 bytes 255 heads, 63 sectors/track, 19452 cylinders, total 312500000 sectors Units == sectors of 1 * 512 == 512 bytes Subtract 3000 from the number of total sectors. For example, 312500000 minus 3000 = 312497000 Run the command "dd if=/dev/sda of=outputfile skip=312498000" (changing sda and skip= to your values) Pack up the outputfile using the tar command above, post it and ask for help. ALSO include the output from the fdisk command above. NOW you're done!
Advanced troubleshooting
If you'd rather not wait for help in the forums, you can actually solve this yourself, but it is quite a bit more work. I'm going to explain whats happening here and what you need to do but from that point its up to you. fakeRAID metadata is stored somewhere close to the end of the harddrive, and is used by dmraid to figure out what your raid setup is. Sometimes dmraid has trouble finding or understanding the metadata and that's what is happening to you. So the dd command takes a dump of the last 3000 sectors of your harddrive so that the metadata can be manually located. Once found, the location (or "offset") is added to dmraid and a new version of the dmraid package is generated. If you want to find the metadata yourself, you're first going to need to know what you're looking for. If you have a promise controller like I do, you're going to be looking for "Promise Technology, Inc.". However, if your fakeRAID is from another vendor then you're going to need to look through the dmraid source code to see what your manufacturer's header looks like. The metadata layouts can be found in the lib/format/ataraid directory of the source code bundle: http://people.redhat.com/~heinzm/sw/dmraid/src/ Next you're going to need to get a readable dump of the end of your hard drive and start looking for the metadata header. Running the command "dd if=/dev/sda skip=312497000 | hexdump -C > outputfile.txt" (substituting your values) will give you a file that you can manually browse through and eyeball for your header. Once you've found your header, you're going to have to figure out exactly which sector it is located on. The way I did this was just by manually changing the skip= parameter, increasing and decreasing it until the start of the dump lined up exactly with the start of the header. Each time you run the dd command it will tell you how many bytes were generated. If your dd output has the metadata header lined up exactly, then the number of bytes generated is also the exact offset where the metadata lies relative to the end of the disk. You just need to use the sector size from the fdisk command to complete the calculation. So if my metadata lined up exactly at skip=312499089 and the dd command dumped 466432 bytes then: 312499089 minus ( 466432 divided by sector size of 512k/sector ) = 911 sectors from the end of the disk To fix the problem, add this number to the CONFIGOFFSETS variable in the same source file you looked at before. So for example in pdc.h:
- define PDC_CONFIGOFFSETS 63,255,256,16,399,675,735,991
Recompile, install the updated package, and check your array status using "dmraid -r". If you're confused, don't worry. It will pass. Review this bug thread and ask for enlightenment. Good luck!
User Contributed Tips
Include a tip from your fakeRAID installation here. I had an IRQ conflict involving a promise "FasTrak Lite" MB controller. It was sharing IRQ 10 with my USB 2.0 controller. As a result dmraid -ay or dmraid -r would lock the machine hard. Disabling the USB controller made the RAID work fine, and I still have USB 1.0 which is good enough to run the mouse. Look into 'mdadm.' Intel ICH10R had its metadata 2115 sectors back from the end - updated the page to 3K sectors.