Created
July 30, 2014 02:36
-
-
Save itomg/c1e9cbc0935c8020d258 to your computer and use it in GitHub Desktop.
LVM2 PV VG LV
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ls /dev/xv* | |
$ df -h | |
$ service solr stop | |
$ mv /var/solr /var/solr-bak | |
$ ls -l /var/solr* | |
$ pvcreate /dev/xvdc | |
$ pvdisplay | |
$ vgcreate vg0 /dev/xvdc | |
$ vgdisplay | |
$ man lvcreate | |
$ lvcreate -l 100%FREE vg0 | |
$ lvdisplay | |
$ mkfs.ext4 /dev/vg0/lvol0 | |
$ echo "/dev/vg0/lvol0 /var/solr auto defaults 0 0" >> /etc/fstab | |
$ cat /etc/fstab | |
$ mkdir -p /var/solr | |
$ ls -l /var/solr | |
$ mount /dev/vg0/lvol0 /var/solr | |
$ df -h | |
$ mv /var/solr-bak/* /var/solr/ | |
$ rm -rf /var/solr-bak/ | |
$ ls -la /var/solr | |
$ chown solr:solr /var/solr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment