Skip to content

Instantly share code, notes, and snippets.

@firstval
Last active September 15, 2017 05:28
Show Gist options
  • Select an option

  • Save firstval/7e1e981ccfb3127d66e2 to your computer and use it in GitHub Desktop.

Select an option

Save firstval/7e1e981ccfb3127d66e2 to your computer and use it in GitHub Desktop.
pvcreate /dev/vdb1
vgcreate vgdata /dev/vdb1
lvcreate -l +100%FREE -n mylv /dev/vgdata
mkfs -t ext4 /dev/vgdata/mylv
Edit /etc/fstab
/dev/vgdata/mylv /opt ext4 defaults,nofail 0 2
--------------------------------------
vim /boot/grub2/grub.cfg --> CENTOS
------------------------------p
http://superuser.com/questions/332252/creating-and-formating-a-partition-using-a-bash-script
http://software-engineer.gatsbylee.com/how-to-format-and-partition-disk-on-centos-7/
https://superuser.com/questions/748418/merge-two-partition-with-different-disk-in-centos
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Logical_Volume_Manager_Administration/LVM_examples.html
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-using-volumes.html
https://cloud.google.com/compute/docs/disks/add-persistent-disk
http://www.system-rescue-cd.org/lvm-guide-en/Moving-the-linux-rootfs-to-an-LVM-volume/
https://liquidat.wordpress.com/2007/10/15/short-tip-get-uuid-of-hard-disks/
https://superuser.com/questions/1093509/kali-linux-2-0-failed-to-connect-to-lvmetad-falling-back-to-device-scanning
http://thegeekdiary.com/centos-rhel-converting-an-existing-root-filesystem-to-lvm-partition/
https://www.tecmint.com/take-snapshot-of-logical-volume-and-restore-in-lvm/
http://www.linuxweblog.com/blogs/sandip/20071007/convert-root-filesystem-lvm
https://unix.stackexchange.com/questions/252936/grub2-boot-to-a-second-another-hard-disk
https://superuser.com/questions/307541/copy-entire-file-system-hierarchy-from-one-drive-to-another
http://www.tldp.org/HOWTO/LVM-HOWTO/upgraderoottolvm.html
https://serverfault.com/questions/457831/how-to-change-a-physical-partition-system-to-lvm
https://wiki.centos.org/HowTos/Grub2
https://unix.stackexchange.com/questions/120221/gpt-or-mbr-how-do-i-know
https://www.cyberciti.biz/tips/fdisk-unable-to-create-partition-greater-2tb.html
https://askubuntu.com/questions/421331/how-to-rename-dev-sdaxpartitions-in-linux
https://unix.stackexchange.com/questions/43605/how-do-i-copy-a-folder-keeping-owners-and-permissions-intact
https://serverfault.com/questions/4098/is-it-possible-to-convert-a-linux-box-to-lvm-after-the-fact
http://www.thegeekstuff.com/2011/04/identify-file-system-type
https://unix.stackexchange.com/questions/198590/what-is-a-bind-mount
https://superuser.com/questions/182161/grub-how-find-partition-number-hd0-x
https://askubuntu.com/questions/84501/how-can-i-change-convert-a-ubuntu-mbr-drive-to-a-gpt-and-make-ubuntu-boot-from
https://unix.stackexchange.com/questions/60723/how-do-i-know-if-a-partition-is-ext2-ext3-or-ext4
https://ubuntuforums.org/showthread.php?t=2241789
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment