Friday, November 12, 2010
Say you have a raid5 volume of 3×500GB disks with an effective space of ~1TB.
You plug out 1 disk, swap it with a 1TB disk and let the areca rebuild the array.
You do the same for disk 2 and 3.
You’d probably think you’ll have an extra TB to use. But the areca won’t show you. Here’s how (undocumented feature):
- Login the browser management console (Raidset Functions > Rescue RaidSet)
- Enter the keyword “RESETCAPACITY Raid Set # 000”, confirm and submit. After that, controller will reconfigure the raidset capacity.
- Create an extra logical drive on the raidset
Thursday, November 11, 2010
To renew a self-signed ssl certificate on an Exchange 2007 server:
Start the Exchange Management Shell, then:
Get-ExchangeCertificate -DomainName CAS01.contoso.com
Find the certificate that contains a “W” from the list of certificates For example, select IP.WS. The “W” indicates that the certificate is assigned to IIS.
Then to clone the certificate, run the following cmdlet (the thumbprint is unique):
Get-ExchangeCertificate -Thumbprint c4248cd7065c87cb942d60f7293feb7d533a4afc | New-ExchangeCertificate
The new cloned certificate will then be stamped with a new expiration date one year after the date you run the cmdlet.
And last but not least: assign the certificate to a service:
Enable-ExchangeCertificate -Thumbprint c4248cd7065c87cb942d60f7293feb7d533a4afc -Service IIS
Tuesday, November 9, 2010
If you attach an extra harddisk to your virtual machine and you don’t want to reboot, all you need to do is rescan your scsi bus.
First determine how many scsi adapters your system has:
# ls /sys/class/scsi_host
host0
Then order the rescan command to the adapter:
# echo "- - -" > /sys/class/scsi_host/host0/scan
Check your dmesg or /proc/partitions!
Monday, November 8, 2010
I needed to make a backup of an old server. So i booted an Ubuntu live cd. Then:
cat /proc/partitions
But I wasn’t able to mount certain partitions. It appeared to be lvm volumes.
To mount them, you’ll need the lvm2 package first.
sudo -s
apt-get update
apt-get install lvm2
Then find the volumes.
vgchange -a y
3 logical volume(s) in volume group "VolGroup00" now active
Now look in your device mapper:
ls /dev/mapper/
.. and do whatever you like with it. In my case:
mkdir /mnt/vol00
mkdir /mnt/vol01
mkdir /mnt/vol02
mount /dev/mapper/VolGroup00-LogVol00 /mnt/vol00
mount /dev/mapper/VolGroup00-LogVol01 /mnt/vol01
/dev/mapper/VolGroup00-LogVol01 looks like swapspace - not mounted
root@ubuntu:~# mount /dev/mapper/VolGroup00-LogVol02 /mnt/vol02
apt-get install smbfs
mkdir /mnt/targetserver/
smbmount //10.2.18.224/software /mnt/targetserver/
mkdir /mnt/targetserver/serverbackup/
cd /mnt
rsync -av vol00 vol02 /mnt/targetserver/
Tuesday, November 2, 2010
I’m always googling for this. What was that thing again that logs all output to a file?
2>&1
Bash example:
root@ubuntu:/mnt/sda6# rsync -av * /mnt/backup/sda6/ >/mnt/backup/readrrors.txt 2>&1
Dos example:
copy backup.log \\nas\share\weeklog.txt >output.txt 2>&1
Monday, November 1, 2010
In addition to the import procedures, here’s how to export to .pst files:
Add an import to the queue:
New-MailboxExportRequest -Mailbox p.puk -FilePath "\\FS01\data\Backup Mailbox (PST)\p.puk.pst"
And status:
Get-MailboxExportRequest
“Have you ever copied some text from a web page or a document and then wanted to paste it as simple text into another application without getting all the formatting from the original source? PureText makes this simple by adding a new Windows hot-key (default is WINDOWS+V) that allows you to paste text to any application without formatting.”
Download this 13KB utility here!