xfs をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
CentOS7ではそのままでxfsによるフォーマットが利用できる
[[xfs/Deduplication]]
***単体HDDのフォーマット [#n2686183]
[[AFT]]の絡みがあるが、パーティションを作成後
#code(nonumber){{
[root@s ~]# mkfs.xfs -f /dev/sdb1
meta-data=/dev/sdb1 isize=256 agcount=32,...
= sectsz=4096 attr=2, pro...
data = bsize=4096 blocks=7325...
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0
log =internal log bsize=4096 blocks=3576...
= sectsz=4096 sunit=1 blk...
realtime =none extsz=4096 blocks=0, r...
[root@s ~]#
}}
とフォーマットする。
&color(red){セクタサイズ};(&color(red){sectsz};)の値は[[A...
xfsだから&color(red){ブロックサイズ};(&color(red){bsize};...
#code(nonumber){{
[root@s ~]# mkfs.xfs -f -b size=64k /dev/sdb1
meta-data=/dev/sdb1 isize=256 agcount=32,...
= sectsz=4096 attr=2, pro...
data = bsize=65536 blocks=4578...
= sunit=0 swidth=0 blks
naming =version 2 bsize=65536 ascii-ci=0
log =internal log bsize=65536 blocks=2235...
= sectsz=4096 sunit=1 blk...
realtime =none extsz=65536 blocks=0, r...
[root@s ~]#
}}
&color(red){ブロックサイズ};(&color(red){bsize};)を64kBで...
#code(nonumber){{
[root@s ~]# LANG=C mount /dev/sdb1 /share
mount: Function not implemented
[root@s ~]#
}}
とマウントできない....
OSのPAGE_SIZEの値より大きいとmountできないみたい。
#code(nonumber){{
[root@s ~]# getconf PAGE_SIZE
4096
[root@s ~]#
}}
windowsだと「クラスター(アロケーションユニット)サイズ」...
***RAID構成でxfsフォーマット [#z2f872ea]
HDDが12本でRAID6構成、そしてstripe unit sizeが64KBなら
#code(nonumber){{
mkfs.xfs -f -d su=64k,sw=10 /dev/sdb1
}}
とする。suはstripe unit size、swはstripe width。
あとはラベルを付けて
#code(nonumber){{
xfs_admin -L "LV_180219" /dev/sdb1
}}
このラベル名で/etc/fstabを修正する
#code(nonumber){{
LABEL=LV_180219 /data xfs defaults 0 0
}}
&color(red){*};&size(10){/dev/sdb1と指定するのもいいが、...
&size(10){あとUUIDで/etc/fstabを記述できるが意味のないID...
[[xfs/hw-raid]]
終了行:
CentOS7ではそのままでxfsによるフォーマットが利用できる
[[xfs/Deduplication]]
***単体HDDのフォーマット [#n2686183]
[[AFT]]の絡みがあるが、パーティションを作成後
#code(nonumber){{
[root@s ~]# mkfs.xfs -f /dev/sdb1
meta-data=/dev/sdb1 isize=256 agcount=32,...
= sectsz=4096 attr=2, pro...
data = bsize=4096 blocks=7325...
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0
log =internal log bsize=4096 blocks=3576...
= sectsz=4096 sunit=1 blk...
realtime =none extsz=4096 blocks=0, r...
[root@s ~]#
}}
とフォーマットする。
&color(red){セクタサイズ};(&color(red){sectsz};)の値は[[A...
xfsだから&color(red){ブロックサイズ};(&color(red){bsize};...
#code(nonumber){{
[root@s ~]# mkfs.xfs -f -b size=64k /dev/sdb1
meta-data=/dev/sdb1 isize=256 agcount=32,...
= sectsz=4096 attr=2, pro...
data = bsize=65536 blocks=4578...
= sunit=0 swidth=0 blks
naming =version 2 bsize=65536 ascii-ci=0
log =internal log bsize=65536 blocks=2235...
= sectsz=4096 sunit=1 blk...
realtime =none extsz=65536 blocks=0, r...
[root@s ~]#
}}
&color(red){ブロックサイズ};(&color(red){bsize};)を64kBで...
#code(nonumber){{
[root@s ~]# LANG=C mount /dev/sdb1 /share
mount: Function not implemented
[root@s ~]#
}}
とマウントできない....
OSのPAGE_SIZEの値より大きいとmountできないみたい。
#code(nonumber){{
[root@s ~]# getconf PAGE_SIZE
4096
[root@s ~]#
}}
windowsだと「クラスター(アロケーションユニット)サイズ」...
***RAID構成でxfsフォーマット [#z2f872ea]
HDDが12本でRAID6構成、そしてstripe unit sizeが64KBなら
#code(nonumber){{
mkfs.xfs -f -d su=64k,sw=10 /dev/sdb1
}}
とする。suはstripe unit size、swはstripe width。
あとはラベルを付けて
#code(nonumber){{
xfs_admin -L "LV_180219" /dev/sdb1
}}
このラベル名で/etc/fstabを修正する
#code(nonumber){{
LABEL=LV_180219 /data xfs defaults 0 0
}}
&color(red){*};&size(10){/dev/sdb1と指定するのもいいが、...
&size(10){あとUUIDで/etc/fstabを記述できるが意味のないID...
[[xfs/hw-raid]]
ページ名:
1