Converting to LVM from standard block devices

Ok, This is going to be a challenge, but I think im up to it. I’m going to convert from using standard linux partitions /dev/sda1 /dev/sda2 etc to an LVM setup, without the need to reinstall. The trouble is I have no free space to put a some physical volume space, so step one is to shrink my 200G /home filesystem to 100G making space for me to copy my root filesystem. So now I have to login as root to be able to unmount /home, and make sure nothing is accessing it. I’m also using dmraid which could complicate the issue.

Because I always use reiserfs I can shrink a partition, it takes time but it does work(crosses fingers).

resize_reiserfs -s -100G /dev/mapper/isw_cggibjcgah_Raid_part6
resize_reiserfs 3.6.19 (2003 www.namesys.com)

You are running BETA version of reiserfs shrinker.
This version is only for testing or VERY CAREFUL use.
Backup of you data is recommended.

Do you want to continue? [y/N]:y
Processing the tree: 0%….20%…. left 14597898, 8996 /sec

This is gonna take a while, will update on my progress tomorrow.

Leave a Reply


Copyright © 2012 All Rights Reserved.
No computers were harmed in the 0.151 seconds it took to produce this page.

dmarkey.com