[linux-lvm] LVM

svetljo galia at st-peter.stw.uni-erlangen.de
Wed Sep 12 09:59:29 UTC 2001


Hi
you need a normal partition vor /boot not on LV and it would be good to 
have also a normal partition as swap,
but in case you don't use swap you don't need to,
the thing is that the swap is much faster when it is on partition not file
you can try to do it without formating the second disk
you can shrink ReiserFS, then with diskdrake shrink the partition
 and make a new one for boot and for the VG , make an LV on the VG , 
create filesystems on the LV and /boot, mount the LV /mnt/new-root , 
mkdir /mnt/new-root/boot and mount here the /boot partition
trasnfer your installation to /mnt/new-root:
cd /
 find . -xdev | cpio -pm /mnt/new-root

edit /mnt/new-root/etc/fstab to match the LV as / and ad an entry for /boot

reboot
and pass to lilo root=/dev/[your VG]/[your / LV]
it should be working

edit lilo.conf and reinstall lilo or grub ( i'm not shure that lilo can 
boot from the end of 32Gb drive)

reboot once more if everything is OK
you can make a PV from your old / and ad it to the VG
that should be it

about the FS's

smth important ( may be) as far i know only Reiserfs could be shrinked ,
you can only grow XFS and JFS you can not make them smaller
 
i really like XFS,and not that much the others
i had some crashes and with reiserfs i have some file entries which are 
reported to exist ,but they can not be stated when i try to delete them 
or to see them
i have not much expiriance with JFS , but i'm hearing that it was not 
that stable as of 1.0.3
and with XFS i found all lost files in " lost and find " and it was 
pretty easy to bring them back
i mention only the journal ones becouse you are speaking about 32Gb




 


IT3 Stuart B. Tener, USNR-R wrote:

>LVM List members:
>
>	I have been doing some playing around and am not getting very far! Perhaps you can answer some questions and guide me.
>
>I have 2 32GB HDs, which I can have both in use on my laptop simultaneously. The 2nd HD I can erase to my hearts content. It's a staging drive.
>
>	My current configuration is:
>
>	/dev/hda1	windows 2000 pro
>	/dev/hda2	/	(Linux mandrake 8.0)
>
>	I do not have a swap partition at the moment (I have 512MB of ram, and I use a swap file if I need too), and have everything installed into the root (I know the drawbacks of this, but it made for simplicity at the time). I also use ReiserFS, and want to implement LVM.
>
>	The "How To" speaks of an example inclusive of a /boot partition and a swap partition. I ignored the swap partition, but was curious about the /boot partition in the how-to.
>
>a) Do I need to have a separate /boot partition, or can I create an LVM implementation (for the moment) with everything in the root (/)?
>b) The example seems to show the /boot being outside the LVM area, is that correct or does the how-to mean to show the /boot as being within the domain of the LVM controlled area?
>c) How will using ReiserFS on my root partition and LVM over the root affect what I need to do for an initrd and kernel compilation options?
>
>Once the LVM implementation is completed with everything in the / partition, and ReiserFS on the root, and it boots up, then I plan to break apart the / into separate filesystems within the LVM environment. At that point, recommendations of what filesystems to create will be helpful.
>
>
>Very Respectfully, 
>
>Stuart Blake Tener, IT3, USNR-R, N3GWG 
>Beverly Hills, California
>VTU 1904G (Volunteer Training Unit) 
>stuart at bh90210.net 
>west coast: (310)-358-0202 P.O. Box 16043, Beverly Hills, CA 90209-2043 
>east coast: (215)-338-6005 P.O. Box 45859, Philadelphia, PA 19149-5859 
>
>Telecopier: (419)-715-6073 fax to email gateway via www.efax.com (it's free!) 
>
>JOIN THE US NAVY RESERVE, SERVE YOUR COUNTRY, AND BENEFIT FROM IT ALL. 
>
>Wednesday, September 12, 2001 2:01 AM
> 
>






More information about the linux-lvm mailing list