Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
migrating from a separate /usr [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
A.S. Pushkin
Guru
Guru


Joined: 09 Nov 2002
Posts: 301
Location: dx/dt, dy/dt, dz/dt, t

PostPosted: Tue Jul 28, 2015 2:25 am    Post subject: migrating from a separate /usr [SOLVED] Reply with quote

I'm in a quandary. I've finally completed acquiring components for a new Linux box. The old AMD64 Athlon has served me well, but it was time for
more muscle so I'm moving to a Intel i7. I'm a bit leery of SSDs, but decided to give them a try, 2 Samsung 850 Pro SSDs for Gentoo and a Seagate Barracuda 320GB
for /home. The new motherboard supports raid, but I think I'm going to try LVM2.

There is a hitch in building the new machine. I downloaded the new media, but was quickly reminded about recent changes in Gentoo news, which will make, IMHO,
doing a from scratch install rather difficult. Too many hoops to jump through. So That sends me back to last year when I cloned my old hard drive and moved to a new
one. That was due, in part, to when Gentoo moved away to a separate /usr.

With the new machine I'm planning to clone again, but I'd like to drop the separate /usr so I can drop initramfs and switch to GPT.
Is it possible to do this? Is it possible to move to a GPT based system with LVM2?

I'm not planning to wipe a production machine and will give Clonezilla a try at this. For those, who have not used Clonezilla I can really recommend it. My experience was based around
a drive that had not been completely partitioned. I was bumping up limits and had about 70GBs I needed. I installed a brand new drive cloned it and then used Gparted to alter partitions.
Awesome work from those developers as well as SysrescCD and Gentoo, of course.

All that said, if anyone has experience relating to my questions I'd appreciate their comments. I'd love to get this quad core up and running, without too much experimenting.

BTW, my current system uses an extended partition scheme: /, /var, /tmp, /opt, /usr, /home. One different partition is I keep my source code in its own partition. IF I'm able to bring /usr
under rootfs I'll drop the distfiles partition.


Thanks in advance!


Quote:
EDIT

Well, I took the suggestion, though more is to be done. Doing a new build with an i7 is amazing. webkit-gtk builds in 30 minutes rather than 10 hours.

Thanks again for the help.
_________________
ASPushkin

"In a time of universal deceit - telling the truth is a revolutionary act." -- George Orwell


Last edited by A.S. Pushkin on Thu Sep 10, 2015 12:34 am; edited 1 time in total
Back to top
View user's profile Send private message
ct85711
Veteran
Veteran


Joined: 27 Sep 2005
Posts: 1696

PostPosted: Tue Jul 28, 2015 3:21 am    Post subject: Reply with quote

well, I can say it's not hard to move away from having a separate /usr, just have that directory on the / partition and not on a separate partition. Otherwise, I believe if you want to use LVM, you are going have to use a a initramfs. Otherwise you shouldn't have any issue using LVM on a GPT disk.

For me, I've been running initramfs free for over 14 years. The big thing is, I don't get to use any of the LVM features either (haven't seen anything about LVM that I need either).
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2574

PostPosted: Tue Jul 28, 2015 3:45 am    Post subject: Reply with quote

Any sane method of cloning shouldn't care. You could also use rsync or rsnapshot quite easily. I have used this method and it is exceedingly simple.

I would add one thing to your setup. A 3 - 5 TB external drive and use it for backups. I use rsnapshot for daily, weekly, and monthly snapshots and restoring form these is really easy if there is ever a need.

There is a huge but coming.
Quote:
The old AMD64 Athlon has served me well, but it was time for
more muscle so I'm moving to a Intel i7
The two processors are not compatible. A straight up clone of your system will not work.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
ian.au
Guru
Guru


Joined: 07 Apr 2011
Posts: 435
Location: Australia

PostPosted: Tue Jul 28, 2015 10:24 pm    Post subject: Reply with quote

As the Doctor says, the problem isn't really migrating away from the separate /usr, it's more that every package on your system is going to need to be rebuilt to a new arch amd -> intel; the graphics environment nVidia -> i9xx etc..

If it's just a desktop system an i7 will crunch a handbook install in hours as opposed to the days it would likely take on your athlon. It is quite trivial to set up a system following the handbook these days, much easier from scratch than trying to adapt across as you suggest here. The problem is evolution, I'd guess that 20% of technical knowledge is obsolete at some level at any given time, if this system is 4 years old; probably close to 80% of the way it was initially configured is technically redundant, and how it runs now may be quite inadvertantly customised by decisions long forgotten that were taken to work around one issue or another.

In your case, I'd do a fresh install of the base system from scratch and spend a day or two building it up (if it is a complex or dedicated system / environment) by slowly adapting over the configs from the older machine. I'm not sure what specific problems you are considering 'hoops to jump through' but there will be many more of them trying to migrate this system than building a fresh one. For sure there will be some reading to do if you have a heavily customised environment to worry about, but that is the cost of a heavily customised environment :)

You can run LVM without an initramfs, but it's not reccommended: from https://wiki.gentoo.org/wiki/LVM
Quote:

Most bootloaders cannot boot from LVM directly - neither GRUB legacy nor LILO can. Grub 2 CAN boot from an LVM linear logical volume, mirrored logical volume and possibly some kinds of RAID logical volumes. No bootloader currently support thin logical volumes.

For that reason, it is recommended to use a non-LVM /boot partition and mount the LVM root from an initramfs. Such an initramfs can be generated automatically through genkernel, sys-kernel/genkernel-next and dracut:


It's a brand spanking new hi-spec machine, show it some love and compile an environment for it, install the software you need then move your /home over and enjoy.
Back to top
View user's profile Send private message
A.S. Pushkin
Guru
Guru


Joined: 09 Nov 2002
Posts: 301
Location: dx/dt, dy/dt, dz/dt, t

PostPosted: Tue Jul 28, 2015 11:05 pm    Post subject: migrating froma separate /usr Reply with quote

Thanks for the many good responses!

Yes, I did assume that I'd have to prepare to deal with the AMD64 vs. i7-4770K.

Quote:
I would add one thing to your setup. A 3 - 5 TB external drive and use it for backups. I use rsnapshot for daily, weekly, and monthly snapshots and restoring form these is really easy if there is ever a need.


That's is a great idea. I do have a Seagate external drive, but I've not been consistent in doing what you suggest.

Quote:
If it's just a desktop system an i7 will crunch a handbook install in hours as opposed to the days it would likely take on your athlon.
is very nice to hear and is what I had hoped.

I'm not certain whether I will build for the Intel on-board chip or just stick with the Quadro K620 Card I have.

Quote:
For sure there will be some reading to do if you have a heavily customized environment to worry about, but that is the cost of a heavily customized environment :)
is another issue as I do have a number of non-standard apps. Freecad is one such.

Quote:
deep breath
I guess I'll follow the rather wise advice and do a fresh install. Of course, I will migrate /home.

Thank you for the great responses and suggestions. What a great resource Gentoo and the user base are.

Thanks again!
_________________
ASPushkin

"In a time of universal deceit - telling the truth is a revolutionary act." -- George Orwell
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum