Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #USE IT IN COMMAND LINE (without #):
- #for host with smal letters
- #curl http://pastebin.com/raw/Gq4waMBc > xenuselocalsr.sh
- #tr -d "\015" < xenuselocalsr.sh > xenuselocalsrnew.sh
- #sh xenuselocalsrnew.sh
- #uuid pbd http://blog.gluster.org/2012/
- sed -i -e "s/metadata_read_only = 1/metadata_read_only = 0/" /etc/lvm/lvm.conf
- hname=`hostname`
- #hname=`echo $hname | tr [:lower:] [:upper:]`
- vgname=`vgdisplay | grep "VG Name" | cut -f19 -d" "`
- lvcreate -L 8G -n xen $vgname
- mkfs.ext4 -m 0 -j /dev/$vgname/xen
- mkdir -p /export/$hname-vol0
- #echo "/dev/$vgname/xen /export/$hname-vol0 ext4 rw,noatime,nodiratime,journal_checksum,data=journal,errors=panic,nodelalloc 1 2" >> /etc/fstab
- echo "/dev/$vgname/xen /export/$hname-vol0 ext4 rw,noatime,nodiratime,user_xattr,barrier=0,data=ordered 1 2" >> /etc/fstab
- mount -a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement