On Tue, 2008-10-14 at 20:01 +0200, David Baron wrote:
> I have Debian Sid (with KDE4) in various partitions, shared with three vfats 
> for Win98, Shared data and audio files, on two 40gig disks. I have had to 
> make 
> a lot of partitions to expand and shoe-horn in as the linux needs expanded. 
> So 
> one of these 40gigers, a maxtor which has been giving problems, may be 
> replaced with an 80gig disk. So I must decide on a sane partition scheme. 
> Part 
> of it will be for the audio, but most, 60-70gig will be for Debian, neto.
> 
> 1. I want to replace the numerous partitions I have evolved into a reasonable 
> number of partitions. Recommendations?
> 
> 2. To avoid such problems in the future, is LVM the way to go? Step by step 
> on 
> how to set it up?
> 
> 
Well, where to start?  For vfat, you will not use lvm.  You will have to
use real partitions for that.

Same for winows OS partition.

As for the Linux:  When you install using the DI, when you partition,
that is the best time to use LVM.  

1.  Make a /boot partition.  Give it an ext3 fs. (grub can not boot from
lvm, though perhaps grub2 can)

2.  After that, make one big partition using all the space left over
(after windows, after vfat, after /boot)

3.  For "Use as:" highlight and enter
        1.physical volume for LVM
        2. Done setting up partition
        3. Up top, Configure the Logcial Volume Manager
        4.  Yes, write the changes to disk (make sure it is the way you
want it first)
        5.  Create volume group ( I use something like SystemVG.  You could
have rootVG, storageVG, etc etc.  I always make one VG and sub-divide it
by using local Volumes (rootLV usrLV storageLV, swapLV, etc etc))
        6.Type in your Volume Group name (systemVG)
        7.  check your devices (should only be one, assuming you have one HD)
        8.Now you need to make Logical Volumes
        9.  Select your VG (only one to choose in this example)
        10.  type in the logical volume name.  For root I use LV_root (it just
makes it easy to read, non-cryptic names instantly tell you what you are
dealing with).  For this part, partition this just like you would for
regular linux partitioning.  If you like haveing a 4G /, make it.   The
advantage here is if you make the partition to small, you can later, hot
and mounted, make it bigger.  You can not make it smaller "hot and
mounted".  To take room from a LV, you have to umount it first, then
shrink it.  So plan the sizes as needed if you want multiple partitions.
All the same rules apply (usr should have it's own, tmp should be on
it's own, /var/log should be separated, etc etc) and if just don't care
and it's your home box, one big one will work fine.

For my home box, I use LV_root and typically LV_home plus LV_swap.  You
need to put some thought into this.  I don't see an issue with your home
box having one large partition or two large partition (plus another for
swap) if you want to keep a resilient /home.

Season to your taste. When done, go "Finish".

        11.Now move down and find your LV_swap and select it (the entery just
below LV_swap, indented in)

        12.  Use as:  pick swap, done
        13, repeat for each LV_X you made, mount it as the point you named it.

Finish and write changes to disk.  I would NOT select any vfat or ntfs
partitions here.  Every time I do, the patitioner pukes (anaconda, DI,
they all do). Wait until you have a system installed then edit fstab to
add them.

man LVM

vg TAB TAB

lv TAB TAB to see commands you can do.

Google lvm tldp for the howto.

HTH
        

-- 
Damon L. Chesser <[EMAIL PROTECTED]>


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to