当前位置:网站首页>Diskpart San policy is not onlineall, which affects automatic disk hanging
Diskpart San policy is not onlineall, which affects automatic disk hanging
2022-06-24 03:58:00 【shawyang】
Early in use 2019 Mirror image , In the early 2019 The mirrored disk policy is Microsoft's default san policy No onlineall, The new public image has been optimized. Microsoft's default setting is san policy onlineall
If it's not like this , for example :
If multiple disks are attached, the disk may be restarted and dropped
If not onlineall( All online ) Words , Continue to diskpart Command line execution of san policy=onlineall
It is recommended that you check whether or not before mirroring san policy = onlineall, If not, set it
in addition , Open as an administrator before creating an image cmd The command line executes this 2 Sentence command to avoid other problems during initialization
reg delete "HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInformation" /v "RealTimeIsUniversal" /f
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Cloudbase Solutions" /f 2>&1 > $null
Please don't delete cloudbase-init The registry , If a message is passed when the machine is created userdata, and userdata There is code for writing operations in the code , So you deleted cloudbase-init The registry of causes initialization to be marked as 0, The next time I turn on cloudbase-init You will think that the machine has not been initialized , It's a new machine , It will automatically trigger the re execution userdata Code in , The severity assumption , Suppose there is an operation to format the data disk in the code , Don't you want to be cool
The stock of machines needs to be manually executed by the user diskpart enter san policy=onlineall enter , And manually online the offline disks in the disk manager , Then restart the observation
Machines in stock 、 Custom images need to be repaired by yourself
I want to make a special mention here cloudbase-init, It is an open source initializer , It is not produced by the cloud platform , Many cloud vendors use it , It has a configuration item san_policy=OnlineAll You can add it to the configuration file before you do the image
Profile path :C:\Program Files\Cloudbase Solutions\Cloudbase-Init\conf\cloudbase-init.conf
The following figure is not the official cloud platform , Neither cloudbase-init Official , I did it myself cloudbase-init Data allocated ,cloudbase-init There are many special configuration items for , for example :
set_unique_boot_disk_id
display_idle_timeout
real_time_clock_utc
volumes_to_extend
san_policy
wait
Reference resources cloudbase-init Official information :
①https://readthedocs.org/projects/cloudbase-init/downloads/pdf/latest/
②https://cloudbase-init.readthedocs.io/en/latest/config.html
边栏推荐
- Record the creation process of a joke widget (II)
- web渗透测试----5、暴力破解漏洞--(2)SNMP密码破解
- Demonstration of C language structure function research
- Tencent cloud console work order submission Guide
- 开源一款监控数据采集器,啥都能监控
- Event id:7001: after restarting the machine, the World Wide Web failed to start automatically, resulting in inaccessible websites
- 元气森林推“有矿”,农夫山泉们跟着“卷”?
- How do websites use CDN? What are the benefits of using it?
- NLP task summary introduction and understanding
- 【代码随想录-动态规划】T392.判断子序列
猜你喜欢

Pine Script脚本常用内容

内存泄漏之KOOM

Old popup explorer Exe has stopped working due to problems. What should I do?

Do you understand TLS protocol?
Thank you for your recognition! One thank-you note after another

Modstartcms theme introductory development tutorial

ClickHouse(02)ClickHouse架构设计介绍概述与ClickHouse数据分片设计

618大促:手机品牌“神仙打架”,高端市场“谁主沉浮”?

你了解TLS协议吗?

An accident caused by a MySQL misoperation, and the "high availability" cannot withstand it!
随机推荐
Do you understand TLS protocol?
Record a programming contest
Typera cooperates with picgo to upload pictures to its own server with one click and obtain external links at the same time
Configuration process of easygbs access to law enforcement recorder
黑帽SEO实战搜索引擎快照劫持
[Numpy] Numpy对于NaN值的判断
内存泄漏之KOOM
Black hat actual combat SEO: never be found hijacking
[numpy] numpy's judgment on Nan value
How should the server be placed?
黑帽SEO实战之通用301权重pr劫持
老弹出explorer.exe遇到问题已停止工作,怎么办?
Getlocationinwindow source code
Brief ideas and simple cases of JVM tuning - how to tune
LeetCode 1281. Difference of sum of bit product of integer
golang clean a slice
How to select the application of the server?
Cross platform RDP protocol, RDP like protocol and non RDP protocol remote software
Thank you for your recognition! One thank-you note after another
well! Do you want to have a romantic date with the shining "China Star"?