当前位置:网站首页>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
边栏推荐
- TCP three handshakes and four waves
- web渗透测试----5、暴力破解漏洞--(2)SNMP密码破解
- What is the difference between server leasing and hosting?
- Black hat SEO actual combat search engine snapshot hijacking
- [Tencent cloud update] against 11.11! Here comes the 1.1% discount for enterprises!
- Easyplayer consumes traffic but does not play video and reports an error libdecoder Wasm404 troubleshooting
- [code Capriccio - dynamic planning] t392 Judgement subsequence
- Disk partition extension using graphical interface and PowerShell code
- On game safety (I)
- How to gracefully handle and return errors in go (1) -- error handling inside functions
猜你喜欢

Black hat SEO actual combat search engine snapshot hijacking

Modstartcms enterprise content site building system (supporting laravel9) v4.2.0

黑帽SEO实战搜索引擎快照劫持

Flutter series: offstage in flutter
![[numpy] numpy's judgment on Nan value](/img/aa/dc75a86bbb9f5a235b1baf5f3495ff.png)
[numpy] numpy's judgment on Nan value
![[code Capriccio - dynamic planning] t392 Judgement subsequence](/img/59/9da6d70195ce64b70ada8687a07488.png)
[code Capriccio - dynamic planning] t392 Judgement subsequence

Installation of pytorch in pycharm

内存泄漏之KOOM

On game safety (I)

黑帽SEO实战之通用301权重pr劫持
随机推荐
LeetCode 129. Find the sum of numbers from root node to leaf node
Clickhouse (02) Clickhouse architecture design introduction overview and Clickhouse data slicing design
After 20 years of development, is im still standing still?
The importance of the computer room to the stable operation of the server
在pycharm中pytorch的安装
讲讲我的不丰富的远程办公经验和推荐一些办公利器 | 社区征文
web rdp Myrtille
How the new operator works
How much space does structure variable occupy in C language
The first 2021 Western cloud security summit is coming! See you in Xi'an on September 26!
Exploration of web application component automatic discovery
Configuration process of easygbs access to law enforcement recorder
内存泄漏之KOOM-Shark中的Hprof信息
Technical dry goods - how to use AI technology to accurately identify mining Trojans
Pine Script脚本常用内容
Building RPM packages - spec Basics
元气森林推“有矿”,农夫山泉们跟着“卷”?
How do websites use CDN? What are the benefits of using it?
Discussion on the introduction principle and practice of fuzzy testing
Some basic knowledge of data center server cabinet