LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-02-2012, 08:48 AM   #1
deskt0plinux
Member
 
Registered: May 2008
Distribution: ubuntu debian knoppix centos puppy
Posts: 32
Blog Entries: 2

Rep: Reputation: 1
installing 2nd Centos into new, empty logical volume of existing LVM


I have a single physical disk of "500G" with a Centos 6.2 64-bit install taking up the full disk in an LVM as follows:

Code:
[centoslive@livecd ~]$ sudo pvscan
  PV /dev/sda2   VG vg_test   lvm2 [465.27 GiB / 259.42 GiB free]
  Total: 1 [465.27 GiB] / in use: 1 [465.27 GiB] / in no VG: 0 [0   ]
and
Code:
[centoslive@livecd ~]$ sudo lvscan
  ACTIVE            '/dev/vg_test/lv_root' [100.00 GiB] inherit
  ACTIVE            '/dev/vg_test/lv_swap' [5.84 GiB] inherit
  ACTIVE            '/dev/vg_test/lv_home' [100.00 GiB] inherit
Now after using this setup for 6 months, I find that Centos 6.3 32-bit is better suited for my needs - using certain specific 3rd party programs with certain older versions is imperative for work - but is unsupported for 64-bit platform.
I tried out compat-libs and ia32-libs and a couple other solutions - VMware/Vbox is very slow.
And I also discovered 6.3 has far better network card support (at least for hardware in my workplace) compared with 6.2.

So I have about 250 G of space available into which I can make upto 3 more side-by-side Centos installs in the future, if I use say 80G for each install. I can make upto 3 80G logical volumes.

But can I use one (or each) of them to install Centos 6.3 32-bit (or later versions) ?

Will the installer allow installing to a single logical volume?
Will the installer update GRUB entries to make the 2 OSes - Centos 6.2-64 & 6.3-32 available as menu options or do I need to do it manually?

Grub version is GNU GRUB 0.97

Thanks in advance.

Regards,
deskt0plinux
 
Old 10-10-2012, 08:03 AM   #2
iamswift
LQ Newbie
 
Registered: Jul 2012
Posts: 4
Blog Entries: 3

Rep: Reputation: Disabled
Check if this link is helpful?
http://www.linuxquestions.org/questi...cal-volume-ma-
 
Old 10-12-2012, 02:18 AM   #3
deskt0plinux
Member
 
Registered: May 2008
Distribution: ubuntu debian knoppix centos puppy
Posts: 32

Original Poster
Blog Entries: 2

Rep: Reputation: 1
Firstly, thanks for your reply!

From reading that blog entry, I am surprised to find that a basic installation of Centos can be done without using the installer/liveCD ! I'll try that as soon as I get a chance to do so. This means that I dont have to wipe partitions every time in the future I want to add a new version! - if it works it will be a great help.
 
Old 10-12-2012, 02:58 AM   #4
lievendp
Member
 
Registered: Jan 2006
Location: Belgique
Distribution: Gentoo, Debian, Redhat, Centos, (x)Ubuntu
Posts: 111

Rep: Reputation: 27
I think that if you layout your disk it's very easy and even comfortable to use multiple os on the same system

in your case, I would have a boot partition (not on lvm) per OS of only about 250MB where each os could store it's kernels etc.
Then you can create another lvm root partition (/) for each OS where you install the systems.
Ideally you have one shared /home partition (lvm) which can be used by both systems to store your data on.

When installing the new OS, you can boot into livecd and use chroot or just the empty lvm-based partitions to install the new systems. But don't install grub again, you already have it from your first OS installation. You can just add entries for the newly installed os in the existing grub, allowing you to multiboot.

rgds.
 
  


Reply

Tags
centos, grub, installation, lvm2, multiboot



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LVM Mount Physical Volume/Logical Volume without a working Volume Group mpivintis Linux - Newbie 10 01-11-2014 07:02 AM
[SOLVED] delete logical volume (lvm) Art McClure Slackware 6 04-01-2012 07:04 PM
Installing Linux on an existing LVM volume arnljots Linux - Software 1 01-10-2012 01:52 AM
Shrinking a Logical Volume With LVM jimmyjiang Red Hat 1 02-28-2008 04:45 PM
adding 2nd hard drive to logical volume?? alabamaman Linux - Hardware 1 09-18-2007 03:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration