Thursday, 7 May 2015

Add and Remove Har drive in existing Storage Pool

Add and Remove Hard drive in existing Storage Pool.

Prerequisites.

>   New Physical Hard drives are connected to the Windows 2012 server.

Steps to Extend existing Storage Pool.

> Loging to the Windows 2012 server with Administrator ID.


> Click on Server Manager ikon on the desktop to open Server Manager application.


> In Server Manager window click on File and Storage Services.


> In Sub Menu select Storage Pools than select existing Storage Pool which you want to extend.
In the following screen I have selected "hyper" Storage Pool to extend.
Click on TASKS button and select option Add Physical Disk.



> Click on the available physical disk to add in the pool and click OK to continue.


> New Physical Disk is added in the Storage Pool.



Steps to Reduce existing Storage Pool.

> Repeat the task 1, 2 and 3 from Extend existing Storage Pool.

> In Sub Menu select Storage Pools than select existing Storage Pool which you want to reduce.
In the following screen I have selected "hyper" Storage Pool to reduce.
In PHYSICAL DISKS window select the Hard drive which you want to remove. Right click to the selected Hard drive and select option Remove Disk.
NOTE: Make sure Storage Pool backup is taken properly before reducing the pool.



> Click Yes to continue.


> 3rd physical Disk is removed from Storage Pool.



EOF
 

Create Storage Pool

Create Storage Pool.

Once new additional Hardisks are attached to the Windows 2012 server. You can create Storage Pool for Virtual Hardisk for any size.
After creating storage pool you can modify pool capacity with adding and removing hard drives.

Prerequisites.

> Windows 2012 Standard / Datacentre installed on hardware machine.
> Additional Hard drives are attached to the machine.

Steps to create Storage Pool.

> Loging to the Windows 2012 server with Administrator ID.


> On the desktop click on Server Manager ikon.


> In Server Manager window select File and Storage Services option.


> In sub menu option click on Storage Pools. Storage pool home page appears as follows.


> In Storage pool tile select Primordial space on the server where you want to create Storage Pool. Than select TASKS button and select New Storage Pool.


> Click Next to continue.


> Give the Name to the Storage Pool and select the server from group of available disks option and click Next to continue.


> Select available physical disks to storage pool and click Next to continue.


> Click on Create button to continue.


> Once finish click on Close button.


> Storage Pool Name hyper is ready to use now. Check the following screen.



EOF
 

Convert Server GUI Interface to Minimum Server Interface

Convert Server GUI Interface to Minimum Server Interface.

Steps to convert GUI Interface to Minimum Interface.

> Loging to the Windows 2012 Server with Administrator User.


> Click on Server Manager ikon to open Server Manager window.


> In Server Manager window click on Manage > Remove Roles and Features option.


> Click Next to continue.


> Select the option Select a server from the server pool than select the server from Server Pool list where you want to configure minimum interface. Click Next to continue.


> Click Next button to continue.


> Select User Interfaces and Infrastructure, And remove click from Server Graphical Shell option. Click Next to continue.



> Enable Restart the destination server automatically if required option, Just click on Check Box to enable the option.


> Click on Yes button to continue.

 
 

 >  Click on Remove button to uninstall the feature.



> Feature removal process is started now.



> Server automatically rebooted now.


 > In the following screen press Ctrl+Alt+Delete to sign in with Administrator id.


> After loging to the windows 2012 server with Administrator ID you will get the following screen.
One Command prompt and Server Manger minimise icon on the down left corner of the screen.


> Press Close button to finish Feature removal activity. Now Server is ready with Minimal Interface.


> If by any chance Server Manager window closed. Run the command servermanager in command prompt to open Server Manager tool.


EOF

Tuesday, 28 April 2015

Create CentOS 6 Local package and Group package Repository

Create CentOS 6 Local package and Group package Repository.

Prerequisites:

> CentOS 6 .iso file or DVD.
> Installed CentOS 6.5 / 6.6 x86_64 server with minimum 40 GB free disk space on / partition.
> Make sure Internet is enabled on Linux server to download and install few packages.

Steps to create Local package repository: 

> Copy CentOS 6.5 .iso file in Linux Centos 6 x86_64 server on / partition.

> Mount CentOS 6.5 .iso file ( CentOS-6.5-x86_64-bin-DVD1.iso ) to /mnt directory
Command: #mount -t iso9660 -o loop /CentOS-6.5-x86_64-bin-DVD1.iso /mnt




 > Install HTTP service on Linux server.
Command: #yum install httpd





> Start HTTP service .
Command: #service httpd restart





> Create Directory centos65 in /var/www/html/ 
Command: #mkdir /var/www/html/centos65



>  Go to /mnt/Packages directory
Command: #cd /mnt/Packages





> Copy all the files from Packages directory to /var/www/html/centos65/ directory.
Command: #cp -avr * /var/www/html/centos65/



> Install createrepo package.
Command: #yum install createrepo

 

> Go to /var/www/html/ directory.
Command: #cd /var/www/html



> Create repo data on centos65 directory.
Command: #createrepo --database ./centos65/



> Enable httpd service in Linux boot.
Command: #chkconfig httpd on



> Restart httpd service.
Command: #service httpd restart



> Go to yum.repos.d directory.
Command: #cd /etc/yum.repos.d/



> Delete all the files from yum.repos.d directory
Command: #rm -fr *



> Create new CentOS-Base.repo file in yum.repos.d directory.
Command: #vi CentOS-Base.repo

> Add the following lines in CentOS-Base.repo file. Once done save and exit.
Note: 100.64.214.184 is my Linux server IP. Use your Linux server IP at the place of 100.64.214.184.



:wq       ----- Save the file and exit

> Check yum local repository
Command: #yum repolist

 

Base repolist is created now. I have marked in Yellow text in above diagram.

 Steps to create Group package repository: 

Note: 1 to 5 Steps are repeated. and no need to do it again if already configured Base local repository. 

> Copy CentOS 6.5 .iso file in Linux Centos 6 x86_64 server on / partition.

 > Mount CentOS 6.5 .iso file ( CentOS-6.5-x86_64-bin-DVD1.iso ) to /mnt directory
Command: #mount -t iso9660 -o loop /CentOS-6.5-x86_64-bin-DVD1.iso /mnt




 > Install HTTP service on Linux server.
Command: #yum install httpd



> Start HTTP service .
Command: #service httpd restart



> Create group directory in /var/www/html/
Command: #mkdir /var/www/html/group




> Go to /mnt directory.
Command: #cd /mnt



> Copy all the contains of /mnt directory to group directory.
Command: #cp -pfr * /var/www/html/group/




> Go to repodata directory.
Command: #cd /mnt/repodata



> List the contains of repodata directory.
Command:#ls



We need .xml line at the time of create group repo. On the above screen I have marked the .xml line with yellow text.
 
>  Go to /var/www/html/group directory.
Command: #cd /var/www/html/group



> Run the createrepo command on repodata directory.
Command: #createrepo -g  repodata/b4e0b9342ef85d3059ff095fa7f140f654c2cb492837de689a58c581207d9632-c6-x86_64-comps.xml



> Go to yum.repos.d directory.
Command: #cd /etc/yum.repos.d/



> Edit CentOS-Base.repo file
Command: #vi CentOS-Base.repo

> Add the following lines in CentOS-Base.repo file which are marked in Yellow text in following screenshot. Once done save and exit.
Note: 100.64.214.184 is my Linux server IP. Use your Linux server IP at the place of 100.64.214.184.

 


:wq       ----- Save the file and exit.


> Check yum group repository
Command: #yum grouplist

The output will be like following screen.






EOF