RAIDを再構築できない病につける薬 [LinuxでSoftware RAID]
以前も書きましたが、RAIDを再構築する際には、おおざっぱに
アンマウント
RAID停止
スーパーブロックの消去
再度RAID作成
というステップを踏みますが、おそらく、スーパーブロックの消去で失敗
したのか、再度RAIDを作成しようとした際に
# mdadm --create /dev/md0 --raid-devices=4 --level=raid10 --chunk=1024 --layout=f2 -v /dev/sd[abcd]1
mdadm: Cannot open /dev/sda1: Device or resource busy
mdadm: create aborted
と、こんな具合に失敗します。
で、なにをしてもだいたいこんな具合に失敗します。。
原因は不明ですが、
# cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md_d0 : inactive sda1[0](S)
1953514432 blocks
unused devices: <none>
おそらく、このあたり。
# mdadm -E /dev/sda1
/dev/sda1:
Magic : a92b4efc
Version : 00.90.00
UUID : 22a9ece6:ae35f69a:86b54b3f:1d0c4af0 (local to host fs)
Creation Time : Sat Apr 17 20:26:56 2010
Raid Level : raid10
Used Dev Size : 1953514432 (1863.02 GiB 2000.40 GB)
Array Size : 3907028864 (3726.03 GiB 4000.80 GB)
Raid Devices : 4
Total Devices : 4
Preferred Minor : 0
Update Time : Sun Apr 18 06:22:24 2010
State : active
Active Devices : 4
Working Devices : 4
Failed Devices : 0
Spare Devices : 0
Checksum : 128dccc8 - correct
Events : 14
Layout : near=2, far=1
Chunk Size : 64K
Number Major Minor RaidDevice State
this 0 8 1 0 active sync /dev/sda1
0 0 8 1 0 active sync /dev/sda1
1 1 8 17 1 active sync /dev/sdb1
2 2 8 33 2 active sync /dev/sdc1
3 3 8 49 3 active sync /dev/sdd1
スーパーブロックの残骸や/proc/mdstatの残骸などの影響で、
createに失敗するようです。
正す方法はただ一つ。
mdadm の削除と再インストール
これが確実です。
# apt-get --reinstall install mdadm
では/proc/mdstat が残っているため、ダメです。
ですので、
# apt-get --purge remove mdadm
ここで、再起動してから、確認してみます。
# cat /proc/mdstat
Personalities :
unused devices: <none>
mdadmをインストールします。
# apt-get install mdadm
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
mdadm
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/239kB of archives.
After this operation, 676kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously deselected package mdadm.
(Reading database ... 68219 files and directories currently installed.)
Unpacking mdadm (from .../mdadm_2.6.7.1-1ubuntu13_amd64.deb) ...
Processing triggers for man-db ...
Setting up mdadm (2.6.7.1-1ubuntu13) ...
Generating array device nodes... /var/lib/dpkg/info/mdadm.postinst: 170: /dev/MAKEDEV: not found
failed.
Generating mdadm.conf... done.
Removing any system startup links for /etc/init.d/mdadm-raid ...
update-initramfs: deferring update (trigger activated)
update-rc.d: warning: mdadm start runlevel arguments (2 3 4 5) do not match LSB Default-Start values (S)
update-rc.d: warning: mdadm stop runlevel arguments (0 1 6) do not match LSB Default-Stop values (0 6)
* Starting MD monitoring service mdadm --monitor
...done.
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.31-20-server
これでOKです
いちおうスーパーブロックを消去します。
# mdadm --create /dev/md0 --raid-devices=4 --level=raid10 --chunk=1024 --layout=f2 -v /dev/sd[abcd]1
mdadm: /dev/sda1 appears to contain an ext2fs file system
size=58593280K mtime=Sun Apr 18 05:55:53 2010
mdadm: /dev/sda1 appears to be part of a raid array:
level=raid10 devices=4 ctime=Sat Apr 17 20:26:56 2010
mdadm: size set to 1953513472K
Continue creating array? yes
mdadm: array /dev/md0 started.
createが待ちきれないので、すぐに止めます。
# mdadm --misc --stop /dev/md0
mdadm: stopped /dev/md0
残骸がないことを確認します。
# cat /proc/mdstat
Personalities : [raid10]
unused devices: <none>
スーパーブロックをきれいにします。
# mdadm --misc --zero-superblock /dev/sd[abcd]1
完了です〜
このあと、createしてあげてください〜
Cialis De Marca Comprar Zithromax And Breastfeeding <a href=http://adrugo.com>cialis cheapest online prices</a> Kamagra Oral Jelly Cost Cialis Mit Rezept Bestellen
by Jeashibia (2019-02-16 12:20)
Kamagra E Hipertension Pulmonar Discount Vardenafil 20mg <a href=http://ausgsm.com></a> Viagra Efficace
by EllLatt (2019-06-03 08:12)
Buy Viagra On Line Cialis 5 Mg Diario Site Fiable Achat Kamagra <a href=http://levicost.com>order on line levitra</a> Difference Between Amoxil And Augmentin buy accutane online safe
by StevNite (2019-06-11 09:58)
Prezzi Cialis Online Comment Puis <a href=http://avdrug.com>levitra sur ordonnance</a> Buy Kamagra Pattaya Viagra 100 Mg For Sale
by EllLatt (2019-06-11 14:32)
Viagra Frau Lust Tablet Product Buy Viagra Usa Achat Medicament Generique Cialis <a href=http://cialvia.com>buy cialis online</a> Posologie Cialis Compare Flagyl In Elk Grove Misoprostol 200 Mcg Tab
by EllLatt (2019-06-19 10:53)
Ebay Cialis Offerta Viagra Cialis Levitra Review <a href=http://drugsor.com>low cost levitra</a> Generic Priligy Online Keflex Tablets
by EllLatt (2019-06-29 05:07)
Amoxicilan <a href=http://leviinusa.com>levitra purchase</a> Cheap Azoran No Rx
by StevNite (2019-07-08 18:41)
Cialis Free Sample Venta De Cialis <a href=http://gaprap.com>online pharmacy</a> Celexa Online No Prescription Levitra 20mg 8 Stuck Preisvergleich
by EllLatt (2019-07-11 03:27)
Cheap Generic Cialis In Uk <a href=http://cialvia.com>cialis 5 mg</a> Cialis Viagra Achat Order Fertility Pills Online Amoxicillin Rx 655
by EllLatt (2019-07-20 03:06)
Usa Rocket Cheap Diflucan No Prescription <a href=http://cialibuy.com>cheap cialis online</a> Priligy Capsulas
by KelLery (2020-01-20 16:32)
Kamagra How To Use http://buyciallisonline.com/# - Buy Cialis Can You Get High On Amoxicillin <a href=http://buyciallisonline.com/#>Buy Cialis</a> Doxycycline Isotretin Best Website
by StevBiaddy (2020-02-11 11:21)
Amoxicillin Reduce Birth Control http://abuycialisb.com - order cialis online Buy Valtrex 1000 Mg Online <a href=http://abuycialisb.com>cialis tablets for sale</a> Original Cialis Generika
by LesAlelty (2020-02-13 09:59)
Rxnorth Canada Drugs http://cheapcialisir.com - Cialis Buy Celexa Cheap <a href=http://cheapcialisir.com>Cheap Cialis</a> Le Viagra Coeur
by Matunmaks (2020-03-01 06:41)
Tomar Propecia Comprar <a href=http://apcialisle.com/#>Cialis</a> Amoxil Forte <a href=http://apcialisle.com/#>canadian cialis</a> Kamagra Jolly 100mg
by Jansyhorgo (2020-03-13 04:04)
Vente Cialis 40mg <a href=https://apcialisle.com/#>buy cialis canada pharmacy</a> Viagra Prezzi In Farmacia <a href=https://apcialisle.com/#>Cialis</a> Acquistare Kamagra Thailandia
by Jansyhorgo (2020-03-23 10:01)
Comprare Cialis Originale Italia <a href=https://abuycialisb.com/#>buy cialis pro</a> Viagra On Canadian Pharmacy <a href=https://abuycialisb.com/#>Cialis</a> Comprar Levitra
by Jansyhorgo (2020-04-17 09:57)
Online Pyridium Mail Order Glendale <a href=https://cheapcialisir.com/>Cialis</a> Amoxicilline Et Cephalosporines <a href=https://cheapcialisir.com/#>Cialis</a> cialis 20mg review
by Wedodrirl (2020-06-14 06:42)
Medication information. Drug Class. <a href="https://prednisone4u.top">can i get cheap prednisone online</a> in USA. Best trends of drugs. Read here.
<a href=https://bellamumma.com/bm-expert-5-ways-make-bed-like-luxe-hotel-bed/#comment-13600>All about drug.</a> <a href=https://amp.cn.vaskar.co.in/translate/1?to=en&from=zh&source=Medicament%20information.%20What%20side%20effects%20can%20this%20medication%20cause%3F%20%3Ca%20href%3D%22https%3A%2F%2Fprednisone4u.top%22%3Eprednisone%20price%3C%2Fa%3E%20in%20Canada.%20Actual%20news%20about%20medicine.%20Get%20information%20here.%20%0D%0A%3Ca%20href%3Dhttps%3A%2F%2Falmohaimeed.net%2Fm%2Far%2F86%3EAll%20news%20about%20medicament.%3C%2Fa%3E%20%3Ca%20href%3Dhttps%3A%2F%2Faito.org%2Fwiki%2Findex.php%2FTalk%3AAdnan_sami_song_mp3_download_pagalworld%23Some_information_about_meds.%3ESome%20information%20about%20meds.%3C%2Fa%3E%20%3Ca%20href%3Dhttps%3A%2F%2Factivity.rmu.ac.th%2Fhome%2FViewActivity%2F806%3ESome%20what%20you%20want%20to%20know%20about%20drug.%3C%2Fa%3E%20%20cf4b3b5%20&result=Medicament%20information.%20What%20side%20effects%20can%20this%20medication%20cause%3F%20%3Ca%20href%3D%22https%3A%2F%2Fprednisone4u.top%22%3Esome%20people%20price%3C%2Fa%3E%20in%20Canada.%20Actual%20news%20about%20medicine.%20Get%20information%20here.%20%3Ca%20href%3Dhttps%3A%2F%2Falmohaimeed.%20net%2Fm%2Far%2F86%3EAll%20news%20about%20the%20medicament.%3C%2F%20a%3E%20%3Ca%20href%3Dhttps%3A%2F%2Faito.%20org%2Fwiki%2Findex.%20php%2FTalk%3AAdnan_sami_song_mp3_download_pagalworld%23Some_information_about_meds.%3E%20Some%20information%20about%20meds.%3C%2F%20a%3E%20%3Ca%20href%3Dhttps%3A%2F%2Factivity.%20rmu.%20ac.%20th%2Fhome%2FViewActivity%2F806%3ESome%20of%20what%20you%20want%20to%20know%20about%20drug.%3C%2F%20a%3E%20cf4b3b5>Some information about medication.</a> <a href=https://bellamumma.com/100-ways-to-uncomplicate-your-life/#comment-13598>Some trends of drug.</a> 01d3ab1
by DifHS (2021-01-10 00:55)
Medication information sheet. Generic Name. <a href="https://prednisone4u.top">where to buy generic prednisone for sale</a> in the USA. Actual what you want to know about pills. Read information here.
<a href=http://principle.jp/bbs5/c-board.cgi?cmd=one;no=4138334;id=hijirin>Some information ab</a> <a href=https://amp.de.vaskar.co.in/translate/1?to=en&from=de&source=Drug%20information%20leaflet.%20Effects%20of%20Drug%20Abuse.%20%3Ca%20href%3D%22https%3A%2F%2Fprednisone4u.top%22%3Echeap%20prednisone%20no%20prescription%3C%2Fa%3E%20in%20US.%20Best%20what%20you%20want%20to%20know%20about%20drug.%20Read%20here.%20%0D%0A%3Ca%20href%3Dhttps%3A%2F%2Falmohaimeed.net%2Fm%2Far%2F22%3EActual%20information%20about%20medicines.%3C%2Fa%3E%20%3Ca%20href%3Dhttps%3A%2F%2Factivity.rmu.ac.th%2Fhome%2FViewActivity%2F274%3EBest%20trends%20of%20drugs.%3C%2Fa%3E%20%3Ca%20href%3Dhttps%3A%2F%2Falmohaimeed.net%2Fm%2Far%2F99%3EActual%20about%20drug.%3C%2Fa%3E%20%203803230%20&result=Drug%20information%20leaflet.%20Effects%20of%20Drug%20Abuse.%20%3Ca%20href%3D%22https%3A%2F%2Fprednisone4u.top%22%3Echeap%20prednisone%20no%20prescription%3C%2Fa%3E%20in%20the%20US.%20To%20the%20Best%20of%20what%20you%20want%20to%20know%20about%20drug.%20Read%20here.%20%3Ca%20href%3Dhttps%3A%2F%2Falmohaimeed.net%2Fm%2Far%2F22%3E%2C%20Actual%20information%20about%20medicines.%3C%2Fa%3E%20%3Ca%20href%3Dhttps%3A%2F%2Factivity.rmu.ac.th%2Fhome%2Fview%20activity%2F274%3EBest%20trends%20of%20drugs.%3C%2Fa%3E%20%3Ca%20href%3Dhttps%3A%2F%2Falmohaimeed.net%2Fm%2Far%2F99%3EActual%20about%20drug.%3C%2Fa%3E%203803230>Some trends of meds.</a> <a href=http://fatahalarab.com/10340/%D8%AD%D9%84-%D9%84%D8%B9%D8%A8%D8%A9-%D9%81%D8%B7%D8%AD%D9%84-%D9%84%D8%BA%D8%B2-14?show=84531#a84531>Actual news about medication.</a> d3730c8
by SvgNH (2021-01-10 08:20)
скільки буде тривати війна в україні 2022 <a href="http://bitly.com/skilky-shche-bude-tryvaty-viyna-v-ukrayini">коли закінчиться війна в україні передбачення</a> коли почалась друга світова війна
by Aberthap (2022-03-05 09:42)
https://t.me/holostyaktntofficial2022
by Abrthap (2022-03-14 18:05)
<a href="https://t.me/filmfilmfilmes/20">Скажене Весiлля 2</a>
by Abrthap (2022-03-20 06:56)