Razlika između inačica stranice RAID dokumentacija
Izvor: HrOpenWiki
m |
m |
||
Redak 30: | Redak 30: | ||
</pre> | </pre> | ||
− | Dodavanje ''sdb3'' particije u ''mda0'' RAID polje: | + | Dodavanje ''sdb3'' particije u ''mda0'' RAID polje (ako je polje degradirano, automatski regenerira polje s novim diskom/particijom, u suprotnom novu particiju/disk dodaje kao rezervni uređaj): |
mdadm --add /dev/md0 /dev/sdb3 | mdadm --add /dev/md0 /dev/sdb3 | ||
+ | Da bi promjene ostale i nakon restarta potrebno je urediti i /etc/mdadm.conf datoteku - dodati disk/particiju u DEVICES liniju: | ||
+ | # mdadm.conf written out by anaconda | ||
+ | MAILADDR root | ||
+ | DEVICE /dev/sda3 /dev/sdb3 | ||
+ | ARRAY /dev/md0 level=raid1 num-devices=2 UUID=xxxx | ||
==Reference i daljnje čitanje== | ==Reference i daljnje čitanje== | ||
*[http://tldp.net/HOWTO/html_single/Software-RAID-HOWTO/ Software RAID - HowTO] | *[http://tldp.net/HOWTO/html_single/Software-RAID-HOWTO/ Software RAID - HowTO] |
Inačica od 08:22, 23. studenoga 2009.
Čitanje stanja RAID polja:
mdadm --detail /dev/md0
Degradirano polje (ono koje je izgubilo jedan disk, ali i dalje radi) daje ovakav prikaz:
/dev/md0: Version : 00.90.03 Creation Time : Sun Aug 24 14:25:46 2008 Raid Level : raid1 Array Size : 78150656 (74.53 GiB 80.03 GB) Used Dev Size : 78150656 (74.53 GiB 80.03 GB) Raid Devices : 2 Total Devices : 1 Preferred Minor : 0 Persistence : Superblock is persistent Update Time : Sun Jan 18 19:51:45 2009 State : clean, degraded Active Devices : 1 Working Devices : 1 Failed Devices : 0 Spare Devices : 0 UUID : c5b0fc1c:e38d099c:f6bbbce7:e581d4d0 (local to host desktop-pc) Events : 0.3322 Number Major Minor RaidDevice State 0 0 0 0 removed 1 8 0 1 active sync /dev/sda
Dodavanje sdb3 particije u mda0 RAID polje (ako je polje degradirano, automatski regenerira polje s novim diskom/particijom, u suprotnom novu particiju/disk dodaje kao rezervni uređaj):
mdadm --add /dev/md0 /dev/sdb3
Da bi promjene ostale i nakon restarta potrebno je urediti i /etc/mdadm.conf datoteku - dodati disk/particiju u DEVICES liniju:
# mdadm.conf written out by anaconda MAILADDR root DEVICE /dev/sda3 /dev/sdb3 ARRAY /dev/md0 level=raid1 num-devices=2 UUID=xxxx