Linux on LVM

 
Thread Tools Search this Thread
Operating Systems Linux Slackware Linux on LVM
# 1  
Old 02-21-2012
Linux on LVM

Dear all,

I found, in Slackware, without using physical/raw partition Linux can be booted & OS will be in LVM but in general people use /boot from physical/raw partition to boot the RedHat linux System & root and other file systems would be in LVM. My doubt is how a system will be booted without using any physical partition hope this is done as lilo does not read file system

It would be appreciated for better explanation of how it is happening.

For Slackware: http://slackware.osuosl.org/slackware/README_LVM.TXT

Thank you.
This User Gave Thanks to Tlogine For This Post:
# 2  
Old 02-28-2012
Re: Linux on LVM

Hi Tlogine,

I am working on getting LVM on my notebook. The easiest way may be to use the whole disk except for a small /boot partition which needs to be outside the LVM but with an initrd compiled with LVM support :

Code:
 # mkinitrd -c -k 2.6.37.6-smp -m ext3 -f ext3 -r /dev/myvg/root -L

What LVM does is give more flexible partitions. Just think of them as logical volumes in an extended partition (the volume group). I think that is the best way to describe them. It is also possible to add extra space to them if needed, or even add partitions to make them bigger. That is how I see it. I hope I am right. If I am not I am sure someone will correct me.

I hope this helps.

Andy.
This User Gave Thanks to dragonnefyre For This Post:
# 3  
Old 03-20-2012
Hi Andy,

What my question is how LILO boots Slackware without using any physical partition like /boot used in RHEL. Hope it writes initrd also in blocks/sectors of disk where no user will access usually I think it is a place like MBR. Also would like to know whether the same can be done if I use GRUB.

Thanks.
# 4  
Old 03-30-2012
Re: Linux on LVM

Hi Tlogine,

The bootloader is written to the mbr unless you specify somewhere else, eg superblock of the root partition. The initrd will be written to /boot which may be in the root partition or on a partition of it's own.

I am not too sure about grub, but it may work in a similar way. I have used grub with Gentoo, but that was a few years ago. Most of my experience is with lilo. The grub man page should be helpful. I use a separate/boot partition. I reckon it is easier this way and makes life easier. The source code for grub can be found in /extra/source/grub on the DVD. That is version 0.97. Version 1.99 of grub can be found on Slackbuilds. I am sticking with lilo as it just works. Thanks to Patrick and his team for all their hard work.

I hope this helps you and is what you are looking for.

Andy
# 5  
Old 05-16-2012
kudos to you ... .

Quote:
Originally Posted by Tlogine
Dear all,

For Slackware: http://slackware.osuosl.org/slackware/README_LVM.TXT

Thank you.
This is a solid help. kudos to you.Smilie
# 6  
Old 06-11-2012
Dear all,

In Slackware machine, you are seeing that you have only one file system and it is under LVM. Booted through lilo

You have one HDD and only one partition and type is LVM. Bootloader is written in MBR.

/dev/rootvg/rootlv /

Please let me know how it is working.

Thanks
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

Linux partition with LVM

Hi, I need a suggesstion i have 2 disk if i installed OS / root partition by making Lvm in one disk and data in other disk also with the lvm, means 2 different lvms. Is making LVM partition for OS disk will the performacne will be good? Can i make 2 different lvm one is for OS and other for... (1 Reply)
Discussion started by: Rahulne25
1 Replies

2. Ubuntu

Linux LVM.. Grub not loading from replaced disk

Hi, a little while ago, one of the GPT Partitioned hard disk had gone faulty in a Mirror RAID and is now successfully replaced. here is how I did that. 1) created identical partition table on the new disk. 2) attached the mirrors using md commands. The whole procedure is given... (5 Replies)
Discussion started by: busyboy
5 Replies

3. UNIX for Advanced & Expert Users

How to shrink root file system (LVM) in Linux Fedora 9?

My root file system is of type LVM. i wanna shrink it but unable to do so. When i give the below command: resize2fs /dev/mapper/VolGroup00-VolLog00 10000M it messages that online shrink can't can't be done as the logical volume is mounted on /. i switched to single user mode by giving command:... (2 Replies)
Discussion started by: ravisingh
2 Replies

4. UNIX for Dummies Questions & Answers

How to convert non LVM root partition to LVM?

Hi Guys, I m using redhat 6, I have installed root partition as non-LVM . Is there any way i can convert it to LVM? (1 Reply)
Discussion started by: pinga123
1 Replies

5. UNIX for Dummies Questions & Answers

Linux LVM Question

I've three partitions on /dev/sda: sda1, sda2 sda3. There is FREE space between sda2 and sda3 and sda3 ends on the last sector. sda2 and sda3 have the same number of sectors allocated and so are the exact same size. /dev/sda2 is already part of the VG VolGroup. However, what puzzles me is that... (0 Replies)
Discussion started by: Devyn
0 Replies

6. Linux

LVM for linux OS?

Hi, What do you means to create so OS Linux directories under LVM? So, I've installed my machine : df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda3 97943628 524316 92443984 1% / udev 4023852 168 4023684 1% /dev... (1 Reply)
Discussion started by: hiddenshadow
1 Replies

7. UNIX for Advanced & Expert Users

Corrupted journal in a Linux LVM How to recover

Not real Linux expert but here is the problem. Shutdown this machine and then it would not reboot. From everything I can tell it looks like the journal file in the logical volume is corrupted. I have tried everything I can think of to get the volume mounted. Anybody have any ideas on how... (19 Replies)
Discussion started by: ccj4467
19 Replies

8. Filesystems, Disks and Memory

Multiple Paths to SAN with LVM in Linux?

I'm setting up a CentOS 5 server that will be connected to an HP EVA4000. My previous experience is with an HP VA7400 and HP-UX. In HP-UX I can add "alternate paths" to a volume group in order to have redundant paths to the SAN via dual fiber channel HBAs just by either adding them with... (3 Replies)
Discussion started by: deckard
3 Replies

9. Linux

Linux LVM 1.X and muliple path

Hi all, yes this is a linux question :) but also a LVM question. Some time ago, I saw an posting, LVM Version 1.X is abe to handle multiple physical pathes to a disk with using md devices. Is this right ? Now I am planing to create a san and want use linux fileservers with LVM v1.X and most... (1 Reply)
Discussion started by: malcom
1 Replies
Login or Register to Ask a Question