Created
July 20, 2015 18:28
-
-
Save skarllot/1f4e16f171b8a8a35ecf to your computer and use it in GitHub Desktop.
Move data around
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
kernel /vmlinuz root=/dev/sdX ro rootfsflags=subvol=<subvolume name> |
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
pvcreate /dev/new | |
vgextend vgX /dev/new | |
pvmove /dev/old | |
vgreduce vgX /dev/old |
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
# Local copy | |
cd /origin | |
find ./ -xdev -print0 | cpio -pa0V /mnt/dest | |
# Remote copy | |
cd /origin | |
find ./ -xdev -print0 | cpio -oa0V | ssh user@host 'cpio -imVd' | |
# Update GRUB | |
chroot /mnt/dest /usr/sbin/grub-install --recheck /dev/new | |
# or | |
/usr/sbin/grub-install --recheck --root-directory /mnt/dest /dev/new |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment