LS-VL HDDについて、ここに記述してください。

背景

1.初めの一歩

LS-VL:~# parted -s /dev/sda print
Model:  WD15EARX-00PASB0 (scsi)
Disk /dev/sda: 1500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name     Flags
 1      1049kB  1026MB  1024MB  ext3         primary
 2      1026MB  6146MB  5120MB  ext3         primary
 3      6146MB  6147MB  1049kB               primary
 4      6147MB  6148MB  1049kB               primary
 5      6148MB  7172MB  1024MB  linux-swap   primary
 6      7172MB  1492GB  1485GB  xfs          primary

LS-VL:~# parted -s /dev/sda unit s print
Model:  WD15EARX-00PASB0 (scsi)
Disk /dev/sda: 2930277168s
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start      End          Size         File system  Name     Flags
 1      2048s      2002943s     2000896s     ext3         primary
 2      2002944s   12003327s    10000384s    ext3         primary
 3      12003328s  12005375s    2048s                     primary
 4      12005376s  12007423s    2048s                     primary
 5      12007424s  14008319s    2000896s     linux-swap   primary
 6      14008320s  2914070819s  2900062500s  xfs          primary

LS-VL:~# blkid
/dev/sda1: UUID="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" TYPE="ext3"
/dev/sda2: UUID="yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy" TYPE="ext3"
/dev/sda5: TYPE="swap"
/dev/sda6: UUID="zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzz" TYPE="xfs"

LS-VL:~# tune2fs -l /dev/sda1
tune2fs 1.40.5 (27-Jan-2008)
Filesystem volume name:   <none>
Last mounted on:          <not available>
Filesystem UUID:          xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery sparse_super large_file
Filesystem flags:         unsigned_directory_hash
Default mount options:    (none)
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              62720
Block count:              250112
Reserved block count:     0
Free blocks:              239539
Free inodes:              62696
First block:              0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      61
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         7840
Inode blocks per group:   245
Filesystem created:       Wed Nov  7 15:53:24 2012
Last mount time:          Sun Feb  2 19:18:15 2014
Last write time:          Sun Feb  2 19:18:15 2014
Mount count:              2
Maximum mount count:      25
Last checked:             Sun Feb  2 19:18:08 2014
Check interval:           15552000 (6 months)
Next check after:         Fri Aug  1 19:18:08 2014
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:               128
Journal inode:            8
Default directory hash:   tea
Directory Hash Seed:      6cedaa8b-3b29-4c04-8e7e-8e826f94e9dc
Journal backup:           inode blocks

LS-VL:~# tune2fs -l /dev/sda2
tune2fs 1.40.5 (27-Jan-2008)
Filesystem volume name:   <none>
Last mounted on:          <not available>
Filesystem UUID:          yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery sparse_super large_file
Filesystem flags:         unsigned_directory_hash
Default mount options:    (none)
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              312624
Block count:              1250048
Reserved block count:     62502
Free blocks:              1020198
Free inodes:              279094
First block:              0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      305
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8016
Inode blocks per group:   501
Filesystem created:       Sun Nov 18 07:36:43 2012
Last mount time:          Sun Feb  2 19:18:09 2014
Last write time:          Sun Feb  2 19:18:09 2014
Mount count:              24
Maximum mount count:      20
Last checked:             Sun Nov 18 07:36:43 2012
Check interval:           15552000 (6 months)
Next check after:         Fri May 17 07:36:43 2013
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:               256
Journal inode:            8
First orphan inode:       8550
Default directory hash:   tea
Directory Hash Seed:      51819e6d-45b0-4206-a0a9-5bc4c5a7bdd0
Journal backup:           inode blocks

LS-VL:~# xfs_info /dev/sda6
meta-data=/dev/disk1_6           isize=256    agcount=32, agsize=11328369 blks
         =                       sectsz=512   attr=0
data     =                       bsize=4096   blocks=362507808, imaxpct=25
         =                       sunit=0      swidth=0 blks, unwritten=1
naming   =version 2              bsize=4096
log      =internal               bsize=4096   blocks=32768, version=1
         =                       sectsz=512   sunit=0 blks, lazy-count=0
realtime =none                   extsz=4096   blocks=0, rtextents=0

2.3TB HDDのセットアップ

debian:~# parted -s /dev/sdb mklabel gpt
debian:~# parted -s /dev/sdb unit s mkpart primary ext3 2048 2002943
debian:~# parted -s /dev/sdb unit s mkpart primary ext3 2002944 12003327
debian:~# parted -s /dev/sdb unit s mkpart primary 12003328 12005375
debian:~# parted -s /dev/sdb unit s mkpart primary 12005376 12007423
debian:~# parted -s /dev/sdb unit s mkpart primary linux-swap 12007424 14008319
debian:~# parted -s /dev/sdb unit s mkpart primary xfs 14008320 5860532223

debian:~# mkfs.ext3 -m 0 -I 128 -L boot /dev/sdb1
debian:~# tune2fs -c -1 -i 0 -E hash_alg=tea -U xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx /dev/sdb1
debian:~# mkfs.ext3 -L root /dev/sdb2
debian:~# tune2fs -c -1 -i 0 -E hash_alg=tea -U yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy /dev/sdb2
debian:~# mkfs.xfs -d agcount=32 -s size=4096 -i maxpct=25,attr=0,projid32bit=0 -l version=1,lazy-count=0 -L share /dev/sdb6
debian:~# xfs_admin -U zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzz /dev/sdb6
debian:~# mkswap -L swap -U wwwwwwww-wwww-wwww-wwww-wwwwwwwwwwww /dev/sdb5

3.ファイルのコピー

debian:~# cd sdc1
debian:~# ls -A | grep -v lost+found | xargs -I '{}' cp -a '{}' ../sdb1
debian:~# cd sdc2
debian:~# ls -A | grep -v lost+found | xargs -I '{}' cp -a '{}' ../sdb2
debian:~# cd sdc6
debian:~# ls -A | grep -v lost+found | xargs -I '{}' cp -a '{}' ../sdb6

4.2TB HDDのセットアップ(LS-GL)

debian:~# parted -s /dev/sdb mklabel msdos
debian:~# parted -s /dev/sdb unit s mkpart primary ext3 2048 2002943
debian:~# parted -s /dev/sdb unit s mkpart primary xfs 2002944 12003327
debian:~# parted -s /dev/sdb unit s mkpart primary xfs 12003328 22003711
debian:~# parted -s /dev/sdb unit s mkpart extended 22003712 3907028991
debian:~# parted -s /dev/sdb unit s mkpart logical linux-swap 22005760 24006655
debian:~# parted -s /dev/sdb unit s mkpart logical xfs 24008704 3907028991

debian:~# mkfs.ext3 -m 0 -I 128 -L boot /dev/sdb1
debian:~# tune2fs -c -1 -i 0 -E hash_alg=tea -U xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx /dev/sdb1
debian:~# mkfs.xfs -d agcount=8 -s size=4096 -i maxpct=25,attr=0,projid32bit=0 -l version=1,lazy-count=0 -L root -f /dev/sdb2
debian:~# xfs_admin -U yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy /dev/sdb2
debian:~# mkfs.xfs -d agcount=32 -s size=4096 -i maxpct=25,attr=0,projid32bit=0 -l version=1,lazy-count=0 -L share -f /dev/sdb6
debian:~# xfs_admin -U zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzz /dev/sdb6
debian:~# mkswap -L swap -U wwwwwwww-wwww-wwww-wwww-wwwwwwwwwwww /dev/sdb5

5.さぁ、Let's enjoy

LS-VL HDD (最終更新日時 2014-09-04 00:41:18 更新者 mmizuki)