在 Nutanix AHV 之下的 linux guest OS,如何完成 File system growing?

Nutanix AHV Linux Guest OS

常常在 linux guest OS 裡,會有 LVM resizing 的要求,空間不夠用的時候,想要放大檔案系統。這個功能,在十年前,可是要花錢且貴到嚇死人的功能。

舉例如下:

若你已經有一個 8 vDisk 做出來的 LVM stripe File System (如下圖)
Image_20180316_003

Image_20180316_005

 

第一步) 先在 Nutanix Prism 把 vDisk 線上放大成你要的大小,這邊的例子是 200GB。
Image_20180316_004

或是用 nuanix CVM 裡面的 acli 來完成,例子如下:

#!/bin/bash
#
#
newvdisksize=”200G”
vmname=”mysql1″

for ((x=3;x<=14;x++));
do
     acli vm.disk_update ${vmname} disk_addr=scsi.$x new_size=$newvdisksize;
done

 

第二步) 在你的 linux guest OS 裡執行 LVM 的相關指令

guest VM:

先做 pvresize
# pvresize /dev/sdb /dev/sdc /dev/sdd /dev/sde
# pvresize /dev/sdf /dev/sdg /dev/sdh /dev/sdi

再來是 lvextend 與 xfs grow
# lvextend -l +100%FREE /dev/datadg/sqldatavol
# xfs_growfs /dev/datadg/sqldatavol

看到最終的結果,完工。
Image_20180316_006

本文來自於Simon Cheng’s 儲思盆

Author: design

0 thoughts on “在 Nutanix AHV 之下的 linux guest OS,如何完成 File system growing?

  1. WillieDaulp表示:
    你的留言正在等候審閱。目前顯示的是留言內容的預覽,留言核准後所有人都會看到這則留言。

    Firstly, you call a valid driver’s license. In most cases, you requisite experience held it for at least one (1) year. You also require a acknowledgement (or debit, where accepted) postal card to compensate for the rental and decamp a alluvium and the voucher received after your booking is confirmed.
    When renting in a foreign native land, you again need another type of characterization, by a passport.
    At what age can I farm out a car?
    This depends on where you would like to farm out a car. Conceding that you can slit a crate at the age of 18 in myriad European countries and the states of Additional York and Michigan in the Collaborative States, in numberless locations you should be 21 to lease a car. You can conveniently restrain this via entering your discretion ahead of clicking Search now.
    Note that most rental suppliers burden an additional Teenaged Driver Fee on renters under the stage of 25, yet this majority varies via supplier and location. If you be a party to your years in the forefront searching, we include this fee in the total, allowing for the simplest comparison.
    What should I look recompense when choosing a rental supplier?
    There are two things you should abuse http://cgi.www5b.biglobe.ne.jp/~tirutiru/bbs/lovebbs.cgi to determine which supplier to rental from – reviews and the Rental Conditions.
    We аск every purchaser to place their rental experience after they bead far-off the machine and parade their ratings when you search on a car. If you hankering to be confident you arrange extensive post, look for the Excellent Car Rental Service badge which we award to the finish three suppliers in each situation with an average rating of 8 or higher.
    You should also check the Rental Conditions to make unfailing the rental supplier you determine works a- by reason of your requirements.
    Can I split a car without a creditation card?
    However proper a hardly years ago it was unsuitable to rent a motor without a credit visiting-card, things have changed quickly. Varied suppliers, specially global companies such as Avis, Dollar, Hertz, etc., suffer renters to both a rebate and beat it a lodge with a debit easter card (though the membership card requisite be a Mastercard or Visa).
    If you do not have a faith card, be undeviating to correspond the Payment Policy element of the Rental Conditions prior to booking to persist if the supplier accepts debit cards.

  2. WillieDaulp表示:
    你的留言正在等候審閱。目前顯示的是留言內容的預覽,留言核准後所有人都會看到這則留言。

    Firstly, you need a valid driver’s license. In most cases, you forced to experience held it pro at least one (1) year. You also need a probity (or debit, where accepted) playing-card to compensation after the rental and take one’s leave of a deposit and the voucher received after your booking is confirmed.
    When renting in a foreign native land, you again essential another type of classification, large a passport.
    At what age can I rent a car?
    This depends on where you would like to hire a car. Granted you can rent a crate at the time of 18 in myriad European countries and the states of Late York and Michigan in the Combined States, in many locations you must be 21 to lease a car. You can conveniently check this beside entering your period forward of clicking Search now.
    Note that most rental suppliers supervision an additional Progeny Driver Bill on renters secondary to the seniority of 25, though this age varies during supplier and location. If you be a party to your period before searching, we include this toll in the aggregate, allowing for the simplest comparison.
    What should I look recompense when choosing a rental supplier?
    There are two things you should use http://www.palletmall.co.kr/bbs/board.php?bo_table=free&wr_id=224537 to find out which supplier to rental from – reviews and the Rental Conditions.
    We ask every purchaser to rating their rental circumstance after they bead high the machine and certify their ratings when you search on a car. If you scantiness to be sure you wriggle great mending, look on the Excellent Crate Rental Utilization badge which we award to the finish three suppliers in each location with an general rating of 8 or higher.
    You should also check the Rental Conditions to frame sure the rental supplier you on works best for your requirements.
    Can I slash a car without a credit card?
    Even if virtuous a hardly years ago it was out of the question to fee a car without a believe reveal all, things enjoy changed quickly. Many suppliers, uniquely global companies such as Avis, Dollar, Hertz, etc., authorize renters to both hit and beat it a place with a debit easter card (even though the membership card necessity be a Mastercard or Visa).
    If you do not acquire a acclaim anniversary card, be undeviating to chip the Payment Design apportion of the Rental Conditions late to booking to witness if the supplier accepts debit cards.

  3. WillieDaulp表示:
    你的留言正在等候審閱。目前顯示的是留言內容的預覽,留言核准後所有人都會看到這則留言。

    Firstly, you need a valid driver’s license. In most cases, you forced to experience held it pro at least a woman (1) year. You also need a acknowledgement (or debit, where accepted) card to compensate for the rental and give up a lay and the voucher received after your booking is confirmed.
    When renting in a imported native land, you often trouble another form of identification, normally a passport.
    At what time eon can I rent a car?
    This depends on where you would like to farm out a car. In spite of you can charter out a car at the stage of 18 in innumerable European countries and the states of New York and Michigan in the Collaborative States, in divers locations you sine qua non be 21 to tear a car. You can conveniently curb this by entering your discretion ahead of clicking Search now.
    Note that most rental suppliers supervision an additional Puerile Driver Fee after renters under the seniority of 25, though this age varies by supplier and location. If you pass into your period in the forefront searching, we include this damages in the aggregate, allowing instead of the simplest comparison.
    What should I look instead of when choosing a rental supplier?
    There are two things you should abuse http://team.yzy.free.fr/index.php?file=Members&op=detail&autor=bawdyhinge45 to clinch which supplier to rent from – reviews and the Rental Conditions.
    We аск every customer to place their rental experience after they drop-off off the heap and certify their ratings when you search on a car. If you want to be established you receive extensive advantage, look pro the Tiptop Crate Rental Service badge which we grant to the cut off three suppliers in each position with an general rating of 8 or higher.
    You should also check into the Rental Conditions to energetic sure the rental supplier you judge works most desirable since your requirements.
    Can I rent a pile without a dependability card?
    Granted proper a infrequent years ago it was unsuitable to lease a motor car without a acclaim press card, things have planned changed quickly. Many suppliers, especially extensive companies such as Avis, Dollar, Hertz, etc., allow renters to both hit and leave a deposit with a debit credit card (even though the in the offing requisite be a Mastercard or Visa).
    If you do not organize a credit card, be sure to correspond the Payment Strategy apportion of the Rental Conditions previously to to booking to see if the supplier accepts debit cards.

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *