ãã®èšäºã§ã¯ãSSDãã£ãã·ã³ã°ã䜿çšããŠESXiãã¹ãã®ããã©ãŒãã³ã¹ããããã«åäžãããæ¹æ³ã«ã€ããŠèª¬æããŸãã è·å Žã§ãèªå® ã§ããVMwareã®è£œåã䜿çšããŠããŸããèªå® ã®ç 究宀ã¯ç¡æã®ESXi 6.5ã«åºã¥ããŠæ§ç¯ãããŠããŸãã ãã¹ãã¯ãããŒã ã€ã³ãã©ã¹ãã©ã¯ãã£ãšäžéšã®äœæ¥ãããžã§ã¯ãã®ãã¹ãã®äž¡æ¹ã§ä»®æ³ãã·ã³ãå®è¡ããŸãïŒã©ãããããããVDIã€ã³ãã©ã¹ãã©ã¯ãã£ãå®è¡ããå¿ èŠããããŸããïŒã åŸã ã«ãã·ãã¯VMã¢ããªã±ãŒã·ã§ã³ããã£ã¹ã¯ã·ã¹ãã ã®ããã©ãŒãã³ã¹ã«åããŠå®è¡ããå§ãããã¹ãŠãSDDã«é©åããŸããã§ããã ãœãªã¥ãŒã·ã§ã³ãšããŠãlvmcacheãéžæãããŸããã è«çå³ã¯æ¬¡ã®ããã«ãªããŸãã
ã¹ããŒã å šäœã®åºæ¬ã¯ãCentOS 7ããŒã¹ã®svm VMã§ãããSSDããŒã¿ã¹ãã¢ããã®RDM HDDãšå°ããªVMDKãã£ã¹ã¯ã圌女ã«æ瀺ãããŸãã ãã£ãã·ã³ã°ãšããŒã¿ãã©ãŒãªã³ã°ã¯ããœãããŠã§ã¢-mdadmããã³lvmcacheã«ãã£ãŠå®è£ ãããŸãã VMãã£ã¹ã¯é åã¯ãNFSããŒã¿ã¹ãã¢ãšããŠãã¹ãã«ããŠã³ããããŸãã SSDããŒã¿ã¹ãã¢ã®äžéšã¯ã匷åãªãã£ã¹ã¯ãµãã·ã¹ãã ãå¿ èŠãšããVMçšã«äºçŽãããŠããŸãã
ã³ã³ãã¥ãŒãã£ã³ã°ããŒãã¯ãã¹ã¯ãããã¢ã€ãã³ã§çµã¿ç«ãŠãããŸãã
MBïŒã®ã¬ãã€ãGA-Z68MX-UD2H-B3ïŒrevã1.0ïŒ
HDDïŒ2 x Seagate Barracuda 750Gbã7200 rpm
SSHïŒOCZ Vertex 3 240Gb
ãã¶ãŒããŒãã«ã¯2ã€ã®RAIDã³ã³ãããŒã©ãŒããããŸãã
-Intel Z68 SATAã³ã³ãããŒã©ãŒ
-Marvell 88SE9172 SATAã³ã³ãããŒã©ãŒ
ESXiã§88SE9172ãååŸã§ããŸããã§ããïŒäžéšã®Marvellã¢ããã¿ãŒã®ãã¡ãŒã ãŠã§ã¢ã«ãã°ããããŸãïŒå°ãªããšã88SE91xxïŒïŒãäž¡æ¹ã®ã³ã³ãããŒã©ãŒãACHIã¢ãŒãã®ãŸãŸã«ããããšã«ããŸããã
Rdm
RDMïŒRaw Device MappingïŒãã¯ãããžãŒã«ãããä»®æ³ãã·ã³ã¯ç©çãã©ã€ãã«çŽæ¥ã¢ã¯ã»ã¹ã§ããŸãã éä¿¡ã¯ãå¥ã®VMFSããªã¥ãŒã äžã®ç¹å¥ãªããããã³ã°ãã¡ã€ã«ããã¡ã€ã«ãä»ããŠæäŸãããŸãã RDMã¯2ã€ã®äºæã¢ãŒãã䜿çšããŸãã
-ä»®æ³ã¢ãŒã-ä»®æ³ãã£ã¹ã¯ãã¡ã€ã«ã®å Žåãšåãããã«æ©èœããVMFSã§ä»®æ³ãã£ã¹ã¯ã掻çšã§ããŸãïŒãã¡ã€ã«ããã¯ã¡ã«ããºã ãã€ã³ã¹ã¿ã³ãã¹ãããã·ã§ããïŒã
-ç©çã¢ãŒã-ããäœãã¬ãã«ã®å¶åŸ¡ãå¿ èŠãšããã¢ããªã±ãŒã·ã§ã³ã«ããã€ã¹ãžã®çŽæ¥ã¢ã¯ã»ã¹ãæäŸããŸãã
ä»®æ³ã¢ãŒãã§ã¯ãèªã¿åã/æžã蟌ã¿æäœãç©çããã€ã¹ã«éä¿¡ãããŸãã RDMããã€ã¹ã¯ã²ã¹ãOSã«ä»®æ³ãã£ã¹ã¯ãã¡ã€ã«ãšããŠæ瀺ãããããŒããŠã§ã¢ã®ç¹æ§ã¯é ãããŠããŸãã
ç©çã¢ãŒãã§ã¯ãã»ãšãã©ãã¹ãŠã®SCSIã³ãã³ããããã€ã¹ã«éä¿¡ãããŸãããã²ã¹ãOSã§ã¯ãããã€ã¹ã¯å®ããã€ã¹ãšããŠè¡šç€ºãããŸãã
RDMã䜿çšããŠãã£ã¹ã¯ãã©ã€ããVMã«æ¥ç¶ãããšãVMFSã¬ã€ã€ãŒãåé€ã§ããç©çäºæã¢ãŒãã§ã¯ãVMã§ãããã®ã¹ããŒã¿ã¹ãç£èŠã§ããŸãïŒSMARTãã¯ãããžã䜿çšïŒã ããã«ããã¹ãã§äœããèµ·ãã£ãå ŽåãHDDã皌åäžã®ã·ã¹ãã ã«ããŠã³ãããããšã§VMã«ã¢ã¯ã»ã¹ã§ããŸãã
lvmcache
lvmcacheã¯ãäœéã®HDDããã€ã¹ããé«éã®SSDããã€ã¹ãžã®ããŒã¿ã®ééçãªãã£ãã·ã¥ãæäŸããŸãã LVMãã£ãã·ã¥ã¯ãæãé »ç¹ã«äœ¿çšããããããã¯ãé«éããã€ã¹ã«é 眮ããŸãã ãã£ãã·ã³ã°ã®ãªã³ãšãªãã¯ãäœæ¥ãäžæããããšãªãå®è¡ã§ããŸãã
ããŒã¿ãèªã¿åãããšãããšããã®ããŒã¿ããã£ãã·ã¥ã«ãããã©ãããæããã«ãªããŸãã å¿ èŠãªããŒã¿ãååšããªãå Žåã¯ãHDDããèªã¿åããè¡ãããéäžã§ããŒã¿ããã£ãã·ã¥ã«æžã蟌ãŸããŸãïŒãã£ãã·ã¥ãã¹ïŒã ããŒã¿ã®ãããªãèªã¿åãã¯ãã£ãã·ã¥ããè¡ãããŸãïŒãã£ãã·ã¥ãããïŒã
èšé²
-ã©ã€ãã¹ã«ãŒã¢ãŒã-æžã蟌ã¿æäœãçºçãããšãããŒã¿ã¯ãã£ãã·ã¥ãšHDDã®äž¡æ¹ã«æžã蟌ãŸããŸããããã¯ããå®å šãªãªãã·ã§ã³ã§ãããäºæ ã«ããããŒã¿æ倱ã®å¯èœæ§ã¯ãããã§ãã
-æžãæ»ãã¢ãŒã-æžã蟌ã¿æäœãçºçãããšãããŒã¿ãæåã«ãã£ãã·ã¥ã«æžã蟌ãŸãã次ã«ãã£ã¹ã¯ã«ãã©ãã·ã¥ãããŸããããã¯ãäºæ äžã«ããŒã¿ã倱ãããå¯èœæ§ããããŸãã ïŒãã£ãã·ã¥ã§ããŒã¿ãåä¿¡ããåŸãæžã蟌ã¿æäœã®å®äºã«é¢ããä¿¡å·ãå¶åŸ¡OSã«éä¿¡ããããããããé«éãªãªãã·ã§ã³ã§ãïŒã
ããã¯ããã£ãã·ã¥ïŒã©ã€ãããã¯ïŒãããã£ã¹ã¯ãžã®ããŒã¿ã®ãã³ãæ¹æ³ã§ãã
ã·ã¹ãã ã®ã»ããã¢ãã
SSDããŒã¿ã¹ãã¢ããã¹ãäžã«äœæãããŸãã 䜿çšå¯èœãªã¹ããŒã¹ã䜿çšãããã®ã¹ããŒã ãéžæããŸããã
220Gb â DATASTORE_SSD
149Gb â
61Gb â
10Gb â Host Swap Cache
ä»®æ³ãããã¯ãŒã¯ã¯æ¬¡ã®ãšããã§ãã
æ°ããvSwitchãäœæããŸããïŒ
Networking â Virtual Switches â Add standart virtual switch â (svm_vSwitch, svm_), .
VMkernel NICã¯ããŒãã°ã«ãŒããä»ããŠããã«æ¥ç¶ããŸãã
Networking â VMkernel NICs â Add VMkernel NIC
â Port group â New Port group
â New port group â â svm_PG
â Virtual switch â svm_vSwitch
â IPv4 settings â Configuration â Static â IP
svm VMãæ¥ç¶ãããããŒãã°ã«ãŒããäœæãããŸããã
Networking â Port Groups â Add port group â (svm_Network) svm_vSwitch
ãã£ã¹ã¯ã®æºå
sshçµç±ã§ãã¹ãã«å ¥ãã次ã®ã³ãã³ããå®è¡ããå¿ èŠããããŸãã
: # ls -lh /vmfs/devices/disks/ lrwxrwxrwx 1 root root 72 Feb 22 20:24 vml.01000000002020202020202020202020203956504257434845535433373530 -> t10.ATA_____ST3750525AS_________________________________________9*E lrwxrwxrwx 1 root root 72 Feb 22 20:24 vml.01000000002020202020202020202020203956504257434b46535433373530 -> t10.ATA_____ST3750525AS_________________________________________9*F , «mapping file»: # cd /vmfs/volumes/DATASTORE_SSD/ RDM : # vmkfstools -r /vmfs/devices/disks/vml.01000000002020202020202020202020203956504257434845535433373530 9*E.vmdk # vmkfstools -r /vmfs/devices/disks/vml.01000000002020202020202020202020203956504257434b46535433373530 9*F.vmdk
VMã®æºå
ããã§ããããã®ãã©ã€ããïŒæ¢åã®ããŒããã£ã¹ã¯ïŒæ°ããVMã«æ¥ç¶ã§ããŸãã CentOS 7ãã³ãã¬ãŒãã1vCPUã1024Gb RAMã2 RDMãã£ã¹ã¯ã61Gb ssdãã£ã¹ã¯ã2 vNICïŒVMãããã¯ãŒã¯ã°ã«ãŒãããŒããsvm_NetworkïŒ-OSã®ã€ã³ã¹ããŒã«æã«ã¯ãããã€ã¹ã¿ã€ã-LVMãRAIDã¬ãã«-RAID1ã䜿çšããŸã
NFSãµãŒããŒã®ã»ããã¢ããã¯éåžžã«ç°¡åã§ãã
# yum install nfs-utils # systemctl enable rpcbind # systemctl enable nfs-server # systemctl start rpcbind # systemctl start nfs-server # vi /etc/exports /data 10.0.0.1(rw,sync,no_root_squash,no_subtree_check) # exportfs -ar # firewall-cmd --add-service=nfs --permanent # firewall-cmd --add-service=rpc-bind --permanent # firewall-cmd --add-service=mountd --permanent # firewall-cmd --reload
ãã£ãã·ã¥ããªã¥ãŒã ãšã¡ã¿ããŒã¿ããªã¥ãŒã ãæºåããŠãcl_svm /ããŒã¿ããªã¥ãŒã ã®ãã£ãã·ã¥ãæå¹ã«ããŸãã
: # pvcreate /dev/sdc # vgextend cl_svm /dev/sdc , "man" , 1000 : # lvcreate -L 60M -n meta cl_svm /dev/sdc : # lvcreate -L 58,9G -n cache cl_svm /dev/sdc - : # lvconvert --type cache-pool --cachemode writethrough --poolmetadata cl_svm/meta cl_svm/cache - : # lvconvert --type cache --cachepool cl_svm/cache cl_svm/data : # lvs -o cache_read_hits,cache_read_misses,cache_write_hits,cache_write_misses CacheReadHits CacheReadMisses CacheWriteHits CacheWriteMisses 421076 282076 800554 1043571
ã¢ã¬ã€ç¶æ å€æŽéç¥ïŒ
/etc/mdadm.confãã¡ã€ã«ã®æåŸã«ãã¢ã¬ã€ã«åé¡ãããå Žåã«ã¡ãã»ãŒãžãéä¿¡ãããã¢ãã¬ã¹ãå«ããã©ã¡ãŒã¿ãŒãè¿œå ããå¿ èŠã«å¿ããŠéä¿¡è ã¢ãã¬ã¹ãæå®ããŸãã
MAILADDR alert@domain.ru
MAILFROM svm@domain.ru
å€æŽãæå¹ã«ããã«ã¯ãmdmonitorãµãŒãã¹ãåèµ·åããå¿ èŠããããŸãã
#systemctl restart mdmonitor
VMããã®ã¡ãŒã«ã¯ãssmtpã䜿çšããŠéä¿¡ãããŸãã ç§ã¯RDMãä»®æ³äºæã¢ãŒãã§äœ¿çšããŠããããããã¹ãèªäœããã£ã¹ã¯ã®ã¹ããŒã¿ã¹ããã§ãã¯ããŸãã
ãã¹ãã®æºå
NFSããŒã¿ã¹ãã¢ãESXiã«è¿œå ããŸãã
Storage â Datastores â New Datastore â Mount NFS Datastore
Name: DATASTORE_NFS
NFS server: 10.0.0.2
NFS share: /data
VMã®èµ·åãæ§æããŸãã
Host â Manage â System â Autostart â Edit Settings
Enabled â Yes
Start delay â 180sec
Stop delay â 120sec
Stop action â Shut down
Wait for heartbeat â No
Virtual Machines â svm â Autostart â Increase Priority
( , Inventory )
ãã®ããªã·ãŒã«ãããsvm VMãæåã«èµ·åãããã€ããŒãã€ã¶ãŒãNFSããŒã¿ã¹ãã¢ãããŠã³ãããåŸãæ®ãã®ãã·ã³ããªã³ã«ãªããŸãã ã·ã£ããããŠã³ã¯éã®é åºã§çºçããŸãã VMã®èµ·åé 延æéã¯ãã¯ã©ãã·ã¥ãã¹ãã®çµæã«åºã¥ããŠéžæãããŸãããéå§é 延NFSã®å€ãå°ãããšãããŒã¿ã¹ãã¢ã«ããŠã³ãããæéããªãããã¹ãããŸã å©çšã§ããªãVMãèµ·åããããšããããã§ãã
NFS.HeartbeatFrequency
ãã©ã¡ãŒã¿ãŒã§éã¶ããšãã§ããŸãã
ã³ãã³ãã©ã€ã³ã䜿çšããŠãVMã®èªåèµ·åãããæè»ã«æ§æã§ããŸãã
: # vim-cmd hostsvc/autostartmanager/get_autostartseq (): # update_autostartentry VMId StartAction StartDelay StartOrder StopAction StopDelay WaitForHeartbeat : # vim-cmd hostsvc/autostartmanager/update_autostartentry 3 "powerOn" "120" "1" "guestShutdown" "60" "systemDefault"
ããããªæé©å
ãã¹ãã§ãžã£ã³ããã¬ãŒã ãæå¹ã«ããŸãã
Jumbo Frames: Networking â Virtual Switches â svm_vSwitch MTU 9000;
Networking â Vmkernel NICs â vmk1 MTU 9000
[詳现èšå®]ã§ã次ã®å€ãèšå®ããŸãã
NFS.HeartbeatFrequency = 12
NFS.HeartbeatTimeout = 5
NFS.HeartbeatMaxFailures = 10
Net.TcpipHeapSize = 32 ( 0)
Net.TcpipHeapMax = 512
NFS.MaxVolumes = 256
NFS.MaxQueueDepth = 64 ( 4294967295)
VM svmã§ãžã£ã³ããã¬ãŒã ãæå¹ã«ããŸãã
# ifconfig ens224 mtu 9000 up # echo MTU=9000 >> /etc/sysconfig/network-scripts/ifcfg-ens224
æ§èœ
ããã©ãŒãã³ã¹ã¯ãåæãã¹ãã§æž¬å®ããŸããïŒæ¯èŒã®ãããäœæ¥äžã®ã¯ã©ã¹ã¿ãŒïŒå€éïŒãã枬å®å€ãååŸããŸããïŒã
ãã¹ãVMã§äœ¿çšããããœãããŠã§ã¢ïŒ
-CentOS 7.3.1611 OSïŒ8 vCPUã12Gb vRAMã100Gb vHDDïŒ
-fio v2.2.8
: # dd if=/dev/zero of=/dev/sdb bs=2M oflag=direct # fio -readonly -name=rr -rw=randread -bs=4k -runtime=300 -iodepth=1 -filename=/dev/sdb -ioengine=libaio -direct=1 # fio -readonly -name=rr -rw=randread -bs=4k -runtime=300 -iodepth=24 -filename=/dev/sdb -ioengine=libaio -direct=1 # fio -name=rw -rw=randwrite -bs=4k -runtime=300 -iodepth=1 -filename=/dev/sdb -ioengine=libaio -direct=1 # fio -name=rw -rw=randwrite -bs=4k -runtime=300 -iodepth=24 -filename=/dev/sdb -ioengine=libaio -direct=1
çµæãè¡šã«ç€ºããŸãïŒ*ãã¹ãäžãsvm VMã®å¹³åCPUè² è·ã«æ³šæïŒïŒ
ãã£ã¹ã¯ã®çš®é¡ | FIOæ·±ã1ïŒiopsïŒ | FIOæ·±ã24ïŒiopsïŒ | ||
---|---|---|---|---|
ã©ã³ããªãŒã | randwrite | ã©ã³ããªãŒã | randwrite | |
HDD | 77 | 99 | 169 | 100 |
SSD | 5639 | 17039 | 40868 | 53670 |
SSDãã£ãã·ã¥ | FIOæ·±ã1ïŒiopsïŒ | FIOæ·±ã24ïŒiopsïŒ | CPU /æºåå®äº*ïŒ | ||
---|---|---|---|---|---|
ã©ã³ããªãŒã | randwrite | ã©ã³ããªãŒã | randwrite | ||
ãªã | 103 | 97 | 279 | 102 | 2.7 / 0.15 |
ã« | 1390 | 722 | 6474 | 576 | 15 / 0.1 |
ãã£ã¹ã¯ã®çš®é¡ | FIOæ·±ã1ïŒiopsïŒ | FIOæ·±ã24ïŒiopsïŒ | ||
---|---|---|---|---|
ã©ã³ããªãŒã | randwrite | ã©ã³ããªãŒã | randwrite | |
900Gb 10kïŒ6D + 2PïŒ | 122 | 1085 | 2114 | 1107 |
4Tb 7.2kïŒ8D + 2PïŒ | 68 | 489 | 1643 | 480 |
èµ·åæã«Windows 7ãšãªãã£ã¹ã¹ã€ãŒãïŒMS Office 2013 Pro + Visio + ProjectïŒã§5ã€ã®VMãå®è¡ããŠãããšãã«ãæã§è§Šããããšãã§ããçµæãåŸãããŸããã ãã£ãã·ã¥ããŠã©ãŒã ã¢ãããããšãVMã¯ããé«éã«ããŒããããHDDã¯äºå®äžããŒãã«åå ããŸããã èµ·åãããã³ã«ã5ã€ã®VMã®ãã¡1ã€ãå šè² è·ã«ãªãããã¹ãŠã®VMãå šè² è·ã«ãªãæéãèšé²ããŸããã
ãã | ããŒã¿ã¹ã㢠| æåã®æã¡äžã | äºåç®ã®æã¡äžã | 3åç®ã®æã¡äžã | |||
---|---|---|---|---|---|---|---|
æåã®VMããŒãæé | ãã¹ãŠã®VMã®ããŠã³ããŒãæé | æåã®VMããŒãæé | ãã¹ãŠã®VMã®ããŠã³ããŒãæé | æåã®VMããŒãæé | ãã¹ãŠã®VMã®ããŠã³ããŒãæé | ||
1 | HDD VMFS6 | 4å 8ç§ | 6å 28ç§ | 3å 56ç§ | 6å 23ç§ | 3å 40ç§ | 5å 50ç§ |
2 | NFSïŒSSDãã£ãã·ã¥ãªãïŒ | 2å 20ç§ | 3å 2ç§ | 2å 34ç§ | 3å 2ç§ | 2å 34ç§ | 2å 57ç§ |
3 | NFSïŒSSDãã£ãã·ã¥ãªã³ïŒ | 2å 33ç§ | 2å 50ç§ | 1å 23ç§ | 1å 51ç§ | 1å 0ç§ | 1å 13ç§ |
åäžã®VMã®ããŒãæéã¯æ¬¡ã®ãšããã§ãã
â HDD VMFS6 - 50
â NFS - 35
â NFS - 26
ã°ã©ãã®åœ¢åŒã§ïŒ
è¡çªè©Šéš
é»æºãåã
ãã¹ãã®é»æºãå ¥ããŠããŒãããåŸãsvm VMãFSãã§ãã¯ã§èµ·åãïŒããŒã¿ããã£ãã·ã¥ã«æ®ã£ãïŒãNFSããŒã¿ã¹ãã¢ããã¹ãã«ããŠã³ããããåŸãæ®ãã®VMãããŒããããåé¡ãããŒã¿æ倱ããããŸããã§ããã
HDDé害ïŒæš¡å£ïŒ
SATAãã©ã€ãã®é»æºãåãããšã«ããŸããã æ®å¿µãªããããããã¹ã¯ããã¯ãµããŒããããŠããªãããããã¹ããã¯ã©ãã·ã¥ãããå¿ èŠããããŸãã ãã©ã€ããåæãããçŽåŸã«ãã€ãã³ãã«æ å ±ã衚瀺ãããŸãã
ãã£ã¹ã¯ã倱ããããšãã«ããã€ããŒãã€ã¶ãŒãVM svmã«è³ªåã«çããããæ±ããã®ã¯äžå¿«ãªç¬éã§ãããããã®ä»®æ³ããã€ã¹ãä»®æ³ãã·ã³ããããããªã ãŒãããŠã[åè©Šè¡]ãã¯ãªãã¯ããŠç¶è¡ã§ããå ŽåããããŸãã ãã®ã»ãã·ã§ã³ãçµäºããã«ã¯ã[ãã£ã³ã»ã«]ãã¯ãªãã¯ããŠãã ãããã-ãã·ã³ã¯ããªãŒãºç¶æ ã§ãã
ãã£ã¹ã¯ã«äžæçã§åãã«è¶³ããªãåé¡ïŒããšãã°ãã«ãŒãã®çç±ïŒããããšæ³åããå Žåãåé¡ãä¿®æ£ããŠãã¹ãã®é»æºãå ¥ãããšããã¹ãŠãæ£åžžã«èµ·åããŸãã
SSDã®é害
æãäžå¿«ãªç¶æ³ã¯ãssdã®é害ã§ãã ããŒã¿ãžã®ã¢ã¯ã»ã¹ã¯ç·æ¥ã¢ãŒãã§ãã ssdã亀æãããšãã¯ãã·ã¹ãã ã»ããã¢ããæé ãç¹°ãè¿ãå¿ èŠããããŸãã
ã¡ã³ããã³ã¹ïŒãã£ã¹ã¯äº€æïŒ
ïŒSMARTã®çµæã«å¿ããŠïŒçœå®³ãçºçããããšããŠããå Žåããããæ©èœããçœå®³ãšäº€æããã«ã¯ã次ã®æé ãïŒsvm VMäžã§ïŒå®è¡ããå¿ èŠããããŸãã
: # cat /proc/mdstat : # mdadm --detail /dev/md126 /dev/md126 : # mdadm --manage /dev/md127 --fail /dev/sda1 # mdadm --manage /dev/md126 --fail /dev/sda2 : # mdadm --manage /dev/md127 --remove /dev/sda1 # mdadm --manage /dev/md126 --remove /dev/sda2
VMèšå®ã§ãæ»ã«ãããŠããvHDDããåãé¢ããå¿ èŠããããŸãããã®åŸãHDDãæ°ãããã®ãšäº€æããŸãã
次ã«ãRDMãã©ã€ããæºåããVMã«svmãè¿œå ããŸãã
, X â SCSI Virtual Device Node vHDD: # echo "- - -" > /sys/class/scsi_host/hostX/scan sfdisk : # sfdisk -d /dev/sdb | sfdisk /dev/sdc , : # mdadm --manage /dev/md127 --add /dev/sdc1 # mdadm --manage /dev/md126 --add /dev/sdc2 # grub2-install /dev/sdc
ç·æ¥ããŒã¿ã¢ã¯ã»ã¹
ãã£ã¹ã¯ã®1ã€ãã¯ãŒã¯ã¹ããŒã·ã§ã³ã«æ¥ç¶ãããŠããå ŽåãRAIDããåéããããã£ãã·ã¥ãç¡å¹ã«ããŠãLVMããªã¥ãŒã ãããŠã³ãããŠããŒã¿ã«ã¢ã¯ã»ã¹ããå¿ èŠããããŸãã
# mdadm --assemble --scan # lvremove cl_svm/cache # lvchanange -ay /dev/cl_svm/data # mount /dev/cl_svm/data /mnt/data
ãŸãããã£ã¹ã¯ããã·ã¹ãã ãçŽæ¥èµ·åãããããã¯ãŒã¯ãã»ããã¢ããããNFSããŒã¿ã¹ãã¢ãå¥ã®ãã¹ãã«æ¥ç¶ããããšããŸãã-VMã¯äœ¿çšå¯èœã§ãã
ãŸãšã
ãã®çµæãã©ã€ãã¹ã«ãŒã¢ãŒãã§lvmcacheã䜿çšãããã£ãã·ã¥ãµã€ãº60Gbã®ã»ã¯ã·ã§ã³ã䜿çšããŸãã ãã¹ãã®CPUããã³RAMãªãœãŒã¹ãå°ãç ç²ã«ããŸãã-210Gbã®éåžžã«é«éãªãã£ã¹ã¯ã¹ããŒã¹ãš1.3Tbã®äœéãªãã£ã¹ã¯ã¹ããŒã¹ã®ä»£ããã«ããã©ãŒã«ããã¬ã©ã³ã¹ãåãã680Gbãš158Gbã®é«éãååŸããŸããïŒãã ãããã£ã¹ã¯ãäºæããæ éããå Žåã¯ãããŒã¿ã«ã¢ã¯ã»ã¹ããããã»ã¹ã«åå ããå¿ èŠããããŸãïŒã