RAID @ Gentoo Linux - Linux Life

はじめに

既存の RAID6 にディスクを追加しました。

パーティションの設定

# fdisk /dev/sda
Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-38913, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-38913, default 38913):
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): fd
Changed system type of partition 1 to fd (Linux raid autodetect)
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.

RAID アレイにパーティションを追加

# mdadm --manage /dev/md4 --add /dev/sda1

RAID5 のデバイス数の変更

# mdadm --grow /dev/md4 --raid-disks=5

ファイルシステムのリサイズ

# resize_reiserfs /dev/md4

スポンサードリンク

Copyright © 2025 Linux-Life.net