Skip to content

Instantly share code, notes, and snippets.

@andy722
Created August 5, 2021 09:52
Show Gist options
  • Save andy722/1ba2f89dc0342e6ecf3c6d2f3346bb1d to your computer and use it in GitHub Desktop.
Save andy722/1ba2f89dc0342e6ecf3c6d2f3346bb1d to your computer and use it in GitHub Desktop.
pvcreate /dev/sdc
vgcreate vgstore /dev/sdc
lvcreate -l 100%VG -n biggfsbrick vgstore
mkfs.xfs /dev/vgstore/biggfsbrick
echo '/dev/vgstore/biggfsbrick /export/biggfsbrick/ xfs defaults 1 2' >>/etc/fstab
mkdir /export/biggfsbrick
mount /export/biggfsbrick
gluster volume create big-repl-store replica 3 transport tcp app-01:/export/biggfsbrick/repl-store app-02:/export/biggfsbrick/repl-store app-03:/export/biggfsbrick/repl-store
gluster volume start big-repl-store
mkdir /data/big-repl-store
echo "app-01:/big-repl-store /data/big-repl-store glusterfs defaults,_netdev 0 0" >>/etc/fstab
mount /data/big-repl-store
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment