CN102929662A - Network-based method for partitioning in batch - Google Patents

Network-based method for partitioning in batch Download PDF

Info

Publication number
CN102929662A
CN102929662A CN 201210385486 CN201210385486A CN102929662A CN 102929662 A CN102929662 A CN 102929662A CN 201210385486 CN201210385486 CN 201210385486 CN 201210385486 A CN201210385486 A CN 201210385486A CN 102929662 A CN102929662 A CN 102929662A
Authority
CN
China
Prior art keywords
startup
information
file
partitioning
configuration information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 201210385486
Other languages
Chinese (zh)
Other versions
CN102929662B (en
Inventor
段国栋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201210385486.6A priority Critical patent/CN102929662B/en
Publication of CN102929662A publication Critical patent/CN102929662A/en
Application granted granted Critical
Publication of CN102929662B publication Critical patent/CN102929662B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides a network-based method for partitioning in batch. The function of the method is as follows: a computer is started through a network to obtain a starting guide file which is dynamically distributed by a server; the computer loads corresponding partitioning information and a partitioning tool from the server according to information of the starting guide file; the partitioning tool is locally executed and the partitioning information is automatically loaded in when the partitioning tool is executed; then a partitioning function is realized by the partitioning tool according to the partitioning information; the rate of progress of the current partition and list information of the partition are displayed in a partitioning process; and a starting disc can be automatically activated after the partitioning is finished. According to the method, when the quantity of computers is more, the partitioning function can be rapidly realized when a hard disc is partitioned in a unification way or partitioned in a customized manner, and the partition does not need to be independently configured.

Description

A kind of method of batch subregion Network Based
Technical field
The present invention relates to the Computer Applied Technology field, specifically a kind of method of batch subregion Network Based.
Background technology
Be that common server or clustered node installing operating system all will carry out subregion at present, have plenty of in installing operating system one one independent operation subregion, efficient can reduce greatly like this, works simultaneously to have a lot of repeatability.And most of computing machine raw device has identical configuration information, and may adopt the same zone configuration to fdisk, will do so a lot of the same work, and meaningless causing lost time.The method that now provides at present is to make first a stamper, and stamper is the branch district, and activates boot disk.Remove the hard disc of computer of wanting subregion to carving other with stamper, and guarantee will must not be less than the stamper size to the hard-disk capacity of carving, otherwise to carving failure.The work of doing like this is broadly divided into following process:
1) at first carry out stamper, and the success of stamper subregion, and activate boot disk
2) taking out from computer node carving hard disk, then carry under stamper, with instrument to carving partition information;
3) then the hard disk of carving is being reinstalled onto on the computer node;
4) if computer node is many, need to repeat 2 and 3 liang of steps.
For the above problem that can occur, specialized designs a kind of network method of subregion in batches, the requirement that the method has well solved many computing machine raw device subregions improved work efficiency, and subregion speed is fast, has saved the plenty of time.
Summary of the invention
The method that the purpose of this invention is to provide a kind of batch subregion Network Based.
The objective of the invention is to realize in the following manner, concrete performing step is as follows:
One: computing machine is by network startup, network startup initialization basic configuration
Computing machine passes through network startup, distribute a packet with the form transmission of multicast, in network, server end can be received this packet, the mac address that can simple judge this computing machine is existing computer node whether, if there is no then distribute an IP to computing machine, if the IP before continuing to use is arranged, then server end can return a packet, this bag comprises other network configuration information of IP address and some, when computing machine obtains analyzing behind this packet, automatic configuration network environmental parameter then;
Two: the server configure partition matters of being correlated with
After computer node configures the network environment parameter, he can initiatively send a packet to server end, after server end is received packet, IP and MAC are put in the buffer memory, then can one comprise start configuration information Packet Generation to computer node, server end need to be revised the startup configuration information, and concrete modification is as follows:
subnet 192.168.0.0 netmask 255.255.0.0 {
range dynamic-bootp 192.168.10.2 192.168.10.200;
default-lease-time 21600;
max-lease-time 43200;
filename "pxelinux.0";
Here filename has specified startup file, can automatically go for the default file in startup file, has put down in writing concrete startup project and start-up parameter here, and concrete default file configuration information is as follows:
DEFAULT windows2008
PROMPT 1
TIMEOUT 50
LABEL windows2008
KERNEL boot\pxeboot.0
LABEL 1
KERNEL memdisk
APPEND initrd=msdos.img
Here the startup item of specify default at first, default is the acquiescence item, then configured the startup residence time, acquiescence is 50 seconds here, and then kernel has specified startup file, multistage startup project can be set here, label is multistage startup label, the load document that the finger of append is concrete, and the msdos.img here is exactly partitioning tool, the below introduces the configuration information before the msdos.img encapsulation in detail, and the file that specifically comprises is as follows:
autodisk.bat,command.com ,do.txt ,GDisk.exe,mcd.exe ntfs.bat,restart.com,vide-cdd.sys,autoexec.bat ,config.sys,fat.bat,io.sys,msdos.sys,Reset.com ,shutdown.com
Loading is at first to load the autodisk.bat file, and this document is specified loading procedure and load information etc., and this information is as follows:
gdisk 1 /y /batch:do.txt
Do.txt file wherein, he has recorded the configuration information of computing machine being wanted subregion, and record thes contents are as follows:
/mbr
/del /all
/cre /pri /sz:10000 /for /q /v:c /ntfs
/cre /ext
/cre /log /sz:10000 /for /q /v:d /ntfs
/cre /log /for /q /v:e /ntfs
/act /p:1
#/hide /p:1
Wherein del/all will delete existing partition information first, Cre/pri represents to create the main partition and comprises partition size, label, divisional type, whether quick formatting, Cre/log creates extended partition, and the information such as specified partition size, Act represents to activate the meaning, and p:1 represents to activate current first subregion, and Hide can hidden partition information;
After above-mentioned configuration information configuration was finished, server end can be dressed up the img formatted file by automatic sealing package, and automatically revised the startup configuration information, and this moment, server end was finished whole layoutprocedure;
Three: computer node carries out subregion work
After server end sends packet, after computer node gets access to packet, analyze and start configuration parameter, load startup file, after startup file is loaded into local runtime, startup file loads partitioning tool according to profile information, partitioning tool is at the ftp server end, configuration information has been specified the ftp address, computer node is downloaded partition information together from ftp server end download partitioning tool and while automatically, automatically load partitioning tool after downloading successfully in this locality, partitioning tool starts at first can autoscan local disk information, then partitioning tool searches for the relevant partitions configuration information, after obtaining automatic response file, be loaded in the partitioning tool, partitioning tool is according to zone configuration information and executing division operation, if the format requirement is arranged, in interface display subregion process, and whether the prompting subregion is successful, then automatically can carry out the activation division operation, after subregion is all finished, demonstrate current subregion state on display screen, if there is not miscue, system's meeting autoboot, this moment, whole partitioning tool was all finished.
The invention has the beneficial effects as follows: the party's the function of the law is that computing machine passes through network startup, obtain the startup boot files of server dynamic assignment, computing machine is according to starting partition information corresponding to boot files information loading and partitioning tool from server, automatically partition information is written into into during then at this locality execution partitioning tool and at the execution partitioning tool, then partitioning tool is realized sectoring function according to partition information, show the progress of current subregion and the list information of subregion in the subregion process, and subregion can the automatic activation boot disk after finishing.When the benefit of the method is many for number of computers, realize to realize fast sectoring function, unnecessary independent configure partition when hard disk is unified subregion or customization subregion.
Description of drawings
Fig. 1 is in batches subregion control flow chart of network.
Embodiment
With reference to Figure of description to explaining below the work of the present invention.
In order to make the purpose, technical solutions and advantages of the present invention more clear, below in conjunction with drawings and Examples, the present invention is described in detail below:
Computing machine passes through network startup, this computing machine can send a packet automatically with the form of multicast, after server end is received this packet, the mac address that can simple judge this computing machine is existing computer node whether, if not existing computer node, then distribute an IP to computing machine, if existing computer node, then continue to use existing IP, then server end can return a packet, this packet comprises other network configuration information of IP address and some, when computing machine obtains analyzing behind this packet, then automatic configuration network environmental parameter, after this computer network environment configuration is finished, send a packet to server end, after server end obtains packet, can return to computing machine to a packet that comprises the configuration information of startup file, this computing machine obtains this packet post analysis startup file configuration information, automatically load relevant partitioning tool according to configuration information, computing machine can initiatively be connected on the ftp server and obtain partitioning tool, partitioning tool is downloaded to this locality and operation, can download the configuration information of subregion together simultaneously, behind the local runtime partitioning tool, meeting Automatic-searching partition information comes disk is carried out subregion according to partition information;
The specific implementation step is as follows:
A: obtain startup file by network startup, after computer node started, server was distributed to the computer node startup file, and initial configuration information is sent to computer node together;
B: server configure partition instrument, server end partitioning tool and zone configuration Information encapsulation after, be put into the ftp server, after the computing machine request, computing machine is downloaded automatically;
C: after computer node gets access to partitioning tool from the ftp server, carry out partitioning tool in this locality, partitioning tool Automatic-searching zone configuration information realizes subregion work according to partition information.
Embodiment
One: network startup initialization basic configuration
Computer node is from network startup, distribute a packet with the form transmission of multicast, in network, server end can be received this packet, the mac address that can simple judge this computing machine is existing computer node whether, if there is no then distribute an IP to computing machine, if the IP before continuing to use is arranged, then server end can return a packet, this bag comprises other network configuration information of IP address and some, when computing machine obtains analyzing behind this packet, automatic configuration network environmental parameter then;
Two: the server configure partition matters of being correlated with
After computer node configures the network environment parameter, he can initiatively send a packet to server end, after server end is received packet, IP and MAC are put in the buffer memory, then can one comprise start configuration information Packet Generation to computer node.Server end need to be revised the startup configuration information, and concrete modification is as follows:
subnet 192.168.0.0 netmask 255.255.0.0 {
range dynamic-bootp 192.168.10.2 192.168.10.200;
default-lease-time 21600;
max-lease-time 43200;
filename "pxelinux.0";
Here filename has specified startup file, can automatically go for the default file in startup file, has put down in writing concrete startup project and start-up parameter here.Concrete default file configuration information is as follows:
DEFAULT windows2008
PROMPT 1
TIMEOUT 50
LABEL windows2008
KERNEL boot\pxeboot.0
LABEL 1
KERNEL memdisk
APPEND initrd=msdos.img
Here the startup item of specify default at first, default is acquiescence, has then configured the startup residence time, acquiescence is 50 seconds here.Then kernel has specified startup file.Multistage startup project can be set here, and label is multistage startup label, the load document that the finger of append is concrete, and the msdos.img here is exactly partitioning tool.The below introduces the configuration information before the msdos.img encapsulation in detail.The file that specifically comprises is as follows:
autodisk.bat,command.com ,do.txt ,GDisk.exe,mcd.exe ntfs.bat,restart.com,vide-cdd.sys,autoexec.bat ,config.sys,fat.bat,io.sys,msdos.sys,Reset.com ,shutdown.com
Loading is at first to load the autodisk.bat file, and this document is specified loading procedure and load information etc., and this information is as follows:
gdisk 1 /y /batch:do.txt
Do.txt file wherein, he has recorded the configuration information of computing machine being wanted subregion, and record thes contents are as follows:
/mbr
/del /all
/cre /pri /sz:10000 /for /q /v:c /ntfs
/cre /ext
/cre /log /sz:10000 /for /q /v:d /ntfs
/cre /log /for /q /v:e /ntfs
/act /p:1
#/hide /p:1
Wherein del/all will delete existing partition information first.Whether Cre/pri represents to create the main partition and comprises partition size, label, divisional type, quick formatting.Cre/log creates extended partition, and the information such as specified partition size.Act represents to activate the meaning, and p:1 represents to activate current first subregion.Hide can hidden partition information;
After above-mentioned configuration information configuration was finished, server end can be dressed up the img formatted file by automatic sealing package.And automatically revise the startup configuration information, this moment, server end was finished whole layoutprocedure;
Three: computer node carries out subregion work
After server end sends packet, after computer node gets access to packet, analyze and start configuration parameter, load startup file, after startup file was loaded into local runtime, startup file loaded partitioning tool according to profile information, and partitioning tool is at the ftp server end, configuration information has been specified the ftp address, and computer node is downloaded partition information together from ftp server end download partitioning tool and while automatically.Automatically load partitioning tool after downloading successfully in this locality, partitioning tool starts at first can autoscan local disk information, then partitioning tool searches for the relevant partitions configuration information, after obtaining automatic response file, be loaded in the partitioning tool, partitioning tool is according to zone configuration information and executing division operation, if the format requirement is arranged, in interface display subregion process, and whether the prompting subregion is successful, then automatically can carry out the activation division operation.After subregion is all finished, demonstrate current subregion state on display screen, if there is not miscue, system's meeting autoboot, this moment, whole partitioning tool was all finished.
Except the described technical characterictic of instructions, be the known technology of those skilled in the art.

Claims (1)

1. the method for a batch subregion Network Based is characterized in that comprising the steps:
One: computing machine is by network startup, network startup initialization basic configuration
Computing machine passes through network startup, distribute a packet with the form transmission of multicast, in network, server end can be received this packet, the mac address that can simple judge this computing machine is existing computer node whether, if there is no then distribute an IP to computing machine, if the IP before continuing to use is arranged, then server end can return a packet, this bag comprises other network configuration information of IP address and some, when computing machine obtains analyzing behind this packet, automatic configuration network environmental parameter then;
Two: the server configure partition matters of being correlated with
After computer node configures the network environment parameter, he can initiatively send a packet to server end, after server end is received packet, IP and MAC are put in the buffer memory, then can one comprise start configuration information Packet Generation to computer node, server end need to be revised the startup configuration information, and concrete modification is as follows:
subnet 192.168.0.0 netmask 255.255.0.0 {
range dynamic-bootp 192.168.10.2 192.168.10.200;
default-lease-time 21600;
max-lease-time 43200;
filename "pxelinux.0";
Here filename has specified startup file, can automatically go for the default file in startup file, has put down in writing concrete startup project and start-up parameter here, and concrete default file configuration information is as follows:
DEFAULT windows2008
PROMPT 1
TIMEOUT 50
LABEL windows2008
KERNEL boot\pxeboot.0
LABEL 1
KERNEL memdisk
APPEND initrd=msdos.img
Here the startup item of specify default at first, default is the acquiescence item, then configured the startup residence time, acquiescence is 50 seconds here, and then kernel has specified startup file, multistage startup project can be set here, label is multistage startup label, the load document that the finger of append is concrete, and the msdos.img here is exactly partitioning tool, the below introduces the configuration information before the msdos.img encapsulation in detail, and the file that specifically comprises is as follows:
autodisk.bat,command.com ,do.txt ,GDisk.exe,mcd.exe ntfs.bat,restart.com,vide-cdd.sys,autoexec.bat ,config.sys,fat.bat,io.sys,msdos.sys,Reset.com ,shutdown.com
Loading is at first to load the autodisk.bat file, and this document is specified loading procedure and load information etc., and this information is as follows:
gdisk 1 /y /batch:do.txt
Do.txt file wherein, he has recorded the configuration information of computing machine being wanted subregion, and record thes contents are as follows:
/mbr
/del /all
/cre /pri /sz:10000 /for /q /v:c /ntfs
/cre /ext
/cre /log /sz:10000 /for /q /v:d /ntfs
/cre /log /for /q /v:e /ntfs
/act /p:1
#/hide /p:1
Wherein del/all will delete existing partition information first, Cre/pri represents to create the main partition and comprises partition size, label, divisional type, whether quick formatting, Cre/log creates extended partition, and the information such as specified partition size, Act represents to activate the meaning, and p:1 represents to activate current first subregion, and Hide can hidden partition information;
After above-mentioned configuration information configuration was finished, server end can be dressed up the img formatted file by automatic sealing package, and automatically revised the startup configuration information, and this moment, server end was finished whole layoutprocedure;
Three: computer node carries out subregion work
After server end sends packet, after computer node gets access to packet, analyze and start configuration parameter, load startup file, after startup file is loaded into local runtime, startup file loads partitioning tool according to profile information, partitioning tool is at the ftp server end, configuration information has been specified the ftp address, computer node is downloaded partition information together from ftp server end download partitioning tool and while automatically, automatically load partitioning tool after downloading successfully in this locality, partitioning tool starts at first can autoscan local disk information, then partitioning tool searches for the relevant partitions configuration information, after obtaining automatic response file, be loaded in the partitioning tool, partitioning tool is according to zone configuration information and executing division operation, if the format requirement is arranged, in interface display subregion process, and whether the prompting subregion is successful, then automatically can carry out the activation division operation, after subregion is all finished, demonstrate current subregion state on display screen, if there is not miscue, system's meeting autoboot, this moment, whole partitioning tool was all finished.
CN201210385486.6A 2012-10-12 2012-10-12 A kind of method based on network batch subregion Active CN102929662B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210385486.6A CN102929662B (en) 2012-10-12 2012-10-12 A kind of method based on network batch subregion

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210385486.6A CN102929662B (en) 2012-10-12 2012-10-12 A kind of method based on network batch subregion

Publications (2)

Publication Number Publication Date
CN102929662A true CN102929662A (en) 2013-02-13
CN102929662B CN102929662B (en) 2016-08-31

Family

ID=47644472

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210385486.6A Active CN102929662B (en) 2012-10-12 2012-10-12 A kind of method based on network batch subregion

Country Status (1)

Country Link
CN (1) CN102929662B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630421A (en) * 2015-12-25 2016-06-01 曙光信息产业(北京)有限公司 Partition formatting method and device for disks
CN105867848A (en) * 2016-03-28 2016-08-17 联想(北京)有限公司 Information processing method and hard disk module
CN108228204A (en) * 2018-02-09 2018-06-29 卫斌鹏 A kind of computer multisystem installation method
CN112817611A (en) * 2021-01-29 2021-05-18 深圳忆联信息系统有限公司 Interception method and device for system test abnormal environment, computer equipment and storage medium
CN113805971A (en) * 2021-09-23 2021-12-17 武汉深之度科技有限公司 Application program running method, computing device and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100361079C (en) * 2005-11-09 2008-01-09 浪潮电子信息产业股份有限公司 Method for testing synchronous automatic installation for system including multiple complete computers
CN1848787A (en) * 2006-04-30 2006-10-18 西安交通大学 Automatic fast dispositioning method for aggregated server system node
CN101577701A (en) * 2008-05-05 2009-11-11 北京瑞佳晨科技有限公司 Method for initializing disk drive in batches
CN101344852A (en) * 2008-09-02 2009-01-14 华为技术有限公司 Method, device and system for allocating WINDOWS enterprise edition operating system
CN102141924A (en) * 2010-01-29 2011-08-03 迈普通信技术股份有限公司 Batch production method of Linux boards and production server

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630421A (en) * 2015-12-25 2016-06-01 曙光信息产业(北京)有限公司 Partition formatting method and device for disks
CN105867848A (en) * 2016-03-28 2016-08-17 联想(北京)有限公司 Information processing method and hard disk module
CN105867848B (en) * 2016-03-28 2019-09-13 深圳忆联信息系统有限公司 A kind of information processing method and hard disk mould group
CN108228204A (en) * 2018-02-09 2018-06-29 卫斌鹏 A kind of computer multisystem installation method
CN112817611A (en) * 2021-01-29 2021-05-18 深圳忆联信息系统有限公司 Interception method and device for system test abnormal environment, computer equipment and storage medium
CN112817611B (en) * 2021-01-29 2023-08-29 深圳忆联信息系统有限公司 Interception method and device for system test abnormal environment, computer equipment and storage medium
CN113805971A (en) * 2021-09-23 2021-12-17 武汉深之度科技有限公司 Application program running method, computing device and storage medium
CN113805971B (en) * 2021-09-23 2023-10-13 武汉深之度科技有限公司 Application program running method, computing device and storage medium

Also Published As

Publication number Publication date
CN102929662B (en) 2016-08-31

Similar Documents

Publication Publication Date Title
US12056519B2 (en) Virtual machine migration method and apparatus
KR101389977B1 (en) Client terminal and method for supporting multiple Operating System
CN106911729B (en) Remote installation method of operating system suitable for domestic processor
US9053236B1 (en) Automated directory services test setup utility
US20150271014A1 (en) Automatic configuration of new components by infrastructure management software
US20130152074A1 (en) Method for automatic consecutive installing operating systems
CN101650660A (en) Booting a computer system from central storage
US7921230B2 (en) USB devices pre-configuration for KVM switch
CN106873970B (en) Installation method and device of operating system
CN102929662A (en) Network-based method for partitioning in batch
CN102135893A (en) Method for integrating operating system on BIOS (Basic Input Output System) chip and starting operating system on server
US10360043B2 (en) Installation of device drivers from virtual media
CN111124286A (en) Libcloud-based multi-cloud management implementation method
CN105824678A (en) Method and device for installing operating system
US20100235461A1 (en) Network device and method of sharing external storage device
CN103777981A (en) Multi-operation-system remote loading implementation method suitable for X86 framework
US20160026485A1 (en) System and method of loading virtual machines
CN113849272A (en) Method and device for adding GPU (graphics processing Unit) resources in virtual machine
WO2016070690A1 (en) Method, device and system for realizing communication between application and webpage on terminal device
US20200015296A1 (en) Computer system and method thereof for sharing of wireless connection information between uefi firmware and os
CN108647034A (en) A kind of method that list mobile hard disk installs multiple operating systems
US10216505B2 (en) Using machine learning to optimize minimal sets of an application
CN102609301A (en) Method for deploying software for multiple clients quickly
EP2835737A1 (en) Data terminal running mode switching method, device, and data terminal
CN109271179B (en) Virtual machine application program management method, device, equipment and readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant