![]() |
|
FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
![]() |
|
Thread Tools | Display Modes |
|
|||
![]()
Hello, ok i have read all the guides for moving cloning an install but none seem be straight forward fro my needs.
I have live server that needs more space, a reinstall is not feasble so some way of cloning drive would be best. The issue is that the server is running raid 5 over 3 disks so the method of just plugging in new drive is a no go. All partitions will remain the same size except for /home which get the additional space. As far as i understand it none of the drive clone software, ghost, clonezilla support freebsd! I was thinking of taking an identical server with bigger drives and doing basic install so partitons are created and bootloader installed and then use livecd to rsync old server data over to new server. Would this work or is there better way? Like i said plugging in new drives will not work as it is raid system, though could add a external usb drive to store images that could maybe be created with DD. cheers |
|
|||
![]()
Since your previous posts target FreeBSD, I'm moving this thread to the FreeBSD forums. If you truly intended to post in the OpenBSD forums, my apologies. I will move this thread back if necessary.
|
|
|||
![]()
I used BootIt (shareware ) to clone a dual boot to a larger
drive, keeping just the fstab identical. ( 4 image files total, one was C: one was d: etc ; two other were each 2 FS ). I did not know beforehand but it booted up just fine. (In retrostpect, though, "how did I do that???. I think I posted it on the extinct freebsd forum site once. )
__________________
FreeBSD 13-STABLE |
|
|||
![]() Quote:
Never thought of that! Will have to check and see, it is an addon raid card (PERC 3/Di) on Dell 1650. Thanks for the info on rsync options, that looks more like the way i will go. |
|
|||
![]()
Ok getting ready for this task this weekend.
Have got new drive and put them in identical server, created raid containers and used freebsd 7.2 livefs to created identicle slice and partition layout except sizes differ. have also done a base install to get boot loader onto disks and install boots fine. The plan is to rsync current install to an external usb drive here at home over the net, then go to data center disconnect from web and and do rsync again to external drive, doing it twice so as to save downtime as second one should not take that long. Then put new drives in server boot from livefs cd and rsync from external drive to new raid drives. Question, apart from getting rsync options correct is there anything else i need to do? Also what file system should i have the external drive in, am going to do initail rsync with it connected to my linux workstation so was going to use ext3, should set linux to support ufs and create a ufs file system? many thanks |
|
|||
![]()
Thanks for info, i am trying to do a test run on local server, i have booted into frenzy livecd and mounted installed partitions on /mnt/server and usb drive on /mnt/backup
I recreated all the correct dir and partitions for server and so these are mount fine. Code:
/dev/da0s1d on /mnt/backup (ufs, local) /dev/aacd0s1a on /mnt/server (ufs, local) /dev/aacd0s1d on /mnt/server/tmp (ufs, local, soft-updates) /dev/aacd0s1e on /mnt/server/usr (ufs, local, soft-updates) /dev/aacd0s1f on /mnt/server/usr/local/pgsql (ufs, local, soft-updates) /dev/aacd0s1g on /mnt/server/var (ufs, local, soft-updates) /dev/aacd0s1h on /mnt/server/var/db (ufs, local, soft-updates) /dev/aacd0s2d on /mnt/server/var/qmail (ufs, local, soft-updates) /dev/aacd0s2e on /mnt/server/hsphere (ufs, local, soft-updates) rsync -avRrnH --numeric-ids /mnt/server/* /mnt/backup/cp Code:
/mnt/server/usr/compat/linux/usr/lib/locale/ar_AE.utf8/LC_NUMERIC => mnt/server/usr/compat/linux/usr/lib/locale/ar_YE.utf8/LC_NUMERIC /mnt/server/usr/compat/linux/usr/lib/locale/ar_YE.utf8/LC_TELEPHONE rsync: stat "/mnt/backup/cp/mnt/server/usr/compat/linux/usr/lib/locale/ar_SD.utf8/LC_TIME" failed: No such file or directory (2) /mnt/server/usr/compat/linux/usr/lib/locale/ar_YE.utf8/LC_MESSAGES/ rsync: stat "/mnt/backup/cp/mnt/server/usr/compat/linux/usr/lib/locale/ar_SD.utf8/LC_MESSAGES/SYS_LC_MESSAGES" failed: No such file or directory (2) /mnt/server/usr/compat/linux/usr/lib/locale/ar_YE/ /mnt/server/usr/compat/linux/usr/lib/locale/ar_YE/LC_ADDRESS rsync: stat "/mnt/backup/cp/mnt/server/usr/compat/linux/usr/lib/locale/ar_SD/LC_COLLATE" failed: No such file or directory (2) rsync: connection unexpectedly closed (26849 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(635) [sender=3.0.2] I included the -R options as read this should create the dir? any ideas where going wrong? cheers |
|
|||
![]()
Thanks for reply, seem it is the -n option that give error.
I have successfully done a test transfer with minimum install, rsync to USB drive, new drives installed and rsync from usb drive to new drives. It boot and all seems ok but did see following in /var.log/messages but this is not something to worry about? Code:
ct 17 02:28:40 cp kernel: aacd0: <RAID 5> on aac0 Oct 17 02:28:40 cp kernel: aacd0: 139997MB (286714368 sectors) Oct 17 02:28:40 cp kernel: GEOM_LABEL: Label for provider aacd0s1a is ufsid/3f8f4255de668c63. Oct 17 02:28:40 cp kernel: GEOM_LABEL: Label for provider aacd0s1d is ufsid/3f8f4282d2c2a193. Oct 17 02:28:40 cp kernel: GEOM_LABEL: Label for provider aacd0s1e is ufsid/3f8f42a31acc0796. Oct 17 02:28:40 cp kernel: GEOM_LABEL: Label for provider aacd0s1f is ufsid/3f8f43b11502262d. Oct 17 02:28:40 cp kernel: GEOM_LABEL: Label for provider aacd0s1g is ufsid/3f8f43b8f2999428. Oct 17 02:28:40 cp kernel: GEOM_LABEL: Label for provider aacd0s1h is ufsid/3f8f43daf65d0d22. Oct 17 02:28:40 cp kernel: GEOM_LABEL: Label for provider aacd0s2d is ufsid/3f8f44277daf7cd3. Oct 17 02:28:40 cp kernel: GEOM_LABEL: Label for provider aacd0s2e is ufsid/3f8f445164b9fcf4. Oct 17 02:28:40 cp kernel: SMP: AP CPU #1 Launched! Oct 17 02:28:40 cp kernel: da0 at umass-sim0 bus 0 target 0 lun 0 Oct 17 02:28:40 cp kernel: da0: <WDC WD32 00AAKS-00L9A0 > Fixed Direct Access SCSI-2 device Oct 17 02:28:40 cp kernel: da0: 1.000MB/s transfers Oct 17 02:28:40 cp kernel: da0: 305245MB (625142448 512 byte sectors: 255H 63S/T 38913C) Oct 17 02:28:40 cp kernel: GEOM_LABEL: Label for provider da0s1 is ufsid/3f87993b1e238a1c. Oct 17 02:28:40 cp kernel: Trying to mount root from ufs:/dev/aacd0s1a Oct 17 02:28:40 cp kernel: GEOM_LABEL: Label ufsid/3f8f4255de668c63 removed. Oct 17 02:28:40 cp kernel: GEOM_LABEL: Label for provider aacd0s1a is ufsid/3f8f4255de668c63. Oct 17 02:28:40 cp kernel: GEOM_LABEL: Label ufsid/3f8f445164b9fcf4 removed. Oct 17 02:28:40 cp kernel: GEOM_LABEL: Label for provider aacd0s2e is ufsid/3f8f445164b9fcf4. Oct 17 02:28:40 cp kernel: GEOM_LABEL: Label ufsid/3f8f4282d2c2a193 removed. Oct 17 02:28:40 cp kernel: GEOM_LABEL: Label for provider aacd0s1d is ufsid/3f8f4282d2c2a193. Oct 17 02:28:40 cp kernel: GEOM_LABEL: Label ufsid/3f8f42a31acc0796 removed. Oct 17 02:28:40 cp kernel: GEOM_LABEL: Label for provider aacd0s1e is ufsid/3f8f42a31acc0796. Oct 17 02:28:40 cp kernel: GEOM_LABEL: Label ufsid/3f8f43b11502262d removed. Oct 17 02:28:40 cp kernel: GEOM_LABEL: Label for provider aacd0s1f is ufsid/3f8f43b11502262d. Oct 17 02:28:40 cp kernel: GEOM_LABEL: Label ufsid/3f8f43b8f2999428 removed. Oct 17 02:28:40 cp kernel: GEOM_LABEL: Label for provider aacd0s1g is ufsid/3f8f43b8f2999428. Oct 17 02:28:40 cp kernel: GEOM_LABEL: Label ufsid/3f8f43daf65d0d22 removed. Oct 17 02:28:40 cp kernel: GEOM_LABEL: Label for provider aacd0s1h is ufsid/3f8f43daf65d0d22. Oct 17 02:28:40 cp kernel: GEOM_LABEL: Label ufsid/3f8f44277daf7cd3 removed. Oct 17 02:28:40 cp kernel: GEOM_LABEL: Label for provider aacd0s2d is ufsid/3f8f44277daf7cd3. Oct 17 02:28:40 cp kernel: GEOM_LABEL: Label ufsid/3f8f4255de668c63 removed. Oct 17 02:28:40 cp kernel: GEOM_LABEL: Label ufsid/3f8f445164b9fcf4 removed. Oct 17 02:28:40 cp kernel: GEOM_LABEL: Label ufsid/3f8f4282d2c2a193 removed. Oct 17 02:28:40 cp kernel: GEOM_LABEL: Label ufsid/3f8f42a31acc0796 removed. Oct 17 02:28:40 cp kernel: GEOM_LABEL: Label ufsid/3f8f43b11502262d removed. Oct 17 02:28:40 cp kernel: GEOM_LABEL: Label ufsid/3f8f43b8f2999428 removed. Oct 17 02:28:40 cp kernel: GEOM_LABEL: Label ufsid/3f8f43daf65d0d22 removed. Oct 17 02:28:40 cp kernel: GEOM_LABEL: Label ufsid/3f8f44277daf7cd3 removed. Just need to try this on rsync from live server. |
|
|||
![]()
Ok done a test on live server to local drive and it completed but some files were not transferred.
Code:
sent 9331696 bytes received 4097218247 bytes 324128.81 bytes/sec total size is 12157123006 speedup is 2.96 rsync error: some files could not be transferred (code 23) at main.c(1497) [generator=3.0.2] any ideas? cheers |
|
||||
![]()
Add -v to get more verbose output, including which files couldn't be transferred.
As for the GEOM_LABEL messages, you can ignore them. They're debugging leftovers that were supposed to be disabled before the 7.2 release. They'll disappear after an upgrade to 7.3 (once it's released). |
|
||||
![]()
I don't understand why you can't replace drives one at a time and let each rebuild before doing the next one. Then, go in and expand the array. I've done this on Perc3 controllers sucessfully. It takes a while, but it works. Of course, you want to take a good backup before you start. :-)
-Tim |
|
|||
![]()
Thanks I will try the -v option.
I will look into the expand array option but the problem is time, this is a live web server so downtime must be minimal. |
|
|||
![]()
Opps just notice i was using --verbose which is same as -v but did not give failed files?
Tried it with -v and also did not give failed, think this just as server is live, once mounted in livecd and rsync to usb drive should not be an issue.. i hope ! that said i wonder is this is files not transfered rsync: failed to set times on "/mnt/server/var/empty": Operation not permitted (1) var/empty/ Last edited by carpman; 18th November 2009 at 08:46 PM. |
|
|||
![]()
This is how I remember using BootIt ($35 I think)
c: (clone to img set) /, /tmp (clone to img set) partition /w 2 newfs /var, /usr (clone to img set) partition /w 2 newfs d: e: etc (fat-extended) EACH clone to img set) new drive: in BootIt, create partitions (c, bsd, bsd, extended, d: e: ) (if BSD does not show in the dropdown, use "165/A5h: BSD") in BootIt , restore from image c> c empty d> d empty etc. I remember the BSD images > to bsd space-empty's creating larger filesystems, but not how the split was managed. So if I had to, I could probably do it again, but would spend several hours figuring out how to restore (what worked then, seemingly is missing a crucial detail...) ... (*maybe* just the c: increased space automatically, but I do not remember "dump restore" but do remember "image restore" and larger space resulting)... ......... If the post(s) above solved the problem already, apologies.
__________________
FreeBSD 13-STABLE |
|
|||
![]()
Just an update, i did this using rsync external usb drive and it seem to have work ok, no issues so far and server is running well.
|
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How can I move this system? | Randux | FreeBSD Installation and Upgrading | 7 | 3rd February 2009 09:01 AM |
Did I fry my hard drive? | JMJ_coder | General Hardware | 7 | 23rd December 2008 10:38 PM |
CF as a *BSD hard drive? | JMJ_coder | General Hardware | 26 | 31st July 2008 05:13 PM |