» 2017 » August の記事

~ wget and grep the json key value ~

connie 2017.08.30 | Linux | | No Comments

# wget -qO- http://freegeoip.net/json/
{“ip”:”8.8.8.8″,”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”:”)[^”]*’
8.8.8.8

~ 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

開機

睇睇新hdd資料
fdisk -l

如果大過2TB要用parted尼界HDD

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

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

 

mkpart primary 0GB 19.9TB

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

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

#開mount point
mkdir /home/dataDrive

#開機加入MOUNT PT
nano /etc/fstab
#add a row at the back
/dev/sdb1 /home/disk ext4 defaults 1 2

#手動mount一野
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 |

Smiley face

August 2017
S M T W T F S
 12345
6789101112
13141516171819
20212223242526
2728293031