tswxl:~# cat /proc/mdstat Personalities : [raid0] [raid1] [raid6] [raid5] [raid4] md2 : active raid1 sda6[0] sdb6[1] 237198464 blocks [2/2] [UU] md1 : active raid1 sda2[0] sdb2[1] 4999936 blocks [2/2] [UU] md10 : active raid1 sda5[0] sdb5[1] 999872 blocks [2/2] [UU] md0 : active raid1 sda1[0] sdb1[1] 999872 blocks [2/2] [UU] unused devices: <none> tswxl:~#
tswxl:~# mkfs[TAB][TAB] mkfs mkfs.cramfs mkfs.ext3 mkfs.ext4dev mkfs.bfs mkfs.ext2 mkfs.ext4 mkfs.minix tswxl:~#mkfs.xfs がない。
tswxl:~# apt-cache search mkfs.xfs xfsprogs - Utilities for managing the XFS filesystem tswxl:~#xfsprogs をインストールする。
tswxl:~# apt-get install xfsprogs Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: xfsdump attr dvhtool quota The following NEW packages will be installed: xfsprogs 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 1524kB of archives. After this operation, 3256kB of additional disk space will be used. Get:1 http://ftp.jp.debian.org lenny/main xfsprogs 2.9.8-1lenny1 [1524kB] Fetched 1524kB in 1s (1344kB/s) Selecting previously deselected package xfsprogs. (Reading database ... 9678 files and directories currently installed.) Unpacking xfsprogs (from .../xfsprogs_2.9.8-1lenny1_armel.deb) ... Processing triggers for man-db ... Setting up xfsprogs (2.9.8-1lenny1) ... tswxl:~#
tswxl:~# mkfs.xfs /dev/md2 meta-data=/dev/md2 isize=256 agcount=4, agsize=14824904 blks = sectsz=512 attr=2 data = bsize=4096 blocks=59299616, imaxpct=25 = sunit=0 swidth=0 blks naming =version 2 bsize=4096 log =internal log bsize=4096 blocks=28954, version=2 = sectsz=512 sunit=0 blks, lazy-count=0 realtime =none extsz=4096 blocks=0, rtextents=0 tswxl:~#
tswxl:~# ls /mnt tswxl:~# mount /dev/md2 /mnt Filesystem "md2": Disabling barriers, not supported by the underlying device XFS mounting filesystem md2 tswxl:~# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/md1 4921404 809440 3861968 18% / tmpfs 257388 0 257388 0% /lib/init/rw tmpfs 257388 0 257388 0% /dev/shm /dev/root.old 31729 23459 8270 74% /initrd /dev/md0 991928 176928 815000 18% /boot /dev/md2 237082648 160 237082488 1% /mnt tswxl:~#Disabling barriers, not supported by the underlying device って???
tswxl:~# cat /etc/fstab # /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> /dev/md1 / xfs defaults,noatime 0 0 proc /proc proc defaults 0 0 /dev/md10 swap swap defaults 0 0 /dev/md0 /boot ext3 defaults,noatime 0 0 /dev/md2 /mnt xfs defaults,noatime 0 0 #/dev/sda6 /mnt/disk1 xfs defaults,noatime 0 0 #/dev/sdb6 /mnt/disk2 xfs defaults,noatime 0 0 tswxl:~#念のため、再起動して確認
tswxl:~# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/md1 4921404 807640 3863768 18% / tmpfs 257388 0 257388 0% /lib/init/rw tmpfs 257388 0 257388 0% /dev/shm /dev/root.old 31729 23459 8270 74% /initrd /dev/md0 991928 176928 815000 18% /boot /dev/md2 237082648 160 237082488 1% /mnt tswxl:~#
|
← データ領域の RAID1 化 |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ ftp コマンドのインストール |