» 2017 » August の記事

~ wget and grep the json key value ~

connie 2017.08.30 | Linux | | No Comments

# wget -qO- http://freegeoip.net/json/
{“ip”:”″,”country_code”:”HK”,”country_name”:”Hong Kong”,”region_code”:””,”region_name”:””,”city”:”San Po Kong”,”zip_code”:””,”time_zone”:”Asia/Hong_Kong”,”latitude”:11.11,”longitude”:11.11,”metro_code”:0}

# wget -qO- http://freegeoip.net/json/ | grep -Po ‘(?<=”ip”:”)[^”]*’

~ Create a EXT HDD >16TB for centos on esxi ~

connie 2017.08.22 | centos, ESXi | | No Comments

首先如果要生一個vmdk大於2TB,必須使用 vmware web client 處理
先安裝windows 2012 R2, 再安裝vCenter Server for Windows
Login vSphere Web Client (Flash)
create datacenter, create host , license可以用試用版,因為目標只是想create HDD
edit virtual machine + HDD


fdisk -l


==================Larger than 2TB=============
parted /dev/sdb
mklabel gpt

Model: VMware Virtual disk (scsi)
Disk /dev/sdb: 19.9TB<====


mkpart primary 0GB 19.9TB

==================Larger than 2TB=============

#之後formart the partition to centos ext4
mkfs.ext4 /dev/sdb1

#開mount point
mkdir /home/dataDrive

nano /etc/fstab
#add a row at the back
/dev/sdb1 /home/disk ext4 defaults 1 2

mount /dev/sdb1 /home/dataDrive
df -h

windows server 2012/2016 會食唔到esxi內的default scsi hdd,另到install 唔到window

去edit esxi -> SCSI controller

改做vmware paravirtual

加返esxi 內的driver , 去floppy driver , datastore內的/vmimages/floppes/pvscis-windows2008.flp

2012/2016server 都用windows2008.flp

正常install windows server , 去到hdd個位 load driver

floppy->amd64 ->enter

| HOME |