Resize Partition??

Hugh Crissman hcrissman at secure-mind.net
Wed Jul 20 12:40:41 UTC 2005


* Dick Davies <rasputnik at hellooperator.net> [2005-07-19 01:53:56]:

> 2a. select some disk partitions (logical or physical) and format as LVM physical volumes,
> to build the volume group.
> 
> > 	3. Create and Initialize Volume Group
> > 	4. Create Logical Volumes(LV)
> > 	5. Apply filesystem to LVs (ReiserFS) seems to be a strong
> > 	contender.
> 
> Yeah, reiser looks good. only downer is the need to umount it if you want to shrink a
> partition, but that's not a showstopper in my case.
> 
> > 	6. Mount filesystem and restore backed up files.
> > 	7. Edit fstab to mount appropriately at boot.
> 
> Mine looks like:
> 
> /dev/mapper/toadvg-rootlv /               reiserfs defaults        0       1
> /dev/mapper/toadvg-homelv /home           reiserfs defaults        0       2
> /dev/mapper/toadvg-tmplv /tmp            reiserfs defaults        0       2
> /dev/mapper/toadvg-usrlv /usr            reiserfs defaults        0       2
> /dev/mapper/toadvg-varlv /var            reiserfs defaults        0       2
> 
> (I left /boot and swap on physical devices, since they don't need resizing).
> 
> > 	8. Edit initrd to include LVM modules (not so sure on this one)
> 
> I'm guessing man mkinitrd, or build a kernel with LVM built-in.
> Though the default ubuntu install seems to find mine easily enough.
>  
> > How does that sound. Am I leaving anything out?
> 
> Nothing I can see. Good luck!

OK, after a couple of days I have to admit that LVM conversion is not
going really well. I am not giving up but I am close. At this point I am
reconsidering adding / to LVM. It is turning into quite a headache.
Maybe /usr,/home,/var will be good enough.The major snag I am running into
is getting the initrd script to load the lvm modules so that I can
mount root and load the OS. Any ideas? After I change grub to look to
the initrd that I created w/ "lvmcreate_initrd", grub loads and then
nothing. No errors no nothing. It clearly is not loading the LVM
modules. I am using 2.6.10-5-k7 kernel. I am almost certain LVM is 
compiled in, although I must admit, I have not explicitly checked. Any
help is greatly appreciated.

Thanks,

H. Crissman




More information about the ubuntu-users mailing list