create the sharedisk on vspere.

原创 2012年03月30日 14:56:48

~ # df -h
Filesystem   Size   Used Available Use% Mounted on
VMFS-5     815.2G 176.8G    638.4G  22% /vmfs/volumes/datastore7
vfat         4.0G  15.7M      4.0G   0% /vmfs/volumes/4f68bda3-97978538-a782-68b5997930fe
vfat       249.7M 127.4M    122.3M  51% /vmfs/volumes/92755d79-1a111aea-3485-10415c73d394
vfat       249.7M 140.4M    109.3M  56% /vmfs/volumes/8a831a72-44771306-34a5-8ef77b16ba57
vfat       285.8M 176.2M    109.6M  62% /vmfs/volumes/4f68bd8c-db674f0a-6000-68b5997930fe
~ # pwd
/
~ # cd vmfs/volumes/datastore7/
/vmfs/volumes/4f68bd9f-19085876-80c4-68b5997930fe # mkdir sharedisk
/vmfs/volumes/4f68bd9f-19085876-80c4-68b5997930fe # cd sharedisk/
/vmfs/volumes/4f68bd9f-19085876-80c4-68b5997930fe/sharedisk # vmkfstools
No valid command specified


OPTIONS FOR FILE SYSTEMS:

vmkfstools -C --createfs [vmfs3|vmfs5]
               -b --blocksize #[mMkK]
               -S --setfsname fsName
           -Z --spanfs span-partition
           -G --growfs grown-partition
   deviceName

           -P --queryfs -h --humanreadable
           -T --upgradevmfs
   vmfsPath

OPTIONS FOR VIRTUAL DISKS:

vmkfstools -c --createvirtualdisk #[gGmMkK]
               -d --diskformat [zeroedthick|
                                thin|
                                eagerzeroedthick]
               -a --adaptertype [buslogic|lsilogic|ide]
           -w --writezeros
           -j --inflatedisk
           -k --eagerzero
           -K --punchzero
           -U --deletevirtualdisk
           -E --renamevirtualdisk srcDisk
           -i --clonevirtualdisk srcDisk
               -d --diskformat [zeroedthick|
                                thin|
                                eagerzeroedthick|
                                rdm:<device>|rdmp:<device>|
                                2gbsparse]
               -N --avoidnativeclone
           -X --extendvirtualdisk #[gGmMkK]
               [-d --diskformat eagerzeroedthick]
           -M --migratevirtualdisk
           -r --createrdm /vmfs/devices/disks/...
           -q --queryrdm
           -z --createrdmpassthru /vmfs/devices/disks/...
           -v --verbose #
           -g --geometry
           -I --snapshotdisk srcDisk
           -x --fix [check|repair]
           -e --chainConsistent
   vmfsPath

OPTIONS FOR DEVICES:

           -L --lock [reserve|release|lunreset|targetreset|busreset|readkeys|readresv] /vmfs/devices/disks/...
           -B --breaklock /vmfs/devices/disks/...

/vmfs/volumes/4f68bd9f-19085876-80c4-68b5997930fe/sharedisk # vmkfstools -c 1024m -a lsilogic -d eagerzeroedthick sharedisk.vmdk
Creating disk 'sharedisk.vmdk' and zeroing it out...
Create: 100% done.
/vmfs/volumes/4f68bd9f-19085876-80c4-68b5997930fe/sharedisk #
Go to vspere client to add the sharedisk:
/vmfs/volumes/4f68bd9f-19085876-80c4-68b5997930fe # ls
2008ent_sp1                           Windows Server 2003 Standard Edition  vm01
MR18_126                              sharedisk                             win2k8 R2 x64
VMware Data Recovery                  template
/vmfs/volumes/4f68bd9f-19085876-80c4-68b5997930fe # cd 2008ent_sp1/
/vmfs/volumes/4f68bd9f-19085876-80c4-68b5997930fe/2008ent_sp1 # ls
2008ent_sp1-01569b60.vswp        2008ent_sp1.vmdk                 2008ent_sp1.vmxf                 vmx-2008ent_sp1-22453088-1.vswp
2008ent_sp1-flat.vmdk            2008ent_sp1.vmsd                 vmware-1.log
2008ent_sp1.nvram                2008ent_sp1.vmx                  vmware.log
/vmfs/volumes/4f68bd9f-19085876-80c4-68b5997930fe/2008ent_sp1 # vi 2008ent_sp1.vmx

pciBridge5.pciSlotNumber = "22"                                                                                  
pciBridge6.pciSlotNumber = "23"                                                                                  
pciBridge7.pciSlotNumber = "24"                                                                                  
scsi0.pciSlotNumber = "160"                                                                                      
ethernet0.pciSlotNumber = "32"                                                                                   
vmci0.pciSlotNumber = "33"                                                                                       
scsi0.sasWWID = "50 05 05 6c f9 de 7f b0"                                                                        
hostCPUID.0 = "0000000b756e65476c65746e49656e69"                                                                 
hostCPUID.1 = "000206c200200800029ee3ffbfebfbff"                                                                 
hostCPUID.80000001 = "0000000000000000000000012c100800"                                                          
guestCPUID.0 = "0000000b756e65476c65746e49656e69"                                                                
guestCPUID.1 = "000206c200010800829822030febfbff"                                                                
guestCPUID.80000001 = "00000000000000000000000128100800"                                                         
userCPUID.0 = "0000000b756e65476c65746e49656e69"                                                                 
userCPUID.1 = "000206c200200800029822030febfbff"                                                                 
userCPUID.80000001 = "00000000000000000000000128100800"                                                          
evcCompatibilityMode = "FALSE"                                                                                   
vmotion.checkpointFBSize = "8388608"                                                                             
scsi0:2.fileName = "/vmfs/volumes/4f68bd9f-19085876-80c4-68b5997930fe/sharedisk/sharedisk.vmdk"                  
#iscsi0:2.mode = "persistent"                                                                                    
scsi0:2.ctkEnabled = "false"                                                                                     
scsi0:2.deviceType = "scsi-hardDisk"                                                                             
scsi0:2.present = "true"                                                                                         
scsi0:2.redo = ""                                                                                                
scsil.present="true"                                                                                             
scsil.sharedBus="virtual"                                                                                        
scsil.veritualDev="lsilogic"                                                                                     
scsil:2.mode="independent-persistent"                                                                            
sched.scsil:2.shares="normal"                                                                                    
disk.locking="false"                                                                                             
diskLib.dataCacheMaxSize="0"                                                                                     
diskLib.dataCacheMaxReadAheadSize="0"                                                                            
diskLib.dataCachePageSize="4096"                                                                                 
diskLib.maxUnsyncedWrites="0"
Modify the file on every VM which will use the sharedisk.

 

 

Actually ,you also can use the GUI to finish this:

On the other machine you can add the existing disk into it.

基础篇之 Create Type

Create Type 的话呢,是创建一个自定义的数据类型,等于说为常用的数据类型建造一个别名的样纸。然后就可以通用当前数据库的当前架构。(当然了,一般来说我们都是使用dbo架构,所以都会无事前面那个...
  • KanzakiOrange
  • KanzakiOrange
  • 2016年05月05日 17:24
  • 175

Graphlab create的基本使用

写在前面GraphLab Create 是一款机器学习的函数库,其中的SFrame也是十分强大的数据管理工具。它允许直接从硬盘中读取数据,免于将数据全部加载到内存中。这就使得对于大数据的处理成为可能....
  • liuge36
  • liuge36
  • 2017年12月30日 12:12
  • 41

MySQL数据库表的基本操作——创建表CREATE TABLE

在操作数据库表之前要先选择数据库,USE
  • u011701678
  • u011701678
  • 2013年08月31日 13:14
  • 29041

数据库CREATE TRIGGER 触发器

CREATE TRIGGER 创建触发器,触发器是一种特殊的存储过程,在用户试图对指定的表执行指定的数据修改语句时自动执行。Microsoft® SQL Server™ 允许为任何给定的 INSE...
  • Listener_ri
  • Listener_ri
  • 2015年04月20日 22:39
  • 350

create()方法和add()方法

create方法 1.create方法可以对POST提交的数据进行处理(通过表中的字段名称与表单提交的名称对应关系自动封装数据实例),例如user表中有一个字段名叫"username",...
  • qq_15936309
  • qq_15936309
  • 2016年09月09日 09:43
  • 1389

环境:QT Create 快捷键

附录 Qt Creator键盘快捷键速查 一般操作的键盘快捷键    操作    快捷键 操作 快捷键 ...
  • zg260
  • zg260
  • 2014年09月19日 10:15
  • 818

hive基本的操作语句(实例简单易懂,create table XX as select XX)

创建表: hive> CREATE TABLE pokes (foo INT, bar STRING);          Creates a table called pokes with tw...
  • longshenlmj
  • longshenlmj
  • 2014年04月16日 11:32
  • 11461

创建表(Create table)--语法详解

创建表(Create table)语法详解 1. ORACLE常用的字段类型 ORACLE常用的字段类型有 VARCHAR2 (size) 可变长度的字符串, 必须规定长度 CHAR(size...
  • u012468263
  • u012468263
  • 2015年11月13日 11:05
  • 1357

MySQL数据定义语句:CREATE(创建)命令、ALTER(修改)命令、DROP(删除)

数据定义语言(DDL):包括CREATE(创建)命令、ALTER(修改)命令、DROP(删除)命令等。 注:MySQL version: 5.6.27 1.创建数据库和数据表: 数据库如果存在,则删除...
  • typa01_kk
  • typa01_kk
  • 2015年10月14日 22:58
  • 1693

tp中让头疼似懂非懂的create

项目中多次用到create() 只能它是表单验证,不过好出错,痛下心扉好好了解理解它的来龙去脉和所用的用法 一:通过create() 方法或者 赋值的方法生成数据对象,然后写入数据库 $m...
  • tianyahelen
  • tianyahelen
  • 2015年01月16日 11:48
  • 352
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:create the sharedisk on vspere.
举报原因:
原因补充:

(最多只允许输入30个字)