Software Knowledge

  1. Home
  2. Docs
  3. Software Knowledge
  4. LINUX
  5. Linux: LVM and xfs
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

Linux: LVM and xfs

vgcreate vg_hanadata /dev/sdj /dev/sdk  /dev/sdl  /dev/sdm

vgcreate vg_hanalog /dev/sde  /dev/sdf  /dev/sdg  /dev/sdh

vgcreate vg_hanashared /dev/sdm

lvcreate -i 4 -I 64 -l 100%FREE -r none -n lv_hanadata vg_hanadata

lvcreate -i 4 -I 64 -l 100%FREE -r none -n lv_hanalog vg_hanalog

lvcreate -l 100%FREE -r none -n lv_backup vg_backup

lvcreate -l 100%FREE -r none -n lv_hanashared vg_hanashared

lvcreate -l 100%FREE -r none -n lv_recover vg_recover

mkfs.xfs /dev/mapper/vg_hanadata-lv_hanadata

mkfs.xfs /dev/mapper/vg_hanalog-lv_hanalog

mkfs.xfs /dev/mapper/vg_backup-lv_backup

mkfs.xfs /dev/mapper/vg_hanashared-lv_hanashared

mkfs.xfs /dev/mapper/vg_recover-lv_recover

vi /etc/fstab

/dev/vg_hanashared/lv_hanashared   /hana/shared    xfs    defaults,noatime,nobarrier,inode64,largeio,swalloc 1 2

/dev/vg_hanadata/lv_hanadata       /hana/data      xfs    defaults,noatime,nobarrier,inode64,largeio,swalloc 1 2

/dev/vg_hanalog/lv_hanalog         /hana/log       xfs    defaults,noatime,nobarrier,inode64,largeio,swalloc 1 2

/dev/vg_backup/lv_backup           /backup         xfs    defaults 0 0

/dev/vg_recover/lv_recover           /recover         xfs    defaults 0 0