DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Installation and Upgrading

FreeBSD Installation and Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 1st February 2009
Randux Randux is offline
Disgruntled desktop user
 
Join Date: May 2008
Location: Siberia
Posts: 100
Default How can I move this system?

Solaris is a very stubborn OS and it refuses to cooperate on the box I wanted it to live on so I have to move an installed FreeBSD system to another box to make room for Solaris.

If I do a minimal FreeBSD install on the new box and partition the slice and make filesystems, and then rsync my whole existing install on top of the new one will this work?

Is there a better way to do this?

Also, I have 500G to allocate to FreeBSD and the disklabel doesn't allow for many partitions. How would you allocate this much space for a general desktop box for development and a web server?

Thank you.
__________________
BSDForums.org refugee #27
Multibooting with LILO
Reply With Quote
  #2   (View Single Post)  
Old 1st February 2009
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,125
Default

Each disk allows 4 slices in the MBR. Each slice can have 8 partitions, a-h, of which 7 are usuable. So you can have 4 x 7 = 28 labelled partitions. Isn't that enough?
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #3   (View Single Post)  
Old 1st February 2009
Randux Randux is offline
Disgruntled desktop user
 
Join Date: May 2008
Location: Siberia
Posts: 100
Default

Maybe...can one FreeBSD installation refer to the other three slices?
__________________
BSDForums.org refugee #27
Multibooting with LILO
Reply With Quote
  #4   (View Single Post)  
Old 1st February 2009
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,125
Default

Yes, for an example see http://daemonforums.org/showthread.php?t=2701#post20233
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #5   (View Single Post)  
Old 2nd February 2009
Randux Randux is offline
Disgruntled desktop user
 
Join Date: May 2008
Location: Siberia
Posts: 100
Default

Thanks, J65nko. But I was really hoping for 29 partitions

What about my question? Is the way I asked about the best way to move an installed system?

(I can't get the installer to run on the other box so maybe this is moot )

300 second timeout waiting for xpt_config and then nothing.
__________________
BSDForums.org refugee #27
Multibooting with LILO
Reply With Quote
  #6   (View Single Post)  
Old 2nd February 2009
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

Quote:
Originally Posted by Randux View Post
If I do a minimal FreeBSD install on the new box and partition the slice and make filesystems, and then rsync my whole existing install on top of the new one will this work?
Yes, if you install rsync & whatnot as necessary for the operation. The built in dump and restore programs should also be usable for that purpose.

Quote:
Originally Posted by Randux View Post
Is there a better way to do this?
If the disks are the same size, I would probably use a live cd, dd, ssh, and gzip out of laziness; and skip the install disk all together.

Quote:
Originally Posted by Randux View Post
Also, I have 500G to allocate to FreeBSD and the disklabel doesn't allow for many partitions. How would you allocate this much space for a general desktop box for development and a web server?
Suggested reading: link
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #7   (View Single Post)  
Old 2nd February 2009
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 696
Default

Quote:
Originally Posted by TerryP View Post
Yes, if you install rsync & whatnot as necessary for the operation. The built in dump and restore programs should also be usable for that purpose.
This is how we do our restores, now that all our servers are being backed-up to a central server via rsync. The restore process is now (taken from our internal wiki):
Code:
Complete System Restore - FreeBSD

    * Boot replacement server off a FreeBSD LiveCD (Frenzy/FreeSBIE/etc)
    * Enable modifying of drives while the system is running

          sysctl -w kern.geom.debugflags=16 

    * Slice the drive into one large slice using the auto feature of fdisk/sade/sysinstall (whichever is available)
    * Partition the slice as needed (see fstab in the source server's etc directory)
          bsdlabel -e /dev/ad4s1 

          o You can specify partition sizes using "10g" format, put "unused" for the filesystem, and put "*" in for all the other fields to have it automatically fill in the blanks
 
    * Format the partitions as needed
          newfs -U /dev/ad4s1a 
          newfs -U /dev/ad4s1d 
          and so on 

    * Mount the partitions under /mnt
          mount /dev/ad4s1a /mnt 
          mkdir /mnt/usr /mnt/var /mnt/home 
          mount /dev/ad4s1d /mnt/usr 
          mount /dev/ad4s1e /mnt/var 
          mount /dev/ad4s1f /mnt/home 

    * cd to /mnt (not needed, but a good safety-net, just in case)

    * Run rsync to copy everything from Megadrive to the server

          Note 1: --numerical-ids is *very* important, do not forget this option, or things will fail in spectacular ways! 

          Note 2: -H is needed to restore hardlinks to various files. Without this, the restore will be huge, and will fail. FreeBSD uses hardlinks a lot! 

          rsync -vaH --partial --stats --numeric-ids --rsh=ssh --rsync-path="sudo rsync" username@source:/ /mnt/

    * Grab a coffee as it does the transfer. Takes about 20 minutes for a firewall image.

    * Install the standard boot blocks into the boot sector of the drive
          fdisk -B /dev/ad4 

    * Reboot the server to make sure everything comes up correctly.
I use Frenzy 1.1 for this. Works nicely, especially since it includes rsync.

Note: for the above to work, you need to have a user on the server that can run "sudo rsync", and that has SSH access to the source server.

Quote:
If the disks are the same size, I would probably use a live cd, dd, ssh, and gzip out of laziness; and skip the install disk all together.
See above. It's an almost painless process, and goes a lot quicker than doing a minimal install of FreeBSD. We're down to about 30 minutes to restore a server from backups, depending on how much data is on the server.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #8   (View Single Post)  
Old 3rd February 2009
Randux Randux is offline
Disgruntled desktop user
 
Join Date: May 2008
Location: Siberia
Posts: 100
Default

Thanks very much, guys. The disks on the box where it's installed now are smaller than the drives on the target system.

The good news is Solaris finally surrendered and is now booting properly on the box I wanted it to live on, so FreeBSD gets to stay where it is after all.
__________________
BSDForums.org refugee #27
Multibooting with LILO
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FreeBSD making the move from CVS to Subversion drhowarddrfine FreeBSD Installation and Upgrading 9 8th June 2008 05:29 PM
Which file system use to share data on Bsd system? aleunix Other BSD and UNIX/UNIX-like 2 1st June 2008 04:14 PM


All times are GMT. The time now is 10:02 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick