Thursday, 20 June 2013

Fix: The trust relationship between this workstation and the primary domain failed


This guide is using the NETDOM tool and does not require rejoining the domain
Error1x
Have you seen this? ’The trust relationship between this workstation and the primary domain failed’
Or this? ‘The security database on the server does not have a computer account for this workstation trust relationship.’ Same issue, different symptom.
Error11
I have on multiple occasions beeing a heavy Hyper-V user for my labs…
There are apparently a number of reasons why this happens, but the main reason seems to be lost connection between the ‘client/server’ and the Domain controllers. If the scheduled password change occurs while the server or client is unavailable or has been shut down, then the passwords stored in the server/client and the domain controllers for the computer account mismatch, and you will end up getting this error when trying to logon to the server. It can also appear differently, like if all service accounts stop functioning with events logged as a result, or similar that happens when the server is still running and you have been able to logon or simply never logged off.
The real question…How do we fix it? There are a number of TechNet forum threads on this(added one below as references) and many blog posts allready written, but since I’m always having difficulty finding them myself when I need them, I’ll make my own. Please feel free to borrow this knowledge and reblog/repost it yourself :-) (The guide however, is my own creation…)
The easiest or at least the quickest solution, is to have the server leave the doamin by adding it to a workgroup, then joining it back to the domain again. But, this can sometimes be a bit risky, you may have lots of service account running as domain users and so on, you don’t feel like unkoupling the server from the domain at all, then do this instead.
This guide is taking for granted that you prior to following these steps, have restored connectivity between the server/client and the domain controllers, else this will fail. Resetting the computer password can not be done offline.
-
The following steps are performed on a Windows Server 2008 R2 machine, but the same steps apply to Windows Server 2012
Ok, I’ll do as I’m used to and describe what to do in a step by step guide, like this:
You log on to your server like you are used to, using your personal domain account:
Error0
You type the password and hit enter, then, BAM! This, instead of the normal logon procedure…what a start on a monday morning…
Error1x
No good…if you don’t like to meddle with server affairs and are the kind of person who likes to stick to your apps once logged into the server, copy the link to this blogpost and send it to someone who can fix it…else, keep reading.
Press OK and then Switch user.
Error2x
Then use the local server administrator account to logon to the server.
Error3
In my case it is one of my SQL boxes, so I type the Servername, Backslash, Local Admin and hit Enter.
Once logged in, you will want to start a PowerShell prompt or a Command prompt with administrative privilieges, ‘as administrator’.
Error4x
Next, we solve the problem by resetting the Computer password in Active Directory and on the Local machine, for this we use a commande called NETDOM.
Type in the following command:
NETDOM RESETPWD /Server:<name of any domain controller> /UserD:<domain admin account> /PasswordD:<password>
(Yes, the trailing D’s are supposed to be there, don’t ask me why…)
In my prompt it looks a bit like this:
Error5x
Important! Unlike in this Picture, the domain administrators password will be visible in cleartext, so be careful and close the prompt after you are done!
Hit Enter and if everything works, you should see this:
Error6xy
Now, we have to do one more thing before order is restored completely, we have to reboot the server. If you don’t, you will still not be able to logon using the domain account.
Error7x
After the server has rebooted, you are good to go, logon using your regular personal domain account.
Error0
Done!
If this did not work out for you, perhaps any of these reference links can be of use for you with additional steps and alternate solutions?
Good luck!


References
NETDOM

http://technet.microsoft.com/en-us/library/cc772217(v=ws.10).aspx

Netdom Overview

http://technet.microsoft.com/sv-se/library/cc737599(v=ws.10).aspx

How to use Netdom.exe to reset machine account passwords of a Windows Server domain controller

http://support.microsoft.com/kb/325850

Don’t rejoin to fix

http://www.implbits.com/about/blog/tabid/78/post/don-t-rejoin-to-fix-the-trust-relationship-between-this-workstation-and-the-primary-domain-failed/default.aspx

TechNet Forum: The trust relationship between this workstation and the primary domain failed – Windows 7 Enterprise joining 2008 Domain, Error 5722

http://social.technet.microsoft.com/Forums/en-US/w7itpronetworking/thread/8155d5ea-a5c2-4306-8d2b-be3464234460/

TechNet Wiki: Trust Relationship between Workstation and Primary Domain failed

http://social.technet.microsoft.com/wiki/contents/articles/9157.trust-relationship-between-workstation-and-primary-domain-failed.aspx


Thursday, 6 June 2013

If you're using software RAID 5, you have three or more dynamic disks should be configured. If you lose a single disk from the set, no data is lost. Because of data and parity information stored on the remaining disks. If you need to replace the disk follow the procedure below.

Step 1. Replace the dead disk with a new on in the server.

Step 2. Access the Disk Management node of Server Manager.

Step 3. Your replacement disk will be found and you'll be prompted to initialize the disk.

Step 4. Once it's initialized, right-click the disk and select convert to Dynamic Disk...













 

Step 5. Ensure that only your new disk is selected to convert and click OK.

Step 6. Scroll down to the disk that's missing for your RAID 5 set, right-clicks it, and select Repair Volume...



















Step 7. Your new disk will be listed to be used as the replacement. Make sure it's selected and click OK.














Step 8. Your RAID 5 volume will now go into a Re synching state, which can take a long time—it has to repopulate the data/parity information on the new disk to make the RAID 5 volume fault tolerant again. Right-click the missing disk, which no longer has any associated volume, and select Remove Disk.














Try and minimize the workload on the RAID 5 while it's re syncing because a heavy load will slow down the rebuild.

Hi I have configured the SAN switches(MultiLayer 9148) including zoning . Now For the Safer side I need to take backup of these switches.

Follow the Below Steps to configure Backup

Step 1 :- Login To your SAN Switch , Click on VSAN under the Data center , then Right click on VSAN name , then click on “Edit Local Full Zone Database”

Step 2 :- Go To File ----> Backup ----> All Zones , like below figure




Step 3 :- When we click on  All Zones in step2 , we will get the below window ,



As we can use TFP,SFTP,SCP and FTP to take the backup on the remote machine. In my Case I am using ftp . After mentioning all FTP  related details click on the backup



Step 4 :- Once the backup is completed , you will get message like “Successful Backup” as   shown below



Taking Backup from the CLI Mode :

Command :1  “copy running-config startup-config”  

Above command will take the backup on the local system

Command :2  “copy running-config tftp/ftp/sft:location”

Above Command is used to take backup on the remote machines
To install virtual machines using vsphere , Following components should be installed.
  • ESXI server
  • Vcenter and Vsphere Client
  • For Single Sign on Authentication : AD and DNS
Follow the Below Steps to install virtual machine using vsphere Client , In My Case I have installed  Vcenter and vsphere on the Same Machine, also Vcenter & Vpshere are part of esxi domain.

Virtual Machine Using Vsphere Client 
Step:1  Login the Vspher client using either using root credentials or AD Credentials. Vpshere client will connect to Vcenter Server ,and  Vcenter server will connect to ESXI Server.


Define Your Data center  Name , Under Data Center Name We will virtual Machines.

From the vSphere client menu, select File -> New -> Virtual Machine, which will launch the create new virtual machine wizard as shown below. Choose “Typical” for the configuration.

Virtual Machine Using Vsphere Client

Step:2  Define the Virtual Machine Name

Virtual Machine Using Vsphere Client

Step:3 Specify the Data Store , As vSphere client will display all the datastore available in the ESXi server.  In our case we are  using the default “datastore1”

Virtual Machine Using Vsphere Client
Step: 4  Specify the Operating system for the Virtual Machine , as shown below

Virtual Machine Using Vsphere Client

Step: 5 Define the Networking for the Virtual Machine .

Virtual Machine Using Vsphere Client
Step: 6 Specify the Disk Space for VM

Virtual Machine Using Vsphere Client

Step: 7 VM is ready to install and can view summary as shown below

Virtual Machine Using Vsphere Client

Step: 8 As of Now we have not attached the iso file of OS , for this we have to upload the iso to the datastore1.

Got To  datastore1 ---> create a folder ISO ---> Create a Sub folder Centos , Then Upload the iso , as shown below :

Virtual Machine Using Vsphere Client

Step:9  Now Edit the VM settings , attach the iso file and boot the Virtual machine with this iso file. After OS installation remove the iso , and boot the Virtual machine using HDD.

Cloud Computing....?

Cloud Computing is the use of Computing Resources(Hardware like Hypervisor,Storage,switches  & Software like Virtualization,vlan trafficing , dynamic ip allocation ) that are delivered as Service over the Network.It's called cloud since all these above mentioned resources can be scaled on request  and based on usage.
 
Why cloud Computing is preferred / benefits of Cloud Computing

  • Scalability : -The customer doesn't have to know (and buy) the full capacity they might need at a peak time. Cloud computing makes it possible to scale the resources available to the application. A start-up business doesn't have to worry if the advertising campaign works a bit too well and jams the servers.
  • Pay Per Use :- Customers pay only for what they use. They don’t have to buy servers or capacity for their maximum needs. Often, this is a cost savings.
  • The cloud will automatically (or, in some services, with semi-manual operations) allocate and de-allocate CPU, storage, and network bandwidth on demand. When there are few users on a site, the cloud uses very little capacity to run the site, and vice versa.
  • Reduces Cost :- Because the data centers that run the services are huge, and share resources among a large group of users, the infrastructure costs are lower (electricity, buildings, and so on). Thus, the costs that are passed on to the customer are smaller.
  • Application programming interface (API):- Accessibility to software that enables machines to interact with cloud software in the same way that a traditional user interface (e.g., a computer desktop) facilitates interaction between humans and computers
  • Virtualization technology allows servers and storage devices to be shared and utilization be increased. Applications can be easily migrated from one physical server to another.


Types of Cloud Computing :-

  • Public Cloud
  • Private Cloud
  • Hybrid Cloud

Public Cloud  :- In public cloud applications, storage, and other resources are made available to the general public by a service provider. These services are free or offered on a pay-per-use model. Generally, public cloud service providers like Amazon AWS, Microsoft and Google own and operate the infrastructure and offer access only via Internet

Private Cloud : - Private cloud is cloud infrastructure operated solely for a single organization, whether managed internally or by a third-party and hosted internally or externally.

Hybrid Cloud : -  Hybrid cloud uses both public and private cloud infrastructure.

Cloud computing  Models


  • Infrastructure as a Service (IaaS).  IaaS  offers  computers - physical or  virtual machines - and other resources like storage so that developers and IT organizations can use to deliver business solutions.Cloud providers typically bill IaaS services on a utility computing basis: cost reflects the amount of resources allocated and consumed.
  • Platform as a Service (PaaS). Pass offers computing platform typically including operating system, programming language execution environment, database, and web server. Application developers can develop and run their software solutions on a cloud platform without the cost and complexity of buying and managing the underlying hardware and software layers.
  • Software as a Service (SaaS). In the SaaS , the service provider hosts the software so you don’t need to install it, manage it, or buy hardware for it. All you have to do is connect and use it. SaaS Examples include customer relationship management as a service.
Below are the Components that are required
  • ESXI Server
  • Vcenter Server & VSphere
  • Active directory and DNS Sever  (Click Here to configure AD & DNS for your Domain)
  • Install Virtual Machine Using VSphere (Click Here to read more..)

How To Install and Configure ESXI Server-5.1

ESXI Overview :

ESXI Provides a virtualization layer that abstract the processor,memory,storage and networking resources of the physical host into multiple virtual machines.ESXI is a bare-metal hypervisior that creates the
foundation for a dynamic and automated datacenter.

In ESXI architecture , applications running in virtual machine access CPU ,memory,disk & network interfaces without direct access to the underlying hardware. The ESXI Hypervisor is called the VMKernel.

We can get a free version version of ESXI , called Vsphere Hypervisor, or we can purchased a licensed  version with vsphere..























 
Installation Steps:

Step:1 Download the trail or licensed version of esxi from“ http://www.vmware.com/products/vsphere-hypervisor/
overview.html”

Now  Either burn or mount the ESXi 5.1 iso image to the DVD drive of the server and let the server boot from dvd.

Step:2  We will get below screen



Step: 3  



Step: 4   Press enter to continue at the Welcome to VMware ESXi 5.1 Installation screen.




Step: 5  Press F11 to accept the End User License Agreement.


Step: 6 Select the hard drive you wish to install VMware ESXi 5.1 onto and press Enter.

.

Select your keyboard layout and press Enter.



Step: 7 Just enter the root password and then Press Enter.












Step: 8 Press F11 to begin installing ESXi 5.1



Step: 9 Once the installation is complete you are required to reboot the server. Press enter.


Step: 10 VMware ESXi  is now installed.  Do Basic  setting like static ip address, dns, etc by pressing F2

Overview :

In Linux Like operating system ,  we have the variables  like http_proxy,ftp_proxy and https_proxy  through which we can access the Internet via proxy on linux console.

All of the above mentioned variables are can be used with tools like elinks , wget , lynx , rsync  and others.

I am assuming Linux servers are behind the proxy servers and can get the Internet connection only via proxy settings.











Proxy Setting commands on Linux  Console :

Example:1 Access http base sites via proxy , use below variable

# export http_proxy=http://<proxy-server-ip-or-dns-name>:<Port-Number>

# export http_proxy=http://proxy.nextstep4it.com:8080

Example:2 Password Protect Proxy Settings

# export http_proxy=http://USERNAME:PASSWORD@<proxy-server-ip-or-dns-name>:PORT

# export http_proxy=http://nsit:*****@proxy.nextstep4it.com:8080/

Using Above  Command we have set the proxy setting along with user name and password.

Example:3 To access secure sites(https) via proxy , set below variable

#  export https_proxy=http://<proxy-server-ip-or-dns-name>:<Port-Number>

# export https_proxy=http://proxy.nextstep4it.com:8080/

Example:4 To access ftp based sites via Proxy , set the below variable

# export ftp_proxy=http://<proxy-server-ip-or-dns-name>:<Port-Number>

# export ftp_proxy=http://proxy.nextstep4it.com:8080/

Note : As these variables are declared for the particular session , to set it permanently , define these variables in the file “/etc/bash.bashrc”

export http_proxy=http://proxy.nextstep4it.com:8080/
export ftp_proxy=http://proxy.nextstep4it.com:8080/
https_proxy=http://proxy.nextstep4it.com:8080/

Example:5   Proxy Settings in APT  on Ubuntu Linux

# Vi /etc/apt/apt.conf

Acquire::http::Proxy "http://<proxy-server-ip-or-dns-name>:<Port-Number>";

Example:6  Proxy Settings for RSYNC

# export RSYNC_PROXY="http://<proxy-server-ip-or-dns-name>:<Port-Number>”

# export RSYNC_PROXY="http://proxy.nextstep4it.com:8080”

Unordered List

Sample Text

Popular Posts