Dual boot Debian + CentOS 4.7 with LVM used. Need advice,not yet installed CentOS.

General support questions including new installations

Dual boot Debian + CentOS 4.7 with LVM used. Need advice,not yet installed CentOS.

Postby whitewolf_573 » 2009/04/21 13:20:55

Hi,i decided to install CentOS 4.7 in my pc ,because i want a RPM based distribution to install Maya 2009 (3d design application) and use it for 3d design.

I have used fedora a bit but , in my opinion , i think is not so stable,and good as CentOS,at least for what i want it for.

My pc has : 4 GB ram,750Gb wenster digital disk,Asus P5E3 deluxe motherboard and Nvidia Quadro FX 570

I had installed fedora , in my hardisk having debian ,and i did something bad (i used same /boot for both ,so debian grub.conf was erased and substituted by fedora's grub) and i have had other problems with debian,so i decided to reinstall debian and then install CentOS,because i was interested in it.

I want to use debian (x86_64) too because i want to learn more how to use it,and use virtual machines with kvm to compile kernels,and experiment with debian without break the sistem. I like debian,and i want to have it installed ,to use it in some times.

But for 3d , i think use alien to have a deb in debian,is not optimal,so i prefer use for maya CentOS, so i need dual boot.

I want to have a LVM configuration at least for /home so be able to resize it or , better, extend it if i require more space,and have in the lvm free space for virtual machines and other things. Be able to add another hard disks and so.


I think that the configuration for LVM could be:

Create a Volume group of 700 GB for with 3 Logical volumes (/swap 4GB ,/home 350GB , and debian / 20 GB and 326GB free space). Outside LVM , the debian /boot and CentOS / 30 GB , having about 19.5 GB free

I think this is a option,first install debian,and then CentOS,then go to debian grub and chainload to CentOS grub.

But perhaps there is another thing that could be done,that is put the CentOS partition inside the LVM,inside the Volume group,and have another /boot for CentOS outside the LVM (two /boot ,one debian,one CentOS)

So the second option is create a Volume group of 730 GB for with 4 Logical volumes (/swap 4GB ,/home 350GB , and debian / 20 GB CentOS / 30GB and 326GB free space). Outside LVM , the debian /boot and CentOS /boot, having about 19 GB free

I think the ideal situation is have all partitions except the two /boot inside LVM , but i dont know if i can have two /boot with same name , or one of then have diferent name (like /bootdeb) so be able to have two boot and no have problems (perhaps there is a way of use only one boot , but i think is a bit bad idea perhaps , or more difficult compared with other alternatives).

Thanks to the developers and all the stuff of CentOS for this great distribution,and thanks all people for their help,in advance :)

what people do you think , what is the better way to have a LVM,be able to extend/resize partitions and be able to dual boot ?
whitewolf_573
 
Posts: 8
Joined: 2009/04/20 14:55:21

Re: Dual boot Debian + CentOS 4.7 with LVM used. Need advice,not yet installed CentOS.

Postby pschaff » 2009/04/21 15:24:20

whitewolf_573 wrote:
Hi,i decided to install CentOS 4.7 in my pc ,because i want a RPM based distribution to install Maya 2009 (3d design application) and use it for 3d design.
...
Create a Volume group of 700 GB for with 3 Logical volumes (/swap 4GB ,/home 350GB , and debian / 20 GB and 326GB free space). Outside LVM , the debian /boot and CentOS / 30 GB , having about 19.5 GB free

I think this is a option,first install debian,and then CentOS,then go to debian grub and chainload to CentOS grub.

Looks OK - just be sure to install CentOS GRUB to the partition in which it is installed (/ or /boot depending on 1st or 2nd options you describe). You may have a learning experience getting the CentOS anaconda installer to work with the Debian LVM using Custom install options, but don't see why it would not be possible. Doing it the other way might be problematic - have had problems with CentOS GRUB not being able to deal with later distros such as Ubuntu Intrepid due to larger inode size.

But perhaps there is another thing that could be done,that is put the CentOS partition inside the LVM,inside the Volume group,and have another /boot for CentOS outside the LVM (two /boot ,one debian,one CentOS)

So the second option is create a Volume group of 730 GB for with 4 Logical volumes (/swap 4GB ,/home 350GB , and debian / 20 GB CentOS / 30GB and 326GB free space). Outside LVM , the debian /boot and CentOS /boot, having about 19 GB free

That's the way I would go.
I think the ideal situation is have all partitions except the two /boot inside LVM , but i dont know if i can have two /boot with same name , or one of then have diferent name (like /bootdeb) so be able to have two boot and no have problems (perhaps there is a way of use only one boot , but i think is a bit bad idea perhaps , or more difficult compared with other alternatives).

No problem with having multiple /boot partitions as long as the ext3 labels and UUIDs are unique. Sharing /boot is probably a bad idea as you found with the Fedora experience.

Thanks to the developers and all the stuff of CentOS for this great distribution,and thanks all people for their help,in advance :)

what people do you think , what is the better way to have a LVM,be able to extend/resize partitions and be able to dual boot ?


Don't know a better way - whatever works well for you is the right way. Please report back and let us know how it goes.

Welcome to the CentOS fora.
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America

Re: Dual boot Debian + CentOS 4.7 with LVM used. Need advice,not yet installed CentOS.

Postby whitewolf_573 » 2009/04/23 12:30:20

Well,i have installed the centos 4.7 x86_64 on tuesday , and yesterday i have been updating it,and installing kernel-devel,gcc,and like to install Nvidia native drivers,but perhaps i have a pae kernel (i have to see) or a diferent version of kernel compared to the kernel-devel version because when i tried this morning to install nvidia , the installer said :

Unable to find the kernel source tree for the currently running kernel. Please make sure you have installed the kernel source files for your kernel and that they are properly configured; on Red Hat Linux systems, for example, be sure you have the 'kernel-source' or 'kernel-devel' RPM installed. If you know the correct kernel source files are installed, you may specify the kernel source path with the '--kernel-source-path' command line option.


i have been reading the forum,and seems that or i have a kernel-devel that doesn't match with the kernel, or that the install isn't able to detect the kernel , so after trying to use "--kernel-source-path' command line option" i will have to use the rmp nvidia package from rpmforge.

After install the nvidia , i will install the diferent libs need to run maya ,and then maya.

It seems that centos is a good distro,very stable :)
whitewolf_573
 
Posts: 8
Joined: 2009/04/20 14:55:21

Re: Dual boot Debian + CentOS 4.7 with LVM used. Need advice,not yet installed CentOS.

Postby AlanBartlett » 2009/04/23 12:39:27

Please consider the output you see from these commands --

Code: Select all
[b]uname -r
rpm -qa kernel\* | sort[/b]

If you are running the PAE kernel, then you need to have the matching kernel-devel package installed. Your installation command should have been --

Code: Select all
[b]yum install kernel-PAE-devel[/b]
User avatar
AlanBartlett
Forum Moderator
 
Posts: 9142
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk

Re: Dual boot Debian + CentOS 4.7 with LVM used. Need advice,not yet installed CentOS.

Postby whitewolf_573 » 2009/04/23 12:52:20

In some hours i will be at home , and i will do that. Thanks for the help. I have been making a doc with the information that you and other users have posted related with problems with nvidia installer ,so i know that perhaps i installed a bad kernel-devel or like.

I will post later the results of that comands.

Nvidia rmp from Rpmforge is like the native nvidia installer , but packed using rpm no ?

So with the rpm installed i will have enabled 3d acceleration and the other characteristics need for 3d design , like using the nvidia native installer,the same.

But having the same kernel and kernel-devel , the nvidia installer should work no ?
whitewolf_573
 
Posts: 8
Joined: 2009/04/20 14:55:21

Re: Dual boot Debian + CentOS 4.7 with LVM used. Need advice,not yet installed CentOS.

Postby AlanBartlett » 2009/04/23 12:59:35

Nvidia rmp from Rpmforge is like the native nvidia installer , but packed using rpm no ?

Yes, that is correct. The package available from RPMForge will not be the latest version that can be downloaded from the nVIDIA site, though.

But having the same kernel and kernel-devel , the nvidia installer should work no ?

That's right. As long as the kernel and kernel-devel packages match, you should not have any problems using the nVIDIA installer with the latest driver.
User avatar
AlanBartlett
Forum Moderator
 
Posts: 9142
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk

Re: Dual boot Debian + CentOS 4.7 with LVM used. Need advice,not yet installed CentOS.

Postby whitewolf_573 » 2009/04/23 16:15:45

uname -rmi
2.6.9-78.0.17.ELsmp x86_64 x86_64

cat /proc/version
Linux version 2.6.9-78.0.17.ELsmp (mockbuild@builder10.centos.org)
(gcc version 3.4.6 20060404 (Red Hat 3.4.6-9)) #1 SMP Fri Mar 13 08:57:04 EDT 2009

rpm -qa kernel\* | sort
kernel-2.6.9-78.0.17.EL
kernel-2.6.9-78.EL
kernel-devel-2.6.9-78.0.17.EL
kernel-smp-2.6.9-78.0.17.EL
kernel-smp-2.6.9-78.EL
kernel-utils-2.4-14.1.117

yum list installed |grep kernel*
kernel.x86_64 2.6.9-78.0.17.EL installed
kernel.x86_64 2.6.9-78.EL installed
kernel-devel.x86_64 2.6.9-78.0.17.EL installed
kernel-smp.x86_64 2.6.9-78.EL installed
kernel-smp.x86_64 2.6.9-78.0.17.EL installed
kernel-utils.x86_64 1:2.4-14.1.117 installed


Edited **
If i do a yum list kernel* i see that i have a kernel-smp-devel for my kernel,and some new kernels:
yum list kernel*
Setting up repositories
Reading repository metadata in from local files
Installed Packages
kernel.x86_64 2.6.9-78.EL installed
kernel.x86_64 2.6.9-78.0.17.EL installed
kernel-devel.x86_64 2.6.9-78.0.17.EL installed
kernel-smp.x86_64 2.6.9-78.EL installed
kernel-smp.x86_64 2.6.9-78.0.17.EL installed
kernel-utils.x86_64 1:2.4-14.1.117 installed
Available Packages
kernel-doc.noarch 2.6.9-78.0.17.EL update
kernel-largesmp.x86_64 2.6.9-78.0.17.EL update
kernel-largesmp-devel.x86_64 2.6.9-78.0.17.EL update
kernel-smp-devel.x86_64 2.6.9-78.0.17.EL update
kernel-xenU.x86_64 2.6.9-78.0.17.EL update
kernel-xenU-devel.x86_64 2.6.9-78.0.17.EL update

I see that the kernel-devel i have is the same as the one of the kernel.x86_64 but there is a kernel-smp.x86_64 for that version too.
I dont understand why some has .0.17 in the version and others no.

i have to install a kernel-smp-devel ?

i have only one cpu,Quadcore 6600, smp is not for more than one cpu ?.

I have 4GB ram, wouldn't be better to install a pae kernel ? (I have x64 centOS 4.7)

Thanks :)
whitewolf_573
 
Posts: 8
Joined: 2009/04/20 14:55:21

Re: Dual boot Debian + CentOS 4.7 with LVM used. Need advice,not yet installed CentOS.

Postby AlanBartlett » 2009/04/23 16:59:46

Ah, I see you have a 64-bit system. So all mention of PAE kernels can be forgotten -- they're the Physical Address Extension variants for 32-bit systems.

The smp kernels are for multiprocessor systems (Symmetric Multiple Processors) and as you have a quad core (you've got four processors in that chip) a smp kernel is right for you.

So yes, what you need to do is execute a yum install kernel-smp-devel command.

The reason that you are seeing this --

Code: Select all
$ rpm -qa kernel\* | sort
kernel-2.6.9-78.0.17.EL
kernel-2.6.9-78.EL
kernel-devel-2.6.9-78.0.17.EL
kernel-smp-2.6.9-78.0.17.EL
kernel-smp-2.6.9-78.EL
kernel-utils-2.4-14.1.117

-- is that the kernel-*-2.6.9-78.0.17.EL package is newer than the kernel-*-2.6.9-78.EL package and, when a kernel package is involved in an update process, the newer version is installed alongside the older one. (Consider it a form of security.)
User avatar
AlanBartlett
Forum Moderator
 
Posts: 9142
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk

Re: Dual boot Debian + CentOS 4.7 with LVM used. Need advice,not yet installed CentOS.

Postby whitewolf_573 » 2009/04/23 17:05:08

when i do yum install kernel-smp-devel installs kernel-smp-devel-2.6.9-78.0.13.EL when kernel-smp is version 2.6.9-78.0.17.EL.

Installed: kernel-smp-devel.x86_64 0:2.6.9-78.0.13.EL


I don't understand why the kernel-smp-devel package version is ...0.13 and not ...0.17 as kernel-smp.

If i remove the kernel-smp-2.6.9-78.0.17.EL , then yum lets me install a kernel-smp-2.6.9-78.0.13.EL .(i did yum list kernel-smp , and i saw that there was a previous kernel matching the kernel-smp-devel version)
whitewolf_573
 
Posts: 8
Joined: 2009/04/20 14:55:21

Re: Dual boot Debian + CentOS 4.7 with LVM used. Need advice,not yet installed CentOS.

Postby AlanBartlett » 2009/04/23 17:26:23

Hmm. This is what I see --

Code: Select all
[root@nova9 ~]# yum list kernel\* | grep smp | sort
kernel-largesmp-devel.x86_64             2.6.9-78.0.13.EL       installed       
kernel-largesmp-devel.x86_64             2.6.9-78.0.13.plus.c4  centosplus     
kernel-largesmp-devel.x86_64             2.6.9-78.0.1.EL        installed       
kernel-largesmp-devel.x86_64             2.6.9-78.0.8.EL        installed       
kernel-largesmp-devel.x86_64             2.6.9-78.EL            installed       
kernel-largesmp.x86_64                   2.6.9-78.0.13.plus.c4  centosplus     
kernel-smp-devel.i586                    2.6.9-78.EL            installed       
kernel-smp-devel.i686                    2.6.9-78.EL            installed       
kernel-smp-devel.x86_64                  2.6.9-78.0.13.EL       installed       
kernel-smp-devel.x86_64                  2.6.9-78.0.13.plus.c4  centosplus     
kernel-smp-devel.x86_64                  2.6.9-78.0.1.EL        installed       
kernel-smp-devel.x86_64                  2.6.9-78.0.8.EL        installed       
kernel-smp-devel.x86_64                  2.6.9-78.EL            installed       
kernel-smp.x86_64                        2.6.9-78.0.13.plus.c4  centosplus

No sign of anything -78.0.17 kernel-wise from this system's mirror. :-o

I suspect that the mirror sites have not fully synchronised, as the -78.0.17 kernel series was only released yesterday.

I'll give toracat a ping to get a second opinion. ;-)
User avatar
AlanBartlett
Forum Moderator
 
Posts: 9142
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk

Next

Return to CentOS 4 - General Support

Who is online

Users browsing this forum: No registered users and 0 guests