• 1 
瀏覽模式: 普通 | 列表

Subversion (SVN) Backup & Restore 備份與還原

這只是個備忘,將如何從原有的Subversion (svn)備份出來,並還原到新的Subversion Server 上。

備份Subversion 的repository 並將備份檔傳到要還原的機器上。

1. svnadmin dump /path/to/project/ >/tmp/project.dump

2. scp -rp /tmp/project.dump user@192.168.1.1:/tmp/

還原

1. mkdir -p /path/to

2. svnadmin create /path/to/project

3. svnadmin load /path/to/project < /tmp/project.dump

4. chmod own.own /path/to/project -R

打完收工!

標籤: SVN Linux

今天遇到了幾個討厭的問題

1. 硬體時間跟系統時間

系統時間老是比硬體時間過的要快,找了幾篇文章後發現,原因在於CentOS把bios 時間當成UTC,再依據你的時區來加減時間。

所以我們要修改設定讓他不要再把bios 的時間當成UTC了。

ZONE="Asia/Taipei"
UTC=false
ARC=false

把UTC=true => 改成 UTC=false

2. 詭異的acpi (全稱應該是Advanced Configuration and Power Interface)

不知道為什麼當我這新裝好的Server 跑到

SMP alternatives: switching to SMP code
Booting processor 1/2 APIC 0x1

就會稍微停頓一下然後就重開了,整個拿他沒辦法。

再來拜了一下Google 大神,終於找到解決方法了。

那就是在kernel option 加上一個 acpi=off,關掉這詭異的acpi。

結果真的順暢的開機了,但是原因我仍然是不清楚...或許只是個bug吧,也不知道是主機板的bug還是os的bug  = =

最後發上兩個仙丹,以備不時之需。

如果Linux 順利無法開機進入系統的話 (非硬體問題),不妨先使用一下小萬靈丹acpi=off noapic,兩個選項一起用。

如果小萬靈丹用了還是無解的話,不妨再使用一下大萬靈丹 vga=normal ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off single

如果還是不行的話...另求高明吧...哈哈哈

標籤: Linux

CentOS 5 Minimal (最小化) Howto

1. 取消無用的服務

chkconfig mcstrans off
chkconfig netfs off
chkconfig ip6tables off
chkconfig haldaemon off
chkconfig messagebus off
chkconfig lvm2-monitor off

haldaemon 及 messagebus 如果有要使用 plug & play device,記得要打開。

vi /etc/inittab

# Run gettys in standard runlevels
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
#3:2345:respawn:/sbin/mingetty tty3
#4:2345:respawn:/sbin/mingetty tty4
#5:2345:respawn:/sbin/mingetty tty5
#6:2345:respawn:/sbin/mingetty tty6

不需要那麼多個終端。

2. 更新系統

yum update
如果有舊的kernel則移除舊的kernel
cd /boot
看套件有沒有把舊核心映像檔移除,沒有的話可手動移除
vi /grub/menu.lst
看grub 的設定有沒有問題。

搞定!

標籤: CentOS Linux

Sun xVM VirtualBox 1.6.4 Release

VirtualBox 1.6.4 (released 2008-07-30)

This is a maintenance release. The following items were fixed and/or added:

  • AMD-V, VT-x: stability fixes
  • Shared Folders: fixed host crash (Solaris host only, bugs #1336, #1646)
  • Shared Folders: fixed BSOD when debugging with Visual Studio (bug #1627)
  • Shared Folders: fixed BSOD when compiling on a shared folder (bug #1683)
  • Shared Folders: several fixes/stability improvements
  • SATA: fixed a race that could cause an occasional Windows guest system hang
  • SATA: fixed spurious BIOS log messages
  • Networking: fixed NIC tracing with NAT interfaces (bug #1790)
  • USB: fixed crash under certain conditions when unplugging a USB device (bug #1295)
  • Settings: fixed bug when converting 1.5.x settings
  • RDP: fixed enabling the RDP server during runtime
  • RDP: properly detect the rdesktop 1.6.0 RDP client
  • RDP: fixed RDP crash (bug #1521)
  • RDP: updated modified rdesktop client to version 1.6.0
  • GUI: NLS improvements
  • BIOS: added SMBIOS header to make Solaris and Vista recognize the DMI data
  • ACPI: properly hide a disabled floppy controller
  • VMM: small fixes to protected mode without paging
  • VMDK: fixed handling of .vmdk images without UUIDs
  • Windows hosts: fixed driver parameter validation issue in VBoxDrv.sys that could allow an attacker on the host to crash the system
  • Windows hosts: installer now contains web service examples mentioned in the manual
  • Linux hosts: properly deregister the Linux kernel module before uninstalling a Linux deb/rpm package
  • Linux hosts: kernel module works now with Linux 2.6.27
  • Linux hosts: fixed a typo in the vboxnet setup script for host network interfaces (bug #1714)
  • Linux hosts: fixed usage of tar in installer (bug #1767)
  • Linux hosts: fixed long guest shutdown time when serial port is enabled
  • Solaris hosts: refuse to install in Sun xVM hypervisor dom0
  • Solaris hosts: accept Solaris raw disks when for raw disk access
  • Windows additions: made installation of shared folders more robust
  • Windows additions: improved installation
  • Linux additions: accept every user-defined guest video mode in /etc/X11/xorg.conf
  • Linux additions: fixed startup order for recent Linux distributions (e.g. openSUSE 11)

VirtualBox 1.6.2 (released 2008-06-06)

This is a maintenance release. The following items were fixed and/or added:

  • GUI: fixed a bug which prevented to add more than one SATA drive from the GUI
  • GUI: fixed a regression introduced in 1.6.0: the fullscreen mode was left on every guest video mode switch
  • GUI: fixed several minor issues
  • Networking: fixed a host interface networking regression introduced in 1.6.0
  • VMM: fixed starting of VMs with AMD-V enabled
  • VMM: massive performance enhancements for AMD-V
  • VMM: stability improvements for AMD-V on Windows hosts
  • VMM: correctly detect AMD CPUs with erratum 170 (AMD-V)
  • VMM: detect inconsistent timestamp counters on certain AMD Phenom CPUs (Windows host only)
  • VMM: fixed KVM check (Linux hosts only) XPCOM: fixed several races
  • VMM: fixed a regression introduced in 1.6.0: Windows stuck during installation
  • SATA: improved performance with Vista guests
  • SATA: fixed statistics counter
  • Shared Folders: several fixes (iTunes download, speed up browsing)
  • ATA/IDE: fixed boot from CDROM if a medium was added while the boot menu was active
  • Networking: provide an Intel PRO/1000 T Server (82543GC) network device emulation which is recognized by Windows XP guests
  • Networking: fixes for the E1000 emulation (don't crash if not attached, fixed a bug in the statistics counter implementation)
  • NAT: don't crash if the guest sent a DHCPRELEASE message with an invalid IP address
  • NAT: fixed ARP reply for the NAT gateway and for the NAT name server if the guest IP range was changed
  • Internal Networking: fixed shutdown if more than two VMs are connected to the same network
  • BIOS: allow to change the DMI informatiton (see chapter 9.13, Con'guring the BIOS DMI information, page 125)
  • RTC: fixed UIP emulation to prevent jumping of time in Solaris guests
  • Windows host: VirtualBox installation directory corrected for 64 bits Windows
  • Windows host: fixed VBoxVRDP.exe symlink
  • Windows host: solved locking problems in raw partition VMDK support
  • Windows host: fixed stability during high system load (page fault in KeQueryActiveProcessors)
  • MacOS X host: fixed crashes under certain conditions
  • Shared Folders: limited users without admin rights now also can use Shared Folders on Windows guests
  • Linux hosts: fixed default runlevel for the kernel module helper script
  • Solaris hosts: enabled support for VT-x and AMD-V
  • Solaris hosts: dynamic loading of libdlpi fixes a problem where Solaris 10 was not able to start a VM
  • Linux additions: fixed runlevels for kernel module helper scripts
  • Linux additions: compatibility fixes with Linux 2.6.26
  • Linux additions: fixed occasional guest kernel crash during unload of the vboxadd guest kernel module
  • 1