breezy LVM and samba questions

Sarangan Thuraisingham sarangan.thuraisingham at gmail.com
Sat Nov 12 21:58:31 UTC 2005


'Forum Post wrote:
> Eric S. Johansson Wrote: 
> 
>>LVM:
> 
> 
> 
>>trying to set up multiple drives and logical volumes at installation 
> 
> 
>>doesn't work well.  so I just set up the boot drive, did the 
> 
> 
>>installation and start exploring alternatives.  Long story short EVMS 
> 
> 
>>failed miserably, raid was heavily confused, and LVM wasn't talking to
>>
> 
> 
>>anybody.  I zeroed out the first five or 10 MB on each drive in the
>>raid 
> 
> 
>>set and raid set up correctly then LVM seemed to go okay after a couple
>>
> 
> 
>>of tries but I've been getting the "Incorrect metadata area header 
> 
> 
>>checksum"  message.  Documentation says this is bad but I can't figure
>>
> 
> 
>>out how to get rid of it.
> 
> 
> 
>>suggestions would be welcome.
> 
> 
> 
> 
> 
> Did you, by chance, ever figure this out?  I've been fighting the same
> problem to no avail.  It's a piece of cake to find other references to
> this problem online, and even responses saying you should fix that, but
> I haven't figured out how to fix it yet either.  I made the mistake of
> ignoring it in an install I'd been running on, and LVM (with everything
> but /boot on it) just fell to pieces when I started trying to actually
> use it (by simply adding some disks).  Several consecutive test
> installs later, and I still can't figure out how to install *to* LVM
> without getting those resulting errors.  I've yet to do an install
> without LVM and set it up later, because I was hoping to be able to
> take advantage of LVM's features for the OS as well (/, swap, /tmp,
> /var, /usr & /home), but that's my next step.
> 
> 
> 
> I just finished letting the installer (5.10) use all of its defaults
> for using all of the first disk for LVM (so, 3GB swap, and everything
> else for /, formatted as ext3 (though I'd been trying reiserfs and
> xfs)).  I was surprised it didn't create a /boot, and now that it's
> trying to reboot, it can't, I'm guessing because the master boot record
> doesn't know know how to read the LVM by itself.  So I'm wondering if
> that's a bug in the installer, as I've never encountered that when I
> include a /boot, but have just now run into it twice consecutively.
> 
> 
> Lastly (and I apologize for the length of this comment, but this part's
> very quick, I promise =), do you remember what syntax you use dwith dd
> to zero the beginning of the disk?
> 
> 
> 
> Thanks a ton for any pointers!
> 
> 

Sorry about the length of this e-mail, just trying to be clear:

I installed Hoary with LVM and now upgraded Breezy. I don't anything 
about the error that you mentioned about bad checksums. But this is how 
I split my drive (df output):
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/linux_part-root
                        5160576   4345144    553288  89% /

tmpfs                   258168         0    258168   0% /dev/shm

tmpfs                   258168     12588    245580   5% 
/lib/modules/2.6.12-9-386/volatile

/dev/hdc5                60185     18665     38309  33% /boot

/dev/mapper/linux_part-home
                       10333060   6381356   3426804  66% /home

/dev/hdc1             20972824  20311820    661004  97% /mnt/NTFS

/dev/hdc2             21291760  19936992   1354768  94% /mnt/FAT

Its better to do manual partioning as you have more control. I have five 
partitions. The first two is for windows partitions(I cant give up M$ 
completely, becos of my projects). Third is an extended partition. 
Actually here is the fdisk printout of the partition table:
    Device Boot      Start         End      Blocks   Id  System
/dev/hdc1   *           1        2611    20972826    7  HPFS/NTFS
/dev/hdc2            2612        5263    21302190    c  W95 FAT32 (LBA)
/dev/hdc3            5264        7296    16330072+   f  W95 Ext'd (LBA)
/dev/hdc5            5264        5271       64228+  83  Linux
/dev/hdc6            5272        7296    16265781   8e  Linux LVM

hdc5 - used ext3 and is mounted as /boot, as you mentioned bootloader 
doesn't know how to read LVMs. In fact, if you load windows you can see 
the LVM partitions as blank discs. So I would recommend anyone using LVM 
and windows dual boot, to turn off mounting the LVM partition in windows 
through Disc Volume Manager(hmm not really sure if that's the correct 
name, as I don't use windows often :P).

hdc6 - I allocated it for LVM in installation's disk partitioner. Then 
you can go to configure LVM and allocate the space as necessary. This is 
how I ve got mine setup: $ lvdisplay linux_part

   --- Logical volume ---
   LV Name                /dev/linux_part/swap
   VG Name                linux_part
[snip]
   LV Size                512.00 MB
[snip]

   --- Logical volume ---
   LV Name                /dev/linux_part/root
   VG Name                linux_part
[snip]
   LV Size                5.00 GB
[snip]

   --- Logical volume ---
   LV Name                /dev/linux_part/home
   VG Name                linux_part
[snip]
   LV Size                10.01 GB
[snip]

Hope that helps.

-- 
Regards,
------------------------------------
Sarangan Thuraisingham
ECS, University of Southampton, UK

    Tux is the Best
   Next is the Rest
-----------------------------------




More information about the ubuntu-users mailing list