Cent OS Software Raid1 - Linux

Todd Johnson avatar
By Todd Johnson
at 2011-11-01T09:53

Table of Contents


由於某台機器有這樣子的需求....所以找到了相關的教學(如下)

http://hi.baidu.com/enjoyunix/blog/item/4f152e3d820dfc0abba167ca.html

但是跟著做之後發現了些問題(默)...(而且機器已經在跑東西了)

3. 告诉GRUB boot sector 位置

#grub

root (hd0,0) <--出現錯誤訊息 Filesystem type is ext2fs, partition type 0x83

setup (hd0)

grub> setup (hd0)_
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... yes
Checking if "/grub/stage2" exists... yes
Checking if "/grub/e2fs_stage1_5" exists... yes
Running "embed /grub/e2fs_stage1_5 (hd0)"... 15 sectors are embedded.
succeeded
Running "install /grub/stage1 (hd0) (hd0)1+15 p (hd0,0)/grub/stage2 /grub/grub.conf"... succee
ded
Done.



grub> root (hd1,0)
Filesystem type is ext2fs, partition type 0xfdsetup (hd1)

grub> setup (hd1)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd1)"... 15 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd1) (hd1)1+15 p (hd1,0)/boot/grub/stage2 /boot/grub/grub.
conf"... succeeded
Done.

麻煩各位前輩們給點提示 <(_ _)>

--
Tags: Linux

All Comments

Freda avatar
By Freda
at 2011-11-06T08:54
你意思是在已有資料的硬碟弄raid? 還是弄raid後開始有資料
Sandy avatar
By Sandy
at 2011-11-11T06:12
才出問題? 沒有完全備份,千萬不要用已有資料HD製作raid
Eartha avatar
By Eartha
at 2011-11-15T16:34
已經有資料的情況下做RAID1......(我也想用硬體搞阿)
Puput avatar
By Puput
at 2011-11-17T18:16
不是硬raid軟raid的問題,資料先備份,才有本錢打掉重練.
Elizabeth avatar
By Elizabeth
at 2011-11-18T05:12
因為一旦出問題,通常比較可行的做法就是打掉重練.
Ina avatar
By Ina
at 2011-11-21T20:51
我講的打掉,是指parition等級的,不是OS重灌.
Ina avatar
By Ina
at 2011-11-22T16:15
你的grub是幾版的?
Agatha avatar
By Agatha
at 2011-11-27T08:40
OS能boot嗎? cat /proc/mdstat 結果是什麼?
Zora avatar
By Zora
at 2011-11-29T23:53
grub 0.97 cat /proc/mdstat
Personalities : [raid1]
Una avatar
By Una
at 2011-12-03T03:00
md1 : active raid1 hdc2[1]
488279488 blocks [2/1] [_U]
md0 : active raid1 hdc1[1]
104320 blocks [2/1] [_U]
unused devices: <none>
Leila avatar
By Leila
at 2011-12-04T11:26
然後 無法開機 不過因為GRUB正好記錄了以前的開機設定
所以可以用之前的開機設定開進來
Eartha avatar
By Eartha
at 2011-12-08T02:34
我很久沒用RH系,可能幫不太上.但Ubuntu10.04預設是用
Isla avatar
By Isla
at 2011-12-11T22:22
UUID來設定md和單一分區.如果你載的md工具也如此,你可能
Freda avatar
By Freda
at 2011-12-12T05:49
要改一下 fstab. 另外看一下 mdadm --detail /dev/md0(1)
Freda avatar
By Freda
at 2011-12-13T12:03
grub或許也有必要更新
Isla avatar
By Isla
at 2011-12-13T18:00
另外執行一下 blkid
Aaliyah avatar
By Aaliyah
at 2011-12-18T16:08
-bash: syntax error near unexpected token `('
Enid avatar
By Enid
at 2011-12-21T04:36
mdadm --detail /dev/md0
mdadm: Unknown keyword mdadm
/dev/md0:
Version : 0.90
Creation Time : Fri Oct 28 10:30:10 2011
Raid Level : raid1
Array Size : 104320 (101.89 MiB 106.82 MB)
Used Dev Size : 104320 (101.89 MiB 106.82 MB)
Enid avatar
By Enid
at 2011-12-25T02:20
Raid Devices : 2
Total Devices : 1
Preferred Minor : 0
Persistence : Superblock is persistent
Update Time : Tue Nov 1 09:13:58 2011
State : clean, degraded
Jacob avatar
By Jacob
at 2011-12-29T21:33
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0
UUID : 3aa2f8c7:7daecc01:cc4cb43a:6742a4bb
Xanthe avatar
By Xanthe
at 2012-01-01T23:08
Events : 0.328
Number Major Minor RaidDevice State
0 0 0 0 removed
1 22 1 1 active sync /d
/dev/hdc1
Thomas avatar
By Thomas
at 2012-01-02T04:22
你可以用大寫E修文.
Barb Cronin avatar
By Barb Cronin
at 2012-01-06T00:42
...我剛剛還在想說 複製貼上好累|||
Zenobia avatar
By Zenobia
at 2012-01-09T00:00
你的md0有一顆是不是沒找到?
Ophelia avatar
By Ophelia
at 2012-01-11T21:09
應該有md0 md1 兩個 分別掛載hdc1 hdc2
Delia avatar
By Delia
at 2012-01-12T11:42
你每個md原本就只有一個device?
Susan avatar
By Susan
at 2012-01-14T13:42
Raid devices 那麼說2個.
Hedwig avatar
By Hedwig
at 2012-01-18T15:53
hda1 hda2 hdc1(md1) hdc2 (md2)
Andy avatar
By Andy
at 2012-01-22T14:50
你所謂md1,2應該是 md0,1吧 /proc/mdstat 是顯示 md0,1
Victoria avatar
By Victoria
at 2012-01-23T02:49
你是準備把 hda1 加入 md0, hda2 加入 md1 嗎?
Faithe avatar
By Faithe
at 2012-01-23T20:27
還是本來已經加入,現在是脫隊狀態?
William avatar
By William
at 2012-01-28T02:00
囧對拉 應該是hdc1是md0 hdc2是md1
Emma avatar
By Emma
at 2012-02-01T09:55
是準備加入(畢竟原本是獨立的)
Ula avatar
By Ula
at 2012-02-02T06:54
怎麼一直沒有回答每個md原本有幾個設備的問題?
瞭解
所以md不是開機 / 所在?
/boot
Belly avatar
By Belly
at 2012-02-02T09:57
他的做法是將HDA的東西複製到HDC上面(md0 md1)讓md0
去開機 然後在把HDA的資料同步後 設定成兩個都可以開機
George avatar
By George
at 2012-02-06T17:07
現在是卡在無法用md0開機
Blanche avatar
By Blanche
at 2012-02-10T03:12
原po可以google一下grub1針對raid的開機設定再試看看.
如果能弄到開機ok,後面比較單純
Vanessa avatar
By Vanessa
at 2012-02-14T22:29
我的意思除了你原參考文章外,再多找其它文章交差參考.
Kyle avatar
By Kyle
at 2012-02-16T01:09
要注意grub版本,1和2針對raid開機設定教學,我經驗是不通用
Vanessa avatar
By Vanessa
at 2012-02-18T01:52
不過我那時另有Ubuntu10.04開機光碟不能正確設定raid的問
題,改用8.04切分割才搞定,所以是否grub版本問題也不全然.

vnc時無法使用遠端伺服器的gcin

Suhail Hany avatar
By Suhail Hany
at 2011-11-01T06:48
我在Windows利用RealVNC這套軟體vnc到遠端的Linux VNC server Linux distro是64-bit Ubuntu Server Edition 8.04 Linux上的gcin是用Synaptic裝的 gcin設定值皆為預設 vnc過去後發現一個問題 假設我開了文字編 ...

換了硬碟結果出現Permission denied

Selena avatar
By Selena
at 2011-11-01T00:35
原本的架構是 Server(NIS+NFS) -- Client 最近因為家目錄滿了,我換了一個大一點的硬碟 然後把他掛載在/home 接著把原本的資料全部複製過去 這一切看起來如此完美 但不知道為何,在Server端登入竟然會出現家目錄permission denied~ 我用root作cp,接著用cho ...

8年前電腦灌 Linux

Joe avatar
By Joe
at 2011-10-31T22:42
想請問這麼舊的電腦可以灌哪一種 Linux ??? CPU: Pentium 4 2.4GHz Memory: 256MB DDR 400 HD: 80G 我想這種電腦大概 Ubuntu 11.04 就不用想了囧 - ...

sed顯示欄位

Kyle avatar
By Kyle
at 2011-10-31T21:04
我想請問一下 如果資料是 aaa bbb ccc 111 222 333 那可以用sed讓他資料變成 aaa bbb 111 222 只顯示某些欄位就好嗎? 謝謝!! - ...

colinux下的ext4支援

Erin avatar
By Erin
at 2011-10-31T21:03
http://sourceforge.net/projects/portableubuntu/files/portableubuntu/TRES/ 在其中執行dmesg的結果。 Linux version 2.6.33-co-0.8.0 (hnathn-lt) (gcc version 4.4.1 [gcc ...