qube:~# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/md1 4993920 275168 4718752 6% / tmpfs 62888 0 62888 0% /lib/init/rw tmpfs 62888 0 62888 0% /dev/shm /dev/root.old 31729 16812 14917 53% /initrd /dev/md0 995928 185300 810628 19% /boot /dev/sda6 148376092 66340 148309752 1% /mnt/disk1 qube:~# umount /mnt/disk1/ qube:~#
qube:~# mdadm -C /dev/md2 -l1 -n2 /dev/sda6 /dev/sdb6 mdadm: largest drive (/dev/sdb6) exceed size (148448512K) by more than 1% Continue creating array? y mdadm: array /dev/md2 started. qube:~# cat /proc/mdstat Personalities : [raid0] [raid1] [raid6] [raid5] [raid4] md2 : active raid1 sdb6[1] sda6[0] 148448512 blocks [2/2] [UU] [>....................] resync = 0.0% (102784/148448512) finish=94.3min speed=26177K/sec md1 : active raid1 sdb2[0] sda2[1] 5004160 blocks [4/2] [UU__] md10 : active raid1 sdb5[0] sda5[1] 1003904 blocks [4/2] [UU__] md0 : active raid1 sdb1[0] sda1[1] 1003904 blocks [4/2] [UU__] unused devices: <none> qube:~#パーティションのサイズが違うので、警告が出た。気にしない
qube:~# mkfs.xfs /dev/md2 mkfs.xfs: /dev/md2 appears to contain an existing filesystem (xfs). mkfs.xfs: Use the -f option to force overwrite. qube:~# mkfs.xfs -f /dev/md2 meta-data=/dev/md2 isize=256 agcount=4, agsize=9278032 blks = sectsz=512 attr=2 data = bsize=4096 blocks=37112128, imaxpct=25 = sunit=0 swidth=0 blks naming =version 2 bsize=4096 log =internal log bsize=4096 blocks=18121, version=2 = sectsz=512 sunit=0 blks, lazy-count=0 realtime =none extsz=4096 blocks=0, rtextents=0 qube:~#
qube:~# mount /dev/md2 /mnt/disk1 qube:~# ls /mnt/disk1/ qube:~# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/md1 4993920 275176 4718744 6% / tmpfs 62888 0 62888 0% /lib/init/rw tmpfs 62888 0 62888 0% /dev/shm /dev/root.old 31729 16812 14917 53% /initrd /dev/md0 995928 185300 810628 19% /boot /dev/md2 148376028 160 148375868 1% /mnt/disk1 qube:~#
そのうち resync 終わるでしょ。
|
← システム領域の RAID1 化 |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ fstab の修正 |