Re: What's an easy way to replace a drive?
Anthony Atkielski wrote: Nicholas Basila writes: You can back up to tape and restore in single user mode. If /var and /tmp aren't too big, you could boot into single user mode, mount /usr mount -r /var(just to be safe) mount -r /tmp and create tar balls or even use dump to file (use the device in /dev as source, of course) with /var and /tmp unmounted. Then, reboot into single user mode with the new disk, set up the disk the way you want it with fdisk and bsdlabel, and then untar or restore from dump. Can I boot from the FreeBSD boot CD and avoid mounting anything on any of the hard drives at all? (That's not a problem in this case, since the root is on a different drive, but if I ever had to replace the drive containing the root I'm just wondering how to go about it.) Sure... just use the live disk. As long as you can access the necessary /dev entries from the CD, you can copy it. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: bacula with onstream configuration for FreeBSD
Noah wrote: Hi there, can somebody please suggest a configuration for bacula use on a FreeBSD 4.9 machine? anybody got this running well? tips for initial onstream setup are welcome. cheers, Noah Are you having trouble with bacula in the ports tree? I have it running on 4.11 with no problems. I'm using an LTO. If you're having trouble using an OnStream drive (that is your tape drive, right?), I can't help you there... though btape might work. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: What's an easy way to replace a drive?
Anthony Atkielski wrote: The continuing problems I'm having with my SATA drives seem to center on only one of the two drives, /dev/ad10, and since both drives are identical (Western Digital WD1200JD 120-GB SATA drives), this is a good indicator that the drive itself might be failing. So I've decided to spend $83 and buy a replacement drive to see if that fixes the problem. Now, what's the easiest way to replace the drive? The drive I want to replace contains only /var and /tmp. Are these mounted in single-user mode? I was thinking perhaps I can just replace the drive, set up identical slices on the new drive, then restore /var and /tmp from the latest backup. Can I restore from tape in single-user mode? I don't have any extra connectors to which I can attach this drive without removing one of the other drives, so I'm looking for a way to fix it up by just removing the old drive and putting in the new one, without the need to have both old and new drives online at the same time. You can back up to tape and restore in single user mode. If /var and /tmp aren't too big, you could boot into single user mode, mount /usr mount -r /var(just to be safe) mount -r /tmp and create tar balls or even use dump to file (use the device in /dev as source, of course) with /var and /tmp unmounted. Then, reboot into single user mode with the new disk, set up the disk the way you want it with fdisk and bsdlabel, and then untar or restore from dump. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: /usr out of space
On Thursday 20 May 2004 02:19 am, [EMAIL PROTECTED] wrote: Aloha Nicholas Thanks for responding. I had just received a hint about growfs and while reading that I found out about newfs. I have indeed performed the newfs and can now mount /dev/da1s4f. Would it be possible to use growfs to add the new slice to /usr? It is possible to use growfs, but in your case - more complicated, as you have /usr and the new /usr in two different slices. You'd have to resize the slice with fdisk, then use disklabel and growfs. If not, I will follow your instructions in this email. Thanks again. Robert On Wednesday 19 May 2004 08:17 pm, [EMAIL PROTECTED] wrote: When I tried using bsdlabel without any options I got an error. So I then did a bsdlabel -w da1s4 and the a bsdlabel -e da1s4 and edited what I believe are the correct numbers for this slice. Now when I do the bsdlabel da1s4 with no options, I get # /dev/da1s4: 8 partitions: #size offsetfstype [fsize bsize bps/cpg] c: 89803350unused0 0 # raw part, don't edit f: 8980319 164.2BSD 2048 16384 28552 I still get the above error when trying to mount this slice. To sum it up. Is it possible to mount, copy and change the /usr partition? If so, how do I correct the super block problem so I can mount? Or, is there a much easier way and I have been spinning my wheels for the last 6 hours? Perhaps I've missed a step, but it seems that you never did a newfs / dev/da1s4f. If not, that would be an obvious explanation for the incorrect super block error. At any rate, it is pretty easy to copy data from usr to a new slice and change fstab. I do it on occasion. I would recommend making a copy of fstab that has the da1s4f as the /usr partition. I do a tunefs -n enable on the new filesystem device. Then, I boot into single user mode, mount -ro /usr and mount -rw /newusr (and I even mount /var if I need to do editing with vi.) I then tar or copy the files over (dump works, too). After all that's done, umount /usr and umount /newusr. Copy the new version of fstab to /etc/fstab, and try a mount /usr or mount -a. If there are no errors, you should be able to hit control-d and finish the boot procedure. Nicholas TIA Robert P.S. Here's what bsdlabel on da1s2 looks like; bsd-desktop# bsdlabel da1s2 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: /usr out of space
On Wednesday 19 May 2004 08:17 pm, [EMAIL PROTECTED] wrote: When I tried using bsdlabel without any options I got an error. So I then did a bsdlabel -w da1s4 and the a bsdlabel -e da1s4 and edited what I believe are the correct numbers for this slice. Now when I do the bsdlabel da1s4 with no options, I get # /dev/da1s4: 8 partitions: #size offsetfstype [fsize bsize bps/cpg] c: 89803350unused0 0 # raw part, don't edit f: 8980319 164.2BSD 2048 16384 28552 I still get the above error when trying to mount this slice. To sum it up. Is it possible to mount, copy and change the /usr partition? If so, how do I correct the super block problem so I can mount? Or, is there a much easier way and I have been spinning my wheels for the last 6 hours? Perhaps I've missed a step, but it seems that you never did a newfs / dev/da1s4f. If not, that would be an obvious explanation for the incorrect super block error. At any rate, it is pretty easy to copy data from usr to a new slice and change fstab. I do it on occasion. I would recommend making a copy of fstab that has the da1s4f as the /usr partition. I do a tunefs -n enable on the new filesystem device. Then, I boot into single user mode, mount -ro /usr and mount -rw /newusr (and I even mount /var if I need to do editing with vi.) I then tar or copy the files over (dump works, too). After all that's done, umount /usr and umount /newusr. Copy the new version of fstab to /etc/fstab, and try a mount /usr or mount -a. If there are no errors, you should be able to hit control-d and finish the boot procedure. Nicholas TIA Robert P.S. Here's what bsdlabel on da1s2 looks like; bsd-desktop# bsdlabel da1s2 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Backup Server
On Friday 26 December 2003 12:30 pm, samy lancher wrote: Hello all, I have a 4.5 FreeBSD server. It is our Email, web and database server. I would like to setup a backup server so that when the main server goes down the backup server takes over its job. Could some one please tell me the best way to setup a backup server and also suggest some good documentation. In order to keep the data synchronized, you could possibly used some sort of shared scsi or fibre channel drive/array. You'd have to write a script that would run on the backup and tell it to mount the drive and startup the databases when the server was down. Shared scsi might be the easiest, but you'll have to buy some Y-terminated scsi cables so that the main machine won't reset the scsi bus on the backup machine when it (the main machine) goes down. Nicholas Thanks in advance, Naveen. - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: What logs etc do I need tocheckfrequently?
On Sunday 28 December 2003 10:27 am, Robert Huff wrote: Joachim Dagerot writes: I realise you are right. The thing is that this is a home system and I have (had!) around 230 GB of data that was non-replicable. I am not aware of a deasent backup system that can handle that amount of data. There are systems that will put 160 GB (uncompressed) on a single tape ... they'll just run you $3000-3500. Even better: the LTO2 will do 200GB uncompressed quite quickly. Here's one on e-bay for $3k: http://cgi.ebay.com/ws/ eBayISAPI.dll?ViewItemitem=2775174028category=3756 Nicholas If, on the other hand, you think of it as a yearly full dump (split over multiple tapes) plus monthly incrementals then a DLT 8000 ($1000 ??) at 40 GB (uncompressed) will do just fine. Robert Huff ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Backup Server
On Sunday 28 December 2003 03:26 pm, Matt Juszczak wrote: I read somewhere about the AMANDA project. Is that any good for a situation like this? Well, Amanda is certainly good for the backup of the data. The main site's here: http://www.amanda.org/ and Curtis Preston put part of his O'Reilly book online: http://www.backupcentral.com/amanda.html But... Amanda would not be a great choice because it's really a backup system and you'd end up having to write scripts to restore from dump files created by Amanda to the backup server filesystem. If you're going to that trouble, it would be easier to use rsync. Again, I think shared scsi or fibre channel would be the way to go. I'm not sure how well FreeBSD supports shared scsi/fibre channel drive sharing ( I know it supports some fibre channel adapters), however. If it does work well, you could have a central RAID array running RAID 10 and have the master DB server run with the drive mounted. If the master had problems, the backup/secondary could take over. You would have one set of data to contend with, and consequently, synchronization would not be an issue. My only concern would be filesystem writes and soft depends in general. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Compaq DL380 ciss error with FreeBSD 5.1
Hi, I'm running FreeBSD 5.1 RELEASE on a Compaq DL380 with a built in RAID controller. When I boot or shutdown the machine, I get these errors: da0 at ciss0 bus 0 target 0 lun 0 da0: COMPAQ RAID 5 VOLUME OK Fixed Direct Access SCSI-0 device da0: 135.168MB/s transfers da0: 104996MB (215032320 512 byte sectors: 255H 32S/T 26352C) ciss0: invalid command, offense size 0 at 0, value 0x0 (da0:ciss0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0xff ciss0: invalid command, offense size 0 at 0, value 0x0 (da0:ciss0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0xff The message: ciss0: invalid command, offense size 0 at 0, value 0x0 (da0:ciss0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0xff is repeated several times. There are no problems with the server, other than that. I'm guessing that the ciss driver isn't an exact match for this controller. Does anyone have any insight on this matter? Regards, Nicholas ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: DHCP message that I don't understand
On Monday 10 March 2003 04:59 pm, Tom Parquette wrote: I'm setting up DHCP for the first time on 5.0-CURRENT. In the end, I would like to get DDNS working. I set up the dhcpd.conf and it appears to be issuing addresses correctly. My old W98 laptop appears to have gotten the right information. I do not have DNS set up yet and that may be part of my problem... Sounds like that's the problem. It's awfully hard for the dhcp server to update dns if the dns server isn't running. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message