Skip to content

Instantly share code, notes, and snippets.

@arcolife
Created July 25, 2017 13:07
Show Gist options
  • Select an option

  • Save arcolife/db87e200a20f9b5aa71edf64d4f1a06b to your computer and use it in GitHub Desktop.

Select an option

Save arcolife/db87e200a20f9b5aa71edf64d4f1a06b to your computer and use it in GitHub Desktop.
chroot lvm
links:
• https://adsm.org/lists/html/Amanda-Users/2006-07/msg00512.html
• http://thegeekdiary.com/centos-rhel-converting-an-existing-root-filesystem-to-lvm-partition/
• http://www.linuxweblog.com/blogs/sandip/20071007/convert-root-filesystem-lvm
• http://www.tldp.org/HOWTO/LVM-HOWTO/upgraderoottolvm.html
• http://www.ivarch.com/blogs/oss/2007/01/resize-a-live-root-fs-a-howto.shtml
• https://access.redhat.com/solutions/880203#comments
• https://access.redhat.com/discussions/2158911
• https://www.linux-toys.com/?p=14
• https://superuser.com/questions/799354/rsync-and-symbolic-links
• https://unix.stackexchange.com/questions/126217/when-would-you-use-pivot-root-over-switch-root
not:
• find / -xdev | cpio -pvmd /mnt
• tar -cvpf - --one-file-system --acls --xattrs --selinux / | tar -C /mnt/NEW_ROOT_PARTITION -xf
might:
• dd if=/dev/vda1 of=/dev/root_vg/new_root bs=512 conv=noerror,sync
did:
• https://serverfault.com/questions/457831/how-to-change-a-physical-partition-system-to-lvm
• rsync -ravzxq / /mnt/new_root/
LVM/resize:
• https://www.rootusers.com/how-to-increase-the-size-of-a-linux-lvm-by-adding-a-new-disk/
• https://bobcares.com/blog/extending-disk-space-with-lvm/
• https://www.tecmint.com/extend-and-reduce-lvms-in-linux/
• http://www.thegeekstuff.com/2010/08/how-to-create-lvm/
• https://access.redhat.com/discussions/699273
after hot resize of disk in RHVM, run:
• echo "- - -" > /sys/class/scsi_host/host0/scan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment