Sea 9
VMware notes
icon1 Anson | icon2 VM | icon4 03 9th, 2018| icon1 8,073 views | icon3No Comments »

【vSphere HA】
When vSphere HA fault damage must occur ESXi host,In the only other surviving HA Cluster ESXi host,Will be stored in the shared storage resources of the virtual host VM restart。

If the underlying ESXi host failure damage incident did not happen,But within vCenter Server Hosting service stops when the operation itself,So vSphere HA high availability mechanisms are not helpful。 (It can make up by Watchdog)

【Watchdog】(6.0More than just support,Automatically enabled by default)
vCenter Server 6.0 adds "Watchdog" monitoring mechanism,When a fault event occurs while the operation of the service stopped working,When the former occurs twice,Watchdog will attempt to restart the service,If the third time is still unable to restart the service,VM virtual host will be restarted。

【參考連結】

——
【VMware Data Recovery】
VMware Data Recovery (vDR) belong to the Disk-based backup,Is simple and easy to deploy features (because it is also a virtual host),Support Windows VSS (Volume Shadow Copy) backup,Also supports simple deduplication function (Data De-duplication)。

However, this backup tool has the following limitations related functions:

The backup environment must have vCenter Server,Can use this backup tool。
The backup environment must have vCenter Server,Or can not use the File Level Block Level backup。
The backup environment must have vCenter Server。
The backup environment must have vCenter Server。
The backup environment must have vCenter Server、Windows Server 2003/2008) Web Hosting,Does not support other operating systems,Such as Linux、Solaris, etc. Web Hosting。

【參考連結】

——
【VMware Fault Tolerance】
Web Hosting have a short downtime VMware HA mechanism to start if the company can not accept,The VMware FT may be a solution to the problem,But Enable VMware FT There are many prerequisites,For example, the virtual host can not take a snapshot (Snapshot)、Stoarge vMotion feature can not be used、The virtual host can only use one vCPU conditions, etc.。

VMware FT mechanism will be on two different were established Primary and Secondary Host Web Hosting,And the use of information technology to VMkernel Port vLockstep on the ESX / ESXi Host to transfer Primary Secondary virtual host to the virtual host,But the Secondary will not write the actual behavior of I / O。

When ESX / ESXi Host Primary fault damage which the virtual host,The Secondary virtual host will immediately take over the relevant job,Primary and become virtual host,At this time will be on another ESX / ESXi Host,Re-establish a new Secondary virtual host to synchronize data with the Primary Web Hosting

【總結】
The backup environment must have vCenter Server:This mechanism for "Project of" downtime for,For example when the ESX / ESXi Host entity server occur memory、Hard drive failure,Or when need be shut down for firmware (Firmware) update and annual maintenance,This work is scheduled good plan can use this technique,Will work on the virtualization platform of Web Hosting,Migrate to other stations ESX / ESXi Host,So that enterprises can maintain physical host in the case of service without interruption。

The backup environment must have vCenter Server:This mechanism is suitable for "non-program of" downtime。When ESX / ESXi Host server entity without power system problems when power failure,When the host entity or motherboard damage leads to physical host to malfunctions of these non-human factors of non-fault condition occurs plan,Through this mechanism can automatically migrate to the virtual hosts on other stations ESX / ESXi Host to continue the operation of the boot。

But it is important that,These mechanisms are merely protecting ESX / ESXi Host Level level only,Rather than the virtual host operating system level (OS Level),As well as applications on the operating system level (Application Level)。

VMware HA mechanisms such as the previously mentioned,When ESX / ESXi Host fault damage,Equal to its operations on virtual hosts and it was improper shutdown,Although virtual host can be turned on again on another table Host,But it's possible the virtual host operating system has been shut down because of improper operation caused damage to the system,So even if you have migrated to other units on the Host,Success can not be a smooth start,So the backup job its necessity operating system。

The VMware FT mechanism is to make two virtual hosts operate exactly the same data,Therefore, if the situation when the crash occurred Primary Web Hosting,For example, the Windows operating system crash occurs blue screen (Blue Screen Of Death,BSOD),Because this time will vLockstep synchronization mechanisms,Secondary and makes the virtual machine host system when the situation also occurred。

As for application-level protection mechanisms,Currently, there are many manufacturers develop mechanisms,For example Application HA Symantec with Veritas Cluster technology development,Is to protect the application to run on a virtual host,Such as MSSQL、Exchange、Oracle、SAP, etc.。

【參考連結】

—–
【VMware DRS】
The auto-load the host entity , Automatic scheduling virtual location system , That is, when a higher host load station entity , Through DRS can be part of the subsystem through VMotion to move to a lightly loaded host entities。

Feb 26

Two years ago bought an HP ProLiant Server,This is the first installation of the system on their own servers HP(In the past are buying IBM),The first time you use iLO,Many feel than the IBM ServerGuide mechanism to facilitate,At least I do not have the Internet to search for ServerGuide download version and burn, etc.,But there seems to slow the process of discovery operations a little unusual,Because it is the first time iLO,Plus regular follow-up is also put into the OS,They did not re-study。
Continue browsing »

Feb 22
//MVC3開始,新增Razer語法,不同於先前的<%...%>括號語法,使用At Sgin(@)敘述程式碼片段。

//在Razer檢視中,使用@*...*@進行程式註解。

//在程式碼中,要輸出內容,要加@或@(...)
//在html標籤中,要輸出內容,要加@
//在程式碼中,要輸出純文字,要加@:
@if(true)
{
    String strPrint = "這是測試輸出文字";
    @strPrint<br/>
    <span>strPring</span><br />
    <span>@strPrint</span><br />
}

@{string strl = "測試";}
@(strl)輸出文字<br />

@{ string strHtml1 = "<ul><li>項目一</li></ul>";}
@Html.Raw(strHtml1)<br />

Feb 13

After noon, helping the company to install a x3650 M5 boot both Windows Update,Will no longer wake up not,Once the suspect is not a bug caused Updates,After all, the issue of the recent emergence of a little frequent Updates。After the case open,In addition to an outer error LED 163 lights,See SYS BRD ERROR Fengyun are bright,I would like to direct a death sentence,Please hurry DBA colleagues subsequent remedial measures,But my colleagues go out to eat,Plus this is the company's main DB Server,If you give up this,To remedy time at least two hours,And data to be re-built in the morning came,So it is eagerly looking for opportunities to wake it。

Continue browsing »

Feb 5
//在測試Controller與View時,如果因為設中斷點導致網頁顯示不完整而無法進行測試,
//可以試著點選"跳離函式(Shift+F11)",讓頁面完整顯示,以進行測試。

//先於Model設計好欄位變數等,
//再於Controller設定執行時,透過剛設計的Model樣板,進行各個變數的處理(遞交資料)
//如從網頁欄位A讀取資料到變數X,再把X送到網頁的欄位B
//最後於View設計各欄位的顯示情形
Feb 4
//Controllers\HomeController.cs
public ActionResult Index()
        {
            TempData["Message"] = "修改此範本即可開始著手進行您的ASP.NET MVC應用程式。";
            return View();
        }
<!--Views\Home\Index.cshtml-->
<h2>@TempData["Message"]</h2>
Feb 3
    //資料模型一對多關聯
    public class Guestbook
    {
        public int Id { get; set; }
        public string Content { get; set; }
        public DateTime CreateTime { get; set; }
        public Member Member { get; set; }
    }

    public class Member
    {
        [Key]
        public string Username { get; set; }
        public string Password { get; set; }
        public string Name { get; set; }
        public string Email { get; set; }

        public ICollection<Guestbook> Guestbook { get; set; }
    }
    //Code First 就是在Model定義好各欄位後,其他的Controller、View都會自動幫你產生,
    //很神奇的功能,讓你專注在寫Model的部分就好
Jan 31

    public class Index
    {
        [DisplayName("必選修")]
        //上面中括號這項非必要
        public string Required { get; set; }

        /*name只能有一個,所以這兩段先註解掉
        [Required(ErrorMessage = "學生姓名不得為空白")]
        public string Name { get; set; }

        [StringLength(10, ErrorMessage = "學生姓名不得超過10字元")]
        public string Name { get; set; }
        */

        [StringLength(10, ErrorMessage = "學生姓名必須介於2-10字元", MinimumLength = 2)]
        public string Name { get; set; }

        [Range(0, 100, ErrorMessage = "得分必須介於0~100之間")]
        public int Point { get; set; }

        [System.Web.Mvc.Compare("re_password", ErrorMessage = "兩次密碼輸入不一致")]
        //上面沒有using System.Web.Mvc的話,這邊就要打完整的命名空間
        public string Password { get; set; }
        public string Re_password { get; set; }

        [RegularExpression( @"^[0-9]{2,4}-?[0-9]{3,4}-?[0-9]{-4}$", ErrorMessage = "請輸入正確的電話號碼")]
        public string Phone { get; set; }

        [EmailAddress(ErrorMessage = "這不是E-mail格式")]
        public string Studentmail { get; set; }

        [Url(ErrorMessage = "這不是網址標準格式")]
        public string Url { get; set; }

        [FileExtensions(ErrorMessage = "所上傳的檔案不是圖片")]
        public string File { get; set; }

        [CreditCard(ErrorMessage = "這不是信用卡格式")]
        public string CreditCard { get; set; }

        [DataType(DataType.Date)]
        public string Date { get; set; }

        [Remote("RemoteTest", "Home", ErrorMessage = "Remote屬性測試")]
        public string For_Remote { get; set; }

        [MetadataType(typeof(ContentMetaData))]
        public partial class Content
        {
            private class ContentMetaData
            {
                [DisplayName("編號")]
                public int Id { get; set; }

                [DisplayName("姓名")]
                [Required(ErrorMessage = "請輸入性名")]
                [StringLength(10, ErrorMessage = "姓名不得超過10字元")]
                public string Name { get; set; }

                [DisplayName("內容")]
                [Required(ErrorMessage = "請輸入內容")]
                public string Content { get; set; }
            }
        }
    }
Jan 31

Encountered a problem in the morning,Last night after Synology NAS complete set of permissions,When the encounter was the reaction today to open files on the NAS,Appearance”Directory name is invalid”mistake,After confirming NAS permission no problem,Find information on the Internet,Have found a netizen encountered the same situation,And appears to be Windows 10 update to occur before 1709,View hand computer,Indeed, 1709。

Continue browsing »

Jan 30
    public class Index
    {
        [DisplayName("必選修")]

        public string required { get; set; }

        /*name只能有一個,所以這兩段先註解掉
        [Required(ErrorMessage = "學生姓名不得為空白")]
        public string name { get; set; }

        [StringLength(10, ErrorMessage = "學生姓名不得超過10字元")]
        public string name { get; set; }
        */

        [StringLength(10, ErrorMessage = "學生姓名必須介於2-10字元", MinimumLength = 2)]
        public string name { get; set; }

        [Range(0, 100, ErrorMessage = "得分必須介於0~100之間")]
        public int point { get; set; }

        [System.Web.Mvc.Compare("re_password", ErrorMessage = "兩次密碼輸入不一致")]
        //上面沒有using System.Web.Mvc,所以這邊就要打完整的命名空間
        public string password { get; set; }
        public string re_password { get; set; }

        [RegularExpression( @"^[0-9]{2,4}-?[0-9]{3,4}-?[0-9]{-4}$", ErrorMessage = "請輸入正確的電話號碼")]
        public string phone { get; set; }

        [EmailAddress(ErrorMessage = "這不是E-mail格式")]
        public string studentmail { get; set; }

        [Url(ErrorMessage = "這不是網址標準格式")]
        public string url { get; set; }
    }