31 Ekim 2015 Cumartesi

linux sistemlerinde vbox kullanımında dosya seçimi

lvm + xfs güzel bir ikili oluşturuyor.
Virtualbox için oluştuduğum dosya sistemi iki ayrı disk üzerine 4k bloklardan oluşmaktadır.  LVM strip size ve xfs bloklarının 4k olması performansa ciddi bir faydası oluyor. i/o performansı meraklıları test edebilir. :)




[root@zurbahan ~]# lvcreate  -L2126997504B -i2 -I4 -nxfs-log depo
File descriptor 7 (pipe:[422885]) leaked on lvcreate invocation. Parent PID 18130: bash
  Rounding up size to full physical extent 1,98 GiB
  Logical volume "xfs-log" created.
[root@zurbahan ~]# lvcreate  -L400G -i2 -I4k -nvbox depo
File descriptor 7 (pipe:[422885]) leaked on lvcreate invocation. Parent PID 18130: bash
  Logical volume "vbox" created.
[root@zurbahan ~]# mkfs  -t xfs -L vboxs -l logdev=/dev/mapper/depo-xfs--log  /dev/mapper/depo-vbox
meta-data=/dev/mapper/depo-vbox  isize=256    agcount=16, agsize=6553599 blks
         =                       sectsz=512   attr=2, projid32bit=1
         =                       crc=0        finobt=0
data     =                       bsize=4096   blocks=104857584, imaxpct=25
         =                       sunit=1      swidth=2 blks
naming   =version 2              bsize=4096   ascii-ci=0 ftype=0
log      =/dev/mapper/depo-xfs--log bsize=4096   blocks=520192, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
[root@zurbahan ~]#

Dosya sistemini, sisteminize bağlarken log diskinide belirtmemiz gerekiyor.

[root@zurbahan ~]# grep vbox /etc/fstab
/dev/depo/vbox /mnt/vboxs xfs noatime,nodiratime,logdev=/dev/mapper/depo-xfs--log 0 0
[root@zurbahan ~]#


Hiç yorum yok:

Yorum Gönder

Git kullanımı notları

 Temel ayarlar git kullanıcısı için: $ git config --global user.name "Remzi AKYÜZ" $ git config --global user.email "remzi@ak...