Skip to content

Instantly share code, notes, and snippets.

@Filirom1
Created June 9, 2015 10:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Filirom1/4dfd83a4ef57337e2e64 to your computer and use it in GitHub Desktop.
Save Filirom1/4dfd83a4ef57337e2e64 to your computer and use it in GitHub Desktop.
LVM
$ hpacucli
=> ctrl all show status
=> ctrl slot=0 create type=ld drives=1I:1:3,1I:1:4,2I:1:6,2I:1:7 raid=1+0


$ parted /dev/sdb
(parted) mklabel gpt
(parted) mkpart
Partition name?  []?
File system type?  [ext2]?
Start? 0%
End? 100%
(parted) set 1 lvm on
(parted) print

$ pvcreate /dev/sdb1
$ vgcreate vg01 /dev/sdb1
$ lvcreate -L 2.7T -n elasticsearch vg01

$ mkfs.ext4 /dev/vg01/elasticsearch

vim /etc/fstab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment