Find not created hard disk
Fdisk-l
Create a hard disk
Xe sr-create name-label= "Disk1" Shared=false device-config-device=/dev/sdb TYPE=LVM
Iso
Add an ISO repository volume to the server, SSH or Xencenter log in to the server.
View Vgname and space conditions.
Vgdisplay
[[Email protected]]# vgdisplay
---Volume Group---
VG Name VG_XENSTORAGE-4D4E4ACE-E062-035B-1498-E9D49BD005AF
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 36
VG Access Read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 2
Max PV 0
Cur PV 1
ACT PV 1
VG Size 232.82 GB
PE Size 4.00 MB
Total PE 59602
Alloc pe/size 45918/179.37 GB
Free Pe/size 13684/53.45 GB
VG UUID SIXD5Z-LYES-CHFF-LCU1-8G4G-J2V1-KKS2MW
Create a 10G ISO storage volume
Lvcreate-l 10gb-n Myiso vg_xenstorage-95da5250-022e-aaf3-a6a7-7bd8d515262b
ext3 formatting of ISO storage volumes
Mkfs.ext3/dev/vg_xenstorage-95da5250-022e-aaf3-a6a7-7bd8d515262b/myiso
Create an ISO Catalog
Mkdir/myiso
Creating an ISO Repository
Xe sr-create Name-label=isos type=iso \
Device-config:location=/myiso/isos \
Device-config:legacy_mode=true Content-type=iso
Run and modify Vi/etc/rc.local auto mount, add:
Vgchange-a y
Mount/dev/vg_xenstorage-95da5250-022e-aaf3-a6a7-7bd8d515262b/myiso/myiso
Execute script
/etc/rc.local
Df-hal
Download Lite XP
Cd/myiso
wget Http://142.4.36.8:38238/templates/windows/templates/WinXP_Lite.zip
Unzip Winxp_lite.zip
Xe Vm-import Filename=/myiso/winxp.xva sr-uuid=95da5250-022e-aaf3-a6a7-7bd8d515262b
2.SSH or Xencenter console login to the parent server, download and execute the Configuration tool script:
Cd/tmp
RM-RF mserver.sh
wget http://my.xensystem.com/download/mserver.sh
SH mserver.sh
Copy the Code #然后按提示输入您的控制面板域名, enter confirm, this configuration step each mother service needs to be set once
To split the hard disk command:
Xe Pbd-list Sr-uuid=8d2c5f70-7785-8214-3069-bf6341532cce
Xe Pbd-unplug uuid=eeb809d9-212a-5213-cf09-ea4ded0650c6
Xe Sr-forget uuid=0c186c1e-1aca-74ba-6f4a-0e429961d9c0
command to add IP
wget https://www.take2hosting.com/download/addips
chmod +x Addips
./addips--verbose--network=173.252.244.16--broadcast=173.252.244.31--vps
(Entire IP segment)
Restart XAPI Services: Service XAPI restart
Test the read/write speed of the hard drive:
DD If=/dev/zero of=test bs=64k count=4k Oflag=dsync
Single hard drive 20m-40m is a constant value
Read
Hdparm-tt/dev/sda
Use of the Iostat command: the Linux iostat command to view disk I/O Status:
Iostat-d-K 2 2
View the "1" number VDI's UUID
Ls-30/dev/mapper
The machine that shuts down the VPS in SSH:
Xe Vm-shutdown name-label=vpsxx
Such as:
Xe Vm-shutdown name-label=vps1420--force
Top L system performance analysis tools:
You can use the mouse point
Installation:
wget http://downloads.sourceforge.net/project/htop/htop/1.0.1/htop-1.0.1.tar.gz?r=http%3A%2F%2Fsourceforge.net% 2fprojects%2fhtop%2f&ts=1334904978&use_mirror=ncu
TAR-ZXVF htop-1.0.1.tar.gz
CD htop-1.0.1
./configure
Make & make Install
Xen Create hard drive ISO library download and import winxp simple version