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_hanalog /dev/sdf

vgcreate vg_backup /dev/sde

vgcreate vg_hanadata /dev/sdc

vgcreate vg_hanashared /dev/sdd

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

lvcreate -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

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
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