Showing posts with label OS. Show all posts
Showing posts with label OS. Show all posts

Thursday, March 10, 2016

How to setup RAID 0 with SSD, Step by step giude

As you know in the computer hardware world reading and writing to the storage disk is the bottleneck for the data transfer. Even though processors an memory chips getting faster and faster, Hard disk reading and writing technologies did not meet the requirement that industry expected.  But, recently after SSD (Solid State Drive) reached to the market, Users got quite comfort because of the data read and write speed if they ignore the risk of lost data.

You may need more and more speed to read and write data to the storage because of these kind of  applications.
  • Compile large source code base
  • Video editing & rendering
  • Working with large CAD files or plans
  • Search in large set of data (Big Data)
  • Search in large databases (Geographical Map Data)
  • Playing Computer Games
  If so best solution for you is setting up RAID 0 with multiple SSDs. So here is the step by step guide how to setup "RAID 0" with two SSDs.


1.  Backup all the data in your computer and you might need to reinstall the OS.

After setting the RAID all of the data in SSD will lost. So if you need the data in SSDs please backup all of those.  By right other drivers should not affect by setting RAID on newly added SSDs. But in my case my Windows 10 OS corrupted after setting RAID. So be prepare or trust the God. I suggest you to back up all the things in the Desktop, bookmarks etc..


2.  Prepare the necessary hardware.
  • Your motherboard should support to configure RAID (Check motherboard details or BIOS setting) and should have two free SATA slots.
  • Two (or more) SSDs with same capacity (In my case I have two 1TB SSDs)

  • Two SATA cables to connect SSD to mother board

  • SATA power cable splitters(T cable) in case if your casing doesn't have extra two power slots. (In my case, casing has one extra power slot, So I bought one splitter)

3.  Connect the SSD to motherboard.
Connect the two SSDs to the motherboard using two SATA cable and power splitter. If you have more than two SSDs, Those must be same capacity and connect all SSDs to the motherboard. Usually SATA cable in motherboard named like STA1, SATA2, STA3 etc.. But if you can see some other names, You should give priority to port named with SATA1,SATA2 etc... I have tried other ports. even though the cable can be plug, SSDs ware not recognize by the motherboard. Make sure to provide power to the SSDs.


4.  Turn on RAID from BIOS.
Turn on the computer and go in to BIOS setting by pressing the necessary key. Find how to turn on the RAID feature. Different BIOS interfaces giving different way to turn on the RAID feature. In my case I'm using Dell Tower workstation. So Here is how I turn on the RAID feature using BIOS interface.



5. Create RAID 0 using RAID Interface

 5.1.
After RAID feature on, Save and exit from the BIOS the your computer will restart and it will show up a new interface line this.

5.2.
It is asking to go press CTRL+I keys to go to RAID setup interface. So please press control and I keys together. Then it will forward you to a this kind of interface.


5.3. 
This is RAID setup interface. Use the arrow keys in the keyboard and select Create RAID Volume and press Enter. This you will see this screen.


5.4. 
This is the RAID Volume setting interface. Type a suitable name (I typed Voloume0), Select RAID0 as RAID Level, Keep other things as default. In my case above screen shows the settings I have choose. Use arrow key and go to Create Volume, then press Enter. Then you can see this screen.


5.5.
This interface allow you to select what the the SSDs you choose to include in to the new RAID0 drive named "Voloum0" In my case I have selected my newly added two 1TB Samsung SSDs. I have one more 256GB space SSD, that uses to install the operating system. And also a hard drive I uses to store data before buying SSDs. You can use space bar to select the SSDs and press Enter after selecting.


5.6.
Then it will ask your confirmation. Press Enter to Confirm and then exit from the RAID setting interface by confirming below dialog..






 6. Restart the computer and enjoy lightning faster data read and write.
After exit, it will restart the computer automatically, Even though it shows the RAID setup enter interface we saw in 5.1 don't do anything this time. If you are lucky, your computer will boot without issue. otherwise you have to reinstall the operating system. In my case I had to install Operating system again.
 After boot the computer, Right click on the My computer (ThisPC in Windows 10) > Go to "Manage" > Go to "Disk Management" Then you can see the new drive as a new one disk. Im my case I have 1769.77 GB one disk. You can this this is just a hard drive and create partition as you like from this space.

In my case I will create two partitions as shown in below image.





Thursday, September 13, 2012

How to solve openscmanager failed error 5


Situation

Some times when you working with command prompt, script running, or program installing with winnows environment  it may fire fallowing one of error.

Error

  1. openscmanager failed <error 5>
  2. OpenSCManager failed - Access is denied. (0x5)
  3. [SC] OpenSCManager FAILED 5:
  4. "OpenSCManager()" failed with error code "5"

Solution

  1. Program (script. command prompt, software)  right click and run as administrator.
  2. If not success, Log-off and login as the administrator and try again

Thursday, July 05, 2012

How to 'Run As' multiple programs using a script in windows

As a system engineer or as a developer sometimes you may need to run multiple programs at once as a sequence or, one by one after some intervals. Following is a VB script created for specific purpose.

  • weAdmin\imAdmin - Specific use for "Run As"
  • C:\Test\Test1\Test1.exe - Path and file name
  • admin1234 - Password for the specific user.
  • 100 - Some waiting time to initialize 'run as'
  • 1000 - waiting time until next program run. (Configure this as you want)
Option explicit
Dim oShell
set oShell= Wscript.CreateObject("WScript.Shell")

oShell.Run "RunAs /noprofile /user:weAdmin\imAdmin ""C:\Test\Test1\Test1.exe"""
WScript.Sleep 100
oShell.Sendkeys "admin1234" 
oShell.SendKeys "{ENTER}"
WScript.Sleep 1000

oShell.Run "RunAs /noprofile /user:weAdmin\imAdmin ""C:\Test\Test2\Test2.exe"""
WScript.Sleep 100
oShell.Sendkeys "admin1234"
oShell.SendKeys "{ENTER}"
WScript.Sleep 1000

oShell.Run "RunAs /noprofile /user:weAdmin\imAdmin ""C:\Test\Test3\Test3.exe"""
WScript.Sleep 100
oShell.Sendkeys "admin1234"
oShell.SendKeys "{ENTER}"
WScript.Sleep 1000

oShell.Run "RunAs /noprofile /user:weAdmin\imAdmin ""C:\Test\Test4\Test4.exe"""
WScript.Sleep 100
oShell.Sendkeys "admin1234"
oShell.SendKeys "{ENTER}"
WScript.Sleep 1000

Wscript.Quit

Thursday, June 14, 2012

How to kill process running in a remote computer using command prompt

Windows servers maintaining is not a simple task and most of the time need to log in to servers and kill some running process and some time need to start the processes or applications. So this is a method to kill a process running on a remote computer using dos command in windows environment. You can use this method to kill a process in you local PC too. You can directly run this command in command prompt or also can run as saved bat file.


TASKKILL /S system /U username /P password /FI filter /PID processid or /IM imagename /F /T





Parameter List:
-----------------------------------------------------------------------------------------------------------
/S system Specifies the remote system to connect to.

/U [domain\]user Specifies the user context under which
the command should execute.

/P [password] Specifies the password for the given
user context. Prompts for input if omitted.

/F Specifies to forcefully terminate
process(es).

/FI filter Displays a set of tasks that match a
given criteria specified by the filter.

/PID process id Specifies the PID of the process that
has to be terminated.

/IM image name Specifies the image name of the process
that has to be terminated. Wildcard '*'
can be used to specify all image names.

/T Tree kill: terminates the specified process
and any child processes which were started by it.

/? Displays this help/usage.



Filters:
-----------------------------------------------------------------------------------------------------------
STATUS eq, ne RUNNING | NOT RESPONDING
IMAGENAME eq, ne Image name
PID eq, ne, gt, lt, ge, le PID value
SESSION eq, ne, gt, lt, ge, le Session number.
CPUTIME eq, ne, gt, lt, ge, le CPU time in the format
of hh:mm:ss.
hh - hours,
mm - minutes, ss - seconds
MEMUSAGE eq, ne, gt, lt, ge, le Memory usage in KB
USERNAME eq, ne User name in [domain\]user
format
MODULES eq, ne DLL name
SERVICES eq, ne Service name
WINDOWTITLE eq, ne Window title

NOTE: Wildcard '*' for the /IM switch is accepted only with filters.

NOTE: Termination of remote processes will always be done forcefully
irrespective of whether /F option is specified or not.

Examples:
-----------------------------------------------------------------------------------------------------------
TASKKILL /S system /F /IM notepad.exe /T
TASKKILL /PID 1230 /PID 1241 /PID 1253 /T
TASKKILL /F /IM notepad.exe /IM mspaint.exe
TASKKILL /F /FI "PID ge 1000" /FI "WINDOWTITLE ne untitle*"
TASKKILL /F /FI "USERNAME eq NT AUTHORITY\SYSTEM" /IM notepad.exe
TASKKILL /S system /U domain\username /FI "USERNAME ne NT*" /IM *
TASKKILL /S system /U username /P password /FI "IMAGENAME eq note*"



Monday, June 04, 2012

How to send a email using VB Script.

Some times requirements occurs to send email from Windows environment. it may be due to server monitoring or application monitoring purpose or may be some other need. Lot of third-party applications in the internet and you can try those your own. But most light weight and slandered way to send email from windows environment is the VB script. Using VB Script is very easy and simple. following is the way to send a email using VB Script. this can be help to your script development and system monitoring purpose.


Dim objMail

Set objMail = CreateObject("CDO.Message")

'sender email address
objMail.From = "Sender <sender@abcmail.com>"

'Receiver email address
objMail.To = "Receiver <receiver@abcmail.com>"

'Email subject
objMail.Subject = "This is the testing email subject"

'Email Body
objMail.Textbody = "This is the my first email send by vb script"

'If you need to attache a file,can do in this way.
objMail.AddAttachment "C:\myphoto.jpg"

'Configure SMTP server
objMail.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

'Here you should configure name or IP of the SMTP server
objMail.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = _
    "192.168.1.23"

' SMTP port need to configure here (Default 25)
objMail.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25

'update the field in message object 
objMail.Configuration.Fields.Update

'sending email
objMail.Send

'clear mail object
Set objMail=Nothing

'exit the script
Wscript.Quit
Some times we need to check if a process is running in a remote server. For this purpose it can be log in using remote desktop or ant other third-party tool like team-viewer. but here problem is need to wast some time on this method. How if you can check the process status of the remote server from your PC? This is the way to achieve that.

windows provide a command "tasklist" to achieve this requirement. So fallowing is the technical description about this.

tasklist /s IPAddress /u username /p password /fi "USERNAME eq processUsername" 


  • IPAddress - IP Address of the remote computer
  • username - User name of the remote computer
  • password - password of the remote computer
  • processUsername - The process you need to monitor should under this user name (you can get user name from Task Manager of the remote computer) . If you no need to filter process by username, you can ignore  "/fi "USERNAME eq processUsername" part from the command



Full bat file

@echo off
echo processing, please wait...
tasklist /s IPAddress /u username /p password /fi "USERNAME eq processUsername"
echo
echo ----------------------------------------------------------------------------
pause


For more information you can go to this page http://technet.microsoft.com/en-us/library/bb491010.aspx