Archive

Archive for September, 2011

Colocation Specs: Bandwidth, server factor, Ip subnets

September 15, 2011 Leave a comment

Bandwidth

A 10Mbps connection relates to approximately 3.3 Terabytes of bandwidth monthly.

Burstable connections,  normally measured on the 95th percentile.

To determine estimated monthly bandwidth for your site, first determine the page size for each page of your website, then estimate how many daily pageviews you project for each. Simply multiply to estimate monthly bandwidth forecasted, allowing for some overhead.


Rack Space

1U = 1.75″ of Vertical Rack Space

2U = 3.5″ of Vertical Rack Space

3U = 5.25″ of Vertical Rack Space

4U = 7.00″ of Vertical Rack Space.

IP Subnets


/30…..4 IP’s – 2 useable   255.255.255.252

/29…..8 IP’s – 6 useable  255.255.255.248

/28…..16 IP’s  255.255.255.240

/27…..32 IP’s 255.255.255.224

/26…..64 IP’s 255.255.255.192

/25…..128 IP’s 255.255.255.128

/24…..256 IP’s 255.255.255.0

/23…..512 IP’s  255.255.254.0

/22…..1024 IP’s 255.255.252.0

/21…..2048 IP’s 255.255.248.0

/20…..4096 IP’s 255.255.240.0

Advertisements
Categories: Web Dev Tags: , ,

Setup Samba on Ubuntu

September 15, 2011 Leave a comment

1.To install, first open a terminal window and enter the following command:

sudo apt-get install samba smbfs
sudo gedit /etc/samba/smb.conf

2. Find this section in the file:

####### Authentication #######

# “security = user” is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba-HOWTO-Collection/ServerType.html
# in the samba-doc package for details.
;  security = user

3. uncomment the “sercurit = user” like this

####### Authentication #######

# “security = user” is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba-HOWTO-Collection/ServerType.html
# in the samba-doc package for details.
security = user

5.Lock user in their home directory(You may skip this, if it’s not needed).

[homes]
   comment = Home Directory
   read only = No
   browseable = No
   valid users = %S

6.Add share dictorey(You may skip this, if it’s not needed):

[Shared]
   comment = Global Share - All Users
   path = /samba/shared
   read only = No
   guest ok = Yes
   public = Yes
   browseable = Yes
   create mask = 0666
   directory mask = 0777

7.Create a User for samba(You can skip this step if you already have the user created in linux)

adduser theUserNameYouWant

8.then we need to run the smbpasswd utility to create a samba password for the user.

sudo smbpasswd -a theUserNameYouCreated

9. Restart your samba service by using following command:

sudo /etc/init.d/smb restart

*** For more detailed reference please visit: http://www.brennan.id.au/18-Samba.html

Categories: Linux Tags: ,

How to add an additional hard drive to Xenserver

September 9, 2011 Leave a comment

1. Login the server as root. list all available physical disk with command “fdisk -l”

Here is my output:

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 523 4194304 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 523 1045 4194304 83 Linux
/dev/sda3 1045 19457 147899713 8e Linux LVM

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdb doesn't contain a valid partition table

2. The new drive i need to add to the host is /dev/sdb in my case.
Let’s get the UUID of your xenserver by using this command “xe host-list”
You should see something like this:

uuid ( RO) : 4fd93ca2-2f60-4387-9fb0-b8abc34b7526
name-label ( RW): xenserver-lgsgdjzo
name-description ( RW): Default install of XenServer

3. Create a new XenServer storage repository by using the  one of the following options(Make sure you use your own uuid instead of my):
Option1:create a normal LVHD storage repository. This is by the way the default storage repository type. (The following code should be typed in one line in your terminal)

xe sr-create host-uuid=4fd93ca2-2f60-4387-9fb0-b8abc34b7526
content-type=user type=lvm device-config:device=/dev/sdb 
shared=false name-label="Local storage 2"

Option2:Create a LVHD storage repository with thin provisioning support.(The following code should be typed in one line in your terminal)

xe sr-create host-uuid=4fd93ca2-2f60-4387-9fb0-b8abc34b7526
content-type=user type=lvm device-config:device=/dev/sdbshared=false
name-label="Local storage 2" sm-config:allocation=thin

Option3: Create a EXT storage repository with thin provisioning support and direct access to the vhd files.(The following code should be typed in one line in your terminal)

xe sr-create host-uuid=4fd93ca2-2f60-4387-9fb0-b8abc34b7526
content-type=user type=ext device-config:device=/dev/sdbshared=false
name-label="Local storage 2"

Done !

Categories: Xenserver Tags: ,