之前為了找可以在Win7上面用的vshadow.exe 找了好久,又是去微軟安裝甚麼SDK,又是去下載了甚麼一堆有的沒的

後來在sourceforge上面找到一個vscsc,本來也是不行的 會發生這樣的錯誤

D:\vscsc-latest\vscsc\x86\winxp>vscsc -q

VSCSC.EXE 2.2 – Volume Shadow Copy Simple Client for Windows XP
This is a modified version of the original Volume Shadow Copy Client
by Microsoft (VSHADOW.EXE), originally bundled with the VSS SDK 7.2
for WinXP/Win2003.
(Option: Query all shadow copies)

Querying all shadow copies in the system …
ERROR: COM call L”m_pVssObject->Query(GUID_NULL, VSS_OBJECT_NONE, VSS_OBJECT_SNA
PSHOT, &pIEnumSnapshots )” failed.
- Returned HRESULT = 0×80042308
- Error text: VSS_E_OBJECT_NOT_FOUND
- Please re-run VSCSC.EXE with the /tracing option to get more details

D:\vscsc-latest\vscsc\x86\winxp>

結果發現在同樣x86目錄底下 還有一個 win2k3的目錄,想說死馬當活馬醫,加減執行看看,沒想到就給他成功了 天啊,這真是太神奇了

D:\vscsc-latest\vscsc\x86\win2k3>vscsc -q

VSCSC.EXE 2.2 – Volume Shadow Copy Simple Client for Windows XP
This is a modified version of the original Volume Shadow Copy Client
by Microsoft (VSHADOW.EXE), originally bundled with the VSS SDK 7.2
for WinXP/Win2003.
(Option: Query all shadow copies)
- Setting the VSS context to: 0xffffffff

Querying all shadow copies in the system …

* SNAPSHOT ID = {fa8798ba-db07-412c-be45-178e1b292b4f} …
   – Shadow copy Set: {e6857592-3b00-4a3f-a63c-3c4e17679f43}
   – Original count of shadow copies = 2
   – Original Volume name: \\?\Volume{ffa032c1-9f8a-11df-9eb8-806e6f6e6963}\ [C:
\]
   – Creation Time: 2010/8/15 ?? 07:00:13
   – Shadow copy device name: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy6
   – Originating machine: V2S-PC
   – Service machine: V2S-PC
   – Not Exposed
   – Provider id: {b5946137-7b9f-4925-af80-51abd60b20d5}
   – Attributes:  No_Auto_Release Persistent Client_accessible Differential

* SNAPSHOT ID = {016e816e-02ae-4800-a951-bd3bb24df64c} …
   – Shadow copy Set: {22ba9b3f-d47a-4ba7-a85d-b26d6ae94402}
   – Original count of shadow copies = 2
   – Original Volume name: \\?\Volume{ffa032c1-9f8a-11df-9eb8-806e6f6e6963}\ [C:
\]
   – Creation Time: 2010/8/17 ?? 02:48:25
   – Shadow copy device name: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy11
   – Originating machine: V2S-PC
   – Service machine: V2S-PC
   – Not Exposed
   – Provider id: {b5946137-7b9f-4925-af80-51abd60b20d5}
   – Attributes:  No_Auto_Release Persistent Client_accessible Differential

不過感覺使用上還是有點問題 還是要多測試看看才知道到底能不能用在辦公室環境..

Download Link :  vscsc

  • Share/Bookmark
Tags Categories: 工作筆記, 未分類 Posted By: chchang
Last Edit: 18 Aug 2010 @ 01 21 PM

EmailPermalinkComments (0)

crontab -e 的預設編輯器是用vi

問題是vi 不支援中文字啊!!

所以想把編輯器改成 vim

BASH:

修改 ~/.profile

加入

export EDITOR=/usr/local/bin/vim

重新登入後就生效了。

  • Share/Bookmark
Tags Categories: 未分類 Posted By: chchang
Last Edit: 30 Jul 2010 @ 10 13 AM

EmailPermalinkComments (0)

  • Share/Bookmark
Tags Categories: 未分類 Posted By: chchang
Last Edit: 30 Jun 2010 @ 10 32 PM

EmailPermalinkComments (0)

Outlook 2010 的介面

Outlook 2003

Outlook 2003 介面

  • Share/Bookmark
Tags Categories: 未分類 Posted By: chchang
Last Edit: 13 Jul 2010 @ 02 45 PM

EmailPermalinkComments (0)

錯誤訊息

[13/May/2010:08:57:13] /bin/cp -al /rz/NAS500/.snapshots/daily.0 /rz/NAS500/.snapshots/daily.1
[13/May/2010:08:57:13] /usr/local/bin/rsync -avzPbu –relative –rsh=”/usr/bin/ssh -o” ‘root@192.168.10.203:/mnt/管理部/’ /rz/NAS500/.snapshots/daily.0/./
[13/May/2010:08:57:13] /usr/local/bin/rsnapshot daily: ERROR: /usr/local/bin/rsync returned 255 while processing ‘root@192.168.10.203:/mnt/管理部/’
[13/May/2010:08:57:13] touch /rz/NAS500/.snapshots/daily.0/
[13/May/2010:08:57:13] rm -f /var/run/rsnapshot.pid
[13/May/2010:08:57:13] /usr/local/bin/rsnapshot daily: ERROR: /usr/local/bin/rsnapshot daily: completed, but with some errors

執行rsnapshot daily 的時候,會出現 Bad configuration option: -l 這樣的錯誤

需要自己去rsnapshot.conf 加入 rsync 還有ssh 的參數才行

rsync_short_args        -avzPbu
rsync_long_args –relative

  • Share/Bookmark
Tags Categories: 未分類 Posted By: chchang
Last Edit: 13 May 2010 @ 08 35 AM

EmailPermalinkComments (1)
 23 Feb 2010 @ 11:12 AM 

今天碰到兩台電腦的時間都無端改成2032年!?

但是檢查了一下系統,似乎也還好,沒有什麼病毒的跡象

先觀察看看好了,GOOGLE上也還沒有類似狀況發生。

  • Share/Bookmark
Tags Categories: 未分類 Posted By: chchang
Last Edit: 23 Feb 2010 @ 11 27 AM

EmailPermalinkComments (0)

本來在找能夠在Linux 上對Client端電腦作snapshot 備份的軟體,發現了這套FOG

簡單來說就是有中央管理機制的Freesource Ghost like 軟體。

利用PXE Boot 的方式,把CLIENT做成一個IMAGE來備份。

安裝的過程不難,只要依照提示回答一些問題。

裝好的畫面大概長這樣

接著的步驟就是

新增Image (第五個圖示)

先建立一個image ,之所以要在這邊先建立,是因為等下要建立HOST的時候會用到。

新增一台電腦 (Host,一台電腦那個圖示),填入受管理電腦的hostname 、IP、MAC、歸屬的Image種類。

接著就可以到星星那個圖示(task)去建立工作。

Deplay 是指由SERVER發送IMAGE到CLIent端

Upload 是指由Client 製作Image到Server端

到TASK建立好工作之後,把CLIENT端REBOOT,然後選擇由PXE開機(或者是Network boot ),就會看到Client端開始進行備份了!

使用心得

1.這跟我的需求不同,我不想用offline backup 的軟體,那樣會造成USER的抱怨。最好是能夠在ONLINE的狀態下,連OPENFILE(outlook PST)都能夠直接以SNAPSHOT的方式作備份,不過目前還沒找到有這樣功能的軟體就是了 0rz

2.在做Image Upload 的時候,我用來測試的NB(HP 6535B )不知道為啥就當掉了,有看到在作IMAGE的畫面,但是進度停在9.X % 就不動了,按取消也沒反應!

所以,基本上,這套大概只是拿來玩玩吧 ,該是不會作為正式使用!

  • Share/Bookmark
Tags Categories: 未分類 Posted By: chchang
Last Edit: 21 Jan 2010 @ 10 33 AM

EmailPermalinkComments (0)

/r0 是四顆SCSI硬碟作stripe

/tmp 是兩顆SCSI硬碟作mirror

奇怪的是,當檔案大到16G的時候,兩個磁碟的效能都變的很糟糕!?

1G dd file test
[root@un ~]# dd if=/dev/zero of=/tmp/testfile bs=100M count=10
10+0 records in
10+0 records out
1048576000 bytes (1.0 GB) copied, 20.6009 s, 50.9 MB/s
[root@un ~]# dd if=/dev/zero of=/r0/testfile bs=100M count=10
10+0 records in
10+0 records out
1048576000 bytes (1.0 GB) copied, 9.68572 s, 108 MB/s
2G dd file test
[root@un ~]# dd if=/dev/zero of=/tmp/testfile bs=200M count=10
10+0 records in
10+0 records out
2097152000 bytes (2.1 GB) copied, 44.9517 s, 46.7 MB/s
[root@un ~]# dd if=/dev/zero of=/r0/testfile bs=200M count=10
10+0 records in
10+0 records out
2097152000 bytes (2.1 GB) copied, 19.8191 s, 106 MB/s
4G
[root@un ~]# dd if=/dev/zero of=/tmp/testfile bs=400M count=10
10+0 records in
10+0 records out
4194304000 bytes (4.2 GB) copied, 209.133 s, 20.1 MB/s
[root@un ~]# dd if=/dev/zero of=/r0/testfile bs=400M count=10
10+0 records in
10+0 records out
4194304000 bytes (4.2 GB) copied, 39.3797 s, 107 MB/s
[root@un ~]#
8G
[root@un ~]# dd if=/dev/zero of=/tmp/testfile bs=800M count=10
10+0 records in
10+0 records out
8388608000 bytes (8.4 GB) copied, 236.256 s, 35.5 MB/s
[root@un ~]# dd if=/dev/zero of=/r0/testfile bs=800M count=10
10+0 records in
10+0 records out
8388608000 bytes (8.4 GB) copied, 97.5772 s, 86.0 MB/s
[root@un ~]#
16G
慢到受不了,所以中斷掉
[root@un ~]# dd if=/dev/zero of=/tmp/testfile bs=1600M count=10

^C5+1 records in
5+0 records out
8388608000 bytes (8.4 GB) copied, 3375.93 s, 2.5 MB/s

  • Share/Bookmark
Tags Categories: 未分類 Posted By: chchang
Last Edit: 18 Jan 2010 @ 11 24 AM

EmailPermalinkComments (2)

draft only

  • download grubinst-1.1-bin-w32-2008-01-01、grub4dos-0.4.4
  • 執行grubinst_gui.exe ,寫入隨身碟


  • format USB Stick with FAT filesystem (not necessary)
  • download 8.0 memstick 
  • download dd for windows
  • unzip dd for windows , dd –list to find out USB Stick (something like this) 要多加比對,確定找出正確的磁碟機代號

\\?\Device\CdRom1
  size is 2147483647 bytes
\\?\Device\Harddisk0\Partition0
  link to \\?\Device\Harddisk0\DR0
  Fixed hard disk media. Block size = 512
  size is 60011642880 bytes
\\?\Device\Harddisk0\Partition1
  link to \\?\Device\HarddiskVolume1
\\?\Device\Harddisk0\Partition2
  link to \\?\Device\HarddiskVolume2
\\?\Device\Harddisk1\Partition0
  link to \\?\Device\Harddisk1\DR3
  Removable media other than floppy. Block size = 512
  size is 252968960 bytes
\\?\Device\Harddisk1\Partition1
  link to \\?\Device\Harddisk1\DP(1)0-0+4
  Removable media other than floppy. Block size = 512
  size is 252917248 bytes
\\?\Device\Harddisk3\Partition0
  link to \\?\Device\Harddisk3\DR7
  Fixed hard disk media. Block size = 512
  size is 40007761920 bytes
\\?\Device\Harddisk3\Partition1
  link to \\?\Device\HarddiskVolume3

dd if=i:\iso\8.0-RELEASE-i386-memstick.img of=\\?\Device\Harddisk2\Partition0 bs=10240 –progress

  • 拿去開機測試看看吧
  • 不確定是不是在dd之前,要先把grub.exe menu.lst放進去,我記得這次是沒有放啦,就先grubinst然後就跑dd就OK了。不過剛剛第一次作的時候,就失敗了 0rz.

參考:

Writing FreeBSD memstick.img to a USB drive in Windows

  • Share/Bookmark
Tags Categories: 未分類 Posted By: chchang
Last Edit: 05 Jan 2010 @ 03 28 PM

EmailPermalinkComments (0)

draft only
1.install cwRsync on WinXP
2.edit rsyncd.conf in WinXP

#備份c:\work目錄
[test]
path = /cygdrive/c/work
read only = false
transfer logging = yes
#備份整個 C:\
[c]
path = /cygdrive/c/
read only = false
transfer logging = yes
#備份Outlook 目錄
[outlook]
path = /cygdrive/d/outlook
read only = false
transfer logging = yes

3. rsync -avl 192.168.10.86::c backup_6535b/
avl means
–archive               archive mode;
-l, –links                 copy symlinks as symlinks
-v, –verbose               increase verbosity
以備份XP來說, -l 似乎可以不需要,但要再加上 -r
-r, –recursive             recurse into directories

4. 唉,殘念! rsync 無法備份 openfile !!會出現這樣的錯誤!!

bsd8# rsync -avl 192.168.10.86::outlook backup_6535b/
receiving incremental file list
./
test.pst
WARNING: test.pst failed verification — update discarded (will try again).
rsync: read errors mapping “test.pst” (in outlook): Permission denied (13)
test.pst
ERROR: test.pst failed verification — update discarded.
rsync: read errors mapping “test.pst” (in outlook): Permission denied (13)

sent 2516 bytes  received 1083 bytes  799.78 bytes/sec
total size is 65536  speedup is 18.21
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1505) [generator=3.0.6]
bsd8#

  • Share/Bookmark
Tags Categories: 未分類 Posted By: chchang
Last Edit: 04 Jan 2010 @ 01 55 PM

EmailPermalinkComments (0)
\/ More Options ...
Change Theme...
  • Users » 2
  • Posts/Pages » 361
  • Comments » 67
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight