Wednesday, November 09, 2011

Bare Metal backup at Windows 2008

Using WBADMIN to crate bare metal backup windows 2008

wbadmin start backup -include:c:,d:,e: -backupTarget:\\SERVER\SHARE -allcritical -quiet

Done

Wednesday, November 02, 2011

Backup and restore With WBAdmin

To script the backups, you'll need to create a batch file and use the wbadmin start backup command. For a list of the options you can use with wbadmin, you can go to the command prompt and type in, "wbadmin start backup -help".

A sample command you'll use will be:

wbadmin start backup -include:c:,d:,e: -backupTarget:\\SERVER\SHARE -quiet

wbadmin start systemstatebackup -backupTarget:\\share\share:

This example shows you how to backup C:, D: and E: drives and backup systemstate - but of course, you should customize this parameter to suit your system.

Optionally, you can use the -user and -password options to explicitly specify the username and password to use when connecting to the share.

Save this batch file to disk - for example, C:\Users\Administrator\Desktop\RunBackup.bat

Note: you should run the file interactively from the command prompt so that you can test running your script before scheduling it.

To perform a system state recovery of the backup from 04/30/2005 at 9:00 A.M. that is stored on the shared resource \\servername\share for server01, type:

wbadmin start systemstaterecovery -version:04/30/2005-09:00 -backupTarget:\\servername\share -machine:server01

Disable Offline Address Book Outlook 2007

Manually Change Offline Address Book Settings

You can manually edit your Registry and configure the following key to DISABLE the Offline Address Book (note that you will need to create the "Cached Mode" Registry key if it is not already present):
Outlook 2007

HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Outlook\Cached Mode
Parameter: DownloadOAB
Type: REG_DWORD
Value: 0

Outlook 2003

HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Cached Mode
Parameter: DownloadOAB
Type: REG_DWORD
Value: 0

At this point, Outlook will no longer automatically download the offline address book. However, if you click the "Send/Receive" button within Outlook, by default it will reset your offline address book setting - in effect it re-enables the offline address book. To prevent this from happening, complete the following steps.
Open Outlook
Go to "Tools" > "Send/Receive" > "Send/Receive Settings" > "Define Send/Receive Groups"
Highlight the group "All Accounts" and click "Edit"
In Outlook 2007, check the "Include the selected account in this group" checkbox
Uncheck the "Download offline address book" checkbox
Click "OK"
Click "Close"

Tuesday, November 01, 2011

Install Hyper-V on Windows server 2008

Step 1: Install Hyper-V
You can use Server Manager to install Hyper-V.
To install Hyper-V
1. Update to windows server 2008 SP2
2. Click Start, and then click Server Manager.
3. In the Roles Summary area of the Server Manager main window, click Add Roles.
4. On the Select Server Roles page, click Hyper-V.
5. On the Create Virtual Networks page, click one or more network adapters if you want to make their network connection available to virtual machines.
6. On the Confirm Installation Selections page, click Install.
7. The computer must be restarted to complete the installation. Click Close to finish the wizard, and then click Yes to restart the computer.
8. After you restart the computer, log on with the same account you used to install the role. After the Resume Configuration Wizard completes the installation, click Close to finish the wizard.

Monday, October 31, 2011

OAB get prompting password

If you have enabled web-based publishing of your Offline Address Book (OAB) and your Outlook users get continuously prompted to enter their passwords, you need to check a couple of things:

Make sure Autodiscover is working perfectly before you made the OAB change.
Hold down the CTRL button and right click on the Outlook icon on the task bar, then select Test Email Autoconfiguration. Unselect GuessSmart and Secure GuessSmart and keep Use Autodiscover selected. On the Log tab, make sure Autodiscover is successful and that it was able to bind to an SCP.
Make sure that the autodiscover.domain.com entry is added to your certificate’s Subject Alernative Names list.
If you are facing problems with Autodiscover, you should correct that first before attempting the steps mentioned below.
Make sure that you have defined the External and Internal URLs for the OAB virtual directory in your client access server.

Once you have made sure that Autodiscover is working OK, and that the credentials are being prompted for the OAB URL (and not the mailbox server), you need to check the IIS Authentication setting on the client access server.

On the Client Access Server running Windows Server 2008, open IIS Manager console.
Click on Default Web Site
Open Authentication
Note that only Anonymous Authentication is enabled. All other authentication methods should be disabled.
Temporarily enable Windows Authentication
Right click on Windows Authentication and choose Advanced Settings
Uncheck Enable Kernel Mode Authentication and click OK
Disable Windows Authentication
Do an IISRESET

OverAdvertisedSize; message size exceeds fixed maximum size

To use ADSI Edit to modify the global message size limits

1. If it is necessary, install the Microsoft Windows Support Tools. For detailed instructions, see Install Windows Support Tools.

2. Click Start, and then select Run. In the Open field, type C:\Program Files\Support Tools\Adsiedit.msc, and then click OK.

3. Open ADSI Edit, expand Configuration, and then expand CN=Configuration..., expand CN=Services, expand CN=Microsoft Exchange, expand CN=, and then select CN=Global Settings.

4. In the result pane, right-click CN=Message Delivery, and then select Properties.

5. In CN=Message Delivery Properties, select the Attribute Editor tab. In the Attributes section, locate the following attributes:
delivContLength This is the incoming message size limit that corresponds to the MaxReceiveSize parameter in the Set-TransportConfig cmdlet.
submissionContLength This is the receiving message size limit that corresponds to the MaxSendSize parameter in the Set-TransportConfig cmdlet.
msExchRecipLimit This is the maximum number of message recipients that corresponds to the MaxRecipientEnvelopeLimit parameter in the Set-TransportConfig cmdlet.

6. To modify an attribute, select the attribute, and then click Edit. We recommend that you set each global message size limit to match the value of the corresponding organization message size limit. In the Integer Attribute Editor, perform one of the following actions:
To remove the global message size limit, select Clear, and then click OK. The value of the attribute will be .
To enter value for a specific global message size limit, in the Value field, type the value, and then click OK. Valid input values are as follows:
delivContLength Valid input for this parameter is 0 to 2097151 KB. The default value is 10240 KB.
submissionContLength Valid input for this parameter is 0 to 2097151 KB. The default value is 10240 KB.
msExchRecipLimit Valid input for this parameter is 0 to 2147483647 recipients. The default value is 5000 recipients.

Repeat step 6 for each global message size limit that you want to modify.

7. To close CN=Message Delivery Properties, click OK and then click File, Exit to close ADSI Edit.

From: http://technet.microsoft.com/en-us/library/bb310771.aspx

Thursday, January 20, 2011

Merubah ukuran hardisk ISCSI

1. umount volume (umount /dev/sdxx)
2. restart iscsi initiator (/etc/init.d/open-iscsi restart)
3. jalankan parted (parted /dev/sdx
4. ganti tampilan unit ke sector (unit s)
5. print table partisi dan catat awal sector dan total sector (p)
6. remove partisi yang ada (rm number)
7. create partisi baru dengan awal sector sama dengan diatas: mkpart primary
8. keluar (quit)
9. cehck file system (e2fsck -f /dev/sdxx)
10 rubah ukuran files ystem ( sudo resize2fs /dev/sdxx)

selamt mencoba

Wednesday, January 19, 2011

SSH dan Rsync

1. On host_src, run this command as the user that runs scp/ssh/rsync

$ ssh-keygen -t rsa

This will prompt for a passphrase. Just press the enter key. It'll then generate an identification (private key) and a public key. Do not ever share the private key with anyone! ssh-keygen shows where it saved the public key. This is by default ~/.ssh/id_rsa.pub:

Your public key has been saved in /.ssh/id_rsa.pub

2. Transfer the id_rsa.pub file to host_dest by either ftp, scp, rsync or any other method.

3. On host_dest, login as the remote user which you plan to use when you run scp, ssh or rsync on host_src.
4. Copy the contents of id_rsa.pub to ~/.ssh/authorized_keys

$ cat id_rsa.pub >>~/.ssh/authorized_keys
$ chmod 700 ~/.ssh/authorized_keys

If this file does not exists, then the above command will create it. Make sure you remove permission for others to read this file. If its a public key, why prevent others from reading this file? Probably, the owner of the key has distributed it to a few trusted users and has not placed any additional security measures to check if its really a trusted user.
5. Rsync: synchronizing remote folders with a local machine
rsync -va user@remoteserver:/home/user/* /home/backup/user

Friday, January 14, 2011

Setting koneksi ke HP Lefthand dengan open-iSCSI di Ubuntu 10.10 *

1. di ubuntu 10.10
a. instal package open-iscsi (sudo apt-get install open-iscsi)
b. baca dan catat inititator name di /etc/iscsi/initiatorname.iscsi
ini akan di gunakan untuk membuat koneksi di lefthand

2. di Lefhand

a. Add new server dengan mengunakan initiator name tanpa passowrd.
b. buat volume dan assign ke server yang kita buat di point a.
3 di ubuntu

a. edit file /etc/iscsi/iscsid.conf
[...]
node.startup = automatic
[...]
b. Koneksi ke target (iscsiadm -m discovery -t st -p 192.168.0.1)
c. Login ke target (iscsiadm -m node --targetname "iqn.2003-10.com.lefthandnetworks:ecogreen:110:vol-ubuntu" --portal "192.168.0.1:3260" --login)
d. check harddisk > sudo Fdisk -l
dan akan terlihat tambahan hardisk (/dev/....)
e. format (mkfs.ext4 /dev/sdb1)
f. Mounting (sudo mount /dev/sdb1 /iSCSI


* catatan dari pengalaman membuat koneksi ke lefhand.