WalangMagawa
Tuesday, December 1, 2015
Thursday, November 26, 2015
Wednesday, November 25, 2015
BackupPC
BackupPC
Backups don't work; how do I fix this?
The BackupPC_dump command has a -v option, so the easiest way to debug backup problems on a specific host is to run BackupPC_dump manually as the BackupPC user:
su __BACKUPPCUSER__ __INSTALLDIR__/bin/BackupPC_dump -v -f hostName
This will run a full dump on hostName (replace with your host name) and will print all the output from each command, including the log output.
The most likely problems will relate to connecting to the smb shares on each host. On each failed backup, a file __TOPDIR__/pc/$host/XferLOG.bad.z will be created. This is the stderr output from the transport program. You can view this file via the CGI interface, or manually uncompress it with;
__INSTALLDIR__/bin/BackupPC_zcat __TOPDIR__/pc/$host/XferLOG.bad.z | more
The first line will show the full command that was run (eg: rsync, tar or smbclient). Based on the error messages you should figure out what is wrong. Possible errors on the server side are invalid host, invalid share name, bad username or password. Possible errors on the client side are misconfiguration of the share, username or password.
You should try running the command manually to see what happens. For example, for smbclient you should it manually and verify that you can connect to the host in interactive mode, eg:
smbclient '\\hostName\shareName' -U userName
shareName should match the $Conf{SmbShareName} setting and userName should match the the $Conf{SmbShareUserName} setting.
You will be prompted for the password. You should then see this prompt:
smb: \>
Verify that ``ls'' works and then type ``quit'' to exit.
#################################################
sudo tar --preserve-permissions --preserve-order --verbose -x -f pps.tar
References:
http://backuppc.sourceforge.net/faq/BackupPC.html
http://backuppc.sourceforge.net/faq/debugXfer.html
http://adsm.org/lists/html/BackupPC-users/2010-04/msg00229.html
his
To copy a complete store (ie: /var/lib/backuppc) using BackupPC_tarPCCopy you should:
- stop BackupPC so that the store is static.
- copy the cpool, conf and log directory trees using any technique (like cp, rsync or tar) without the need to preserve hardlinks.
- copy the pc directory using BackupPC_tarPCCopy:
su backuppc cd NEW_TOPDIR mkdir pc cd pc /usr/share/backuppc/bin/BackupPC_tarPCCopy /var/lib/backuppc/pc | tar xvPf -
irri@backuppc2:/usr/share$ locate BackupPC_zipCreate
/usr/share/backuppc/bin/BackupPC_zipCreate
¬¬~
sudo Backuppc_zipCreate -h virriadfs -n -1 -c 3 "-s f /gis1" > /home/irri/gis1.zip
sudo /usr/share/backuppc/bin/BackupPC_zipCreate -h virriadfs -n -1 -c 3 "-s f /gis1" > /home/irri/gis1.zip
/usr/share/backuppc/bin/BackupPC_zipCreate -h virriadfs -n -1 -c 3 "-s f /gis1" > gis1.zip
/usr/share/backuppc/bin/BackupPC_zipCreate -h virriadfs -n -1 -c 3 -s gis1 / > /tmp/gis1.zip
/usr/share/backuppc/bin/BackupPC_zipCreate -h irriad1 -n -2 -c 3 -s elyt / > /tmp/elyt.zip
/usr/share/backuppc/bin/BackupPC_zipCreate -h virriadfs -n -1 -c 3 -s abcd / > /tmp/abcd.zip
/var/lib/backuppc/pc/virriadfs/94/fF$/fGIS1
/usr/share/backuppc/bin/BackupPC_tarCreate -h virriadfs -n -189 -s "fF$/fGIS1 /" > /tmp/gis1.tar
/usr/share/backuppc/bin/BackupPC_tarCreate -h virriad1 -n -189 -s / / > /tmp/gis1.tar
Conf{SmbClientIncrCmd} = '$smbClientPath \\\\irriad1\\elyt'
/usr/share/backuppc/bin/BackupPC_tarCreate -t -h virriadfs -n 94 -s F$ / > /tmp/gis1.tar
/usr/share/backuppc/bin/BackupPC_tarCreate -h virriadfs -n 90 -s F$ / > /var/lib/backuppc/nanie/pps.tar
500 sudo su -
501 cd /var/lib
502 ls
503 ls -lah
504 history
505 history | grep chown
506 sudo chown backuppc backuppc/
507 history | grep init.d
508 history | grep ps
509 ps aux|grep backuppc
510 history | grep ps
511 history | grep init.d
512 sudo /etc/init.d/backuppc stop
513 history | grep config
514 cd /etc/baackuppc
515 cd /etc
516 cd backuppc
517 ls -lah
518 ls -lah con*
519 cp -Rf config.pl config.org
520 sudo cp -Rf config.pl config.org
521 ls -lah con*
522 history | grep init.d
523 sudo /etc/init.d/backuppc start
524 history
irri@backuppc2:/etc/backuppc$
Friday, November 13, 2015
My New Pal in Scripting World "PLINK"
My New Pal in Scripting World "PLINK"
example: Tested working:
C:\>echo y | plink -v root@ACCesxvmh79 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmhdr54 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmhdr53 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmhdr51 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmhdr52 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmh24 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmh25 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmh22 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmh26 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmh27 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmh28 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmh30 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmh29 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmh33 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmh32 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmh11 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmh12 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmh13 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmh34 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmh19 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmh20 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmh14 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmh15 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmhdr55 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmh23 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
s /ISO_REPO"
echo y | plink -v root@ACCesxvmhdr53 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmhdr51 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmhdr52 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmh24 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmh25 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmh22 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmh26 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmh27 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmh28 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmh30 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmh29 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmh33 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmh32 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmh11 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmh12 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmh13 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmh34 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmh19 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmh20 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmh14 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmh15 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmhdr55 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
echo y | plink -v root@ACCesxvmh23 -pw 8ullshit "esxcfg-nas -a ISO_REPO -o 10.101.8.66 -s /ISO_REPO"
s /ISO_REPO"
Thursday, November 12, 2015
Sunday, April 19, 2015
Manual Change date and time in DM500s
Manual Change date and time in DM500s
Got it sorted. For anyone with same problem I set it using telnet with the following
date -s YYYY.MM.DD-hh:mm:ss
Wednesday, February 25, 2015
My 250 Watts Grid Tie System Cost Analysis
My 250 Watts Grid Tie System Cost Analysis
Monthly Output based on 5 Sun hours per day = 33.75 KWH
250 watts
250 watts x 4.5 average sun hours x 30 days = 33.75 KWH
or
@ 250w on grid you will get 250w x5hrs of sun exposure x 90 % effc . =1125w/day at 1125 watts x 30days
=33750 watts H or 33.75KWH
we do: 5 kWp x 4.5 average sun hours x 30 days = 675kWh per month
or
@ 5000w on grid you will get 5kw x5hrs of sun exposure x 90 % effc . =22.5 kwh/day at 22.5kwh/dayx30days
=675kwh..
###########################################Return on Investment ROI
ROI = (Gains – Cost)/Cost X 100
Cost = P20,000
Gains= 33.75 kwh x 12 months x P11.22 kwh(
Effective Rate for Residential Customer)
Gains = P4,544 in one yearNumber of Months:
Cost = P20,000
X= Cost / 33.75 kwh x P11.22 kwh = P20,000 / 33.75 kwh x P11.22 kwh =
= P20,000 / 378.675 = 52.81 Months or 4 years and 4 months
Break even = 4 years and 4 months
ROI in 5 years:
ROI = (Gains – Cost)/Cost X 100 = ( 5 years ( P4,544 ) - P 20,000 ) / P 20,000 X 100
= 13.6 %
#################################################################
Reference:
http://eastgreenfields.blogspot.com/2013/07/micro-grid-tie-installation-in-250-kw.html
http://www.wholesalesolar.com/gridtie.html
http://jwilson.coe.uga.edu/EMAT6450/Class%20Projects/Major/Teacher's%20Guide%20ROI.pdf
http://www.kuryente.org.ph/electric-company/rates/128/2015/february
################################################################
Batterry AH computation and PV panel ratio:
Para sa 4 pcs na 100w
100W x 4 = 400W
400W x 4H = 1600 WH
1600 WH / 12V = 1600 HIV / 12V = 133.33IH = 133.33 AH
saan galing yung HIV? sa P=IE = IV.
Kung 1 pc lang na 100w
100W x 4H = 400WH
400WH ÷ 12V = 33.33AH x 2 = 66.66AH
Safe na sa 70AH yung 100W na panel na isa lang
pero x2 yung 133.33 AH kung hanggang 50% DoD lang ang gagamitin mo sa battery mo. yung computation kasi na yan
from 0% to 100% yung battery. so 266.66 AH ang sapat. dagdagan mo pa ng isang panel and safe ka na sa 300 AH
battery at 500w na panels
Safe n set up ay 2:1 ratio
AC Fans 60 watts, 4 hrs use = 240 watt-hr
REF 150 watts, 4 hrs use = 600 watt-hr
32 in LED TV 60 watts, 4 hrs use = 240watt-hr
3 x 5 watts LED bulb, 9 hrs use = 135 watt-hr Total Load = 1215 watt-hr
@ 12V System: Battery Reqt : 1215watt-hr / 12V = 101.25AH x2 (for 50% DOD) = 202.5 AH
Panel Reqt : 1215watt-hr / 0.7 (efficiency factor) x 4.5 (hrs of sunlight exposure) = 385watts
You need about 200AH battery and 400watts panel
Subscribe to:
Posts (Atom)