Skip to content

ZEKİ SÜKÜT

IT dünyasında öğrenmek hiç bu kadar keyifli olmamıştı!

Primary Menu
  • VMWARE
    • VMware NSX
    • VMware vCloud Director
    • VMware vSAN
    • VMware vSphere
    • VMware vSphere ESXi
    • VMware vRealize
    • vSphere PowerCLI
    • VMware Problem & Çözüm
  • MICROSOFT
    • OFFICE 365
    • Active Directory
    • Microsoft Exchnage
    • SQL Server
    • SCCM
    • Microsoft Problem & Çözüm
  • EMC
    • Emc Storage
    • Data Domain
    • Avamar Backup
  • LINUX
  • SECURITY
  • YEDEKLEME
    • VEEAM B&R
    • VEEAM B&R Problem ve Çözüm
  • FABRIC SWITCH
  • STORAGE
  • PROJELERİMİZ
Canlı
  • VMWARE
  • VMware vSphere ESXi

ESXi Expand datastore from command line

zekisukut Aralık 13, 2018

Rescan all storage adapter for changes:
1 [root@esxihost:~] esxcli storage core adapter rescan –all

Determine the disk path:
1 [root@esxihost:~] vmkfstools -P /vmfs/volumes/datastore_0
2 VMFS-5.61 file system spanning 1 partitions.
3 File system label (if any): datastore_0
4 Mode: public
5 Capacity 6596801331200 (6291200 file blocks * 1048576), 217090883584 (207034 blocks) avail, max supported file size 69201586814976
6 UUID: 5ad58cdb-c8604cf3-e8fc-a0369f990590
7 Partitions spanned (on “lvm”):
8 naa.523545670e392ba2e81404da45912d543:1
9 Is Native Snapshot Capable: YES

Depending on the output of vmkfstools the Diskpath: is /vmfs/devices/disks/naa.523545670e392ba2e81404da45912d543, :1 means datastore_0 is the first partition on the disk.


Get the Disk layout:
1 [root@esxihost:~] partedUtil get /vmfs/devices/disks/naa.523545670e392ba2e81404da45912d543
2 1336746 255 63 21474836480
3 1 2048 12884901854 0 0

Start Sector of the first partition is 2048, current end sector is 12884901854 .

Determine the last usable end sector. If an error occured like this:
1 [root@esxihost:~] partedUtil getUsableSectors /vmfs/devices/disks/naa.523545670e392ba2e81404da45912d543
2 Error: The backup GPT table is not at the end of the disk, as it should be.  This might mean that another operating system believes the disk is smaller.  Fix, by moving the backup to the end (and removing the old backup)? This will also fix the last usable sector as per the new size.

then you have to correct the GPT partition table first:
1 [root@esxihost:~] partedUtil fixGpt /vmfs/devices/disks/naa.523545670e392ba2e81404da45912d543
2
3 FixGpt tries to fix any problems detected in GPT table.
4 Please ensure that you don’t run this on any RDM (Raw Device Mapping) disk.
5 Are you sure you want to continue (Y/N): y
6 gpt
7 1336746 255 63 21474836480
8 1 2048 12884901854 AA31E02A400F11DB9590000C2911D1B8 vmfs 0
And again. Determine the last usable sector:
1 [root@esxihost:~] partedUtil getUsableSectors /vmfs/devices/disks/naa.523545670e392ba2e81404da45912d543
2 34 21474836446

Last usable sector is 21474836446.
Expand the first partition. 2048 is the start sector and 21474836446 the

new end sector:
1 [root@esxihost:~] partedUtil resize /vmfs/devices/disks/naa.523545670e392ba2e81404da45912d5431 1 2048 21474836446

and also grow the filesystem:
1 [root@esxihost:~] vmkfstools –growfs /vmfs/devices/disks/naa.523545670e392ba2e81404da45912d543:1 /vmfs/devices/disks/naa.523545670e392ba2e81404da45912d543:1

rescan all volumes:
1 [root@esxihost:~] vmkfstools -V

Continue Reading

Previous: Vmware vSphere ESXi – Sharing Disk for Clusters
Next: Vcenter 6.7 Appliance Install

İlgili Yazılar

image
  • VMWARE

API ile VMware SDDC Manager’da DNS nasıl değiştirilir

zekisukut Kasım 28, 2024
image
  • VMWARE
  • VMware vSAN

How to fix vSAN unmounted disks

zekisukut Kasım 28, 2024
image
  • VMWARE
  • VMware vSAN

İnternet olmadan vSAN HCL DB’nizi nasıl güncellenir

zekisukut Kasım 28, 2024

SON YAZILAR

  • Ubuntu Sistemlerde Disk boyutunu artırma – lvextend ve resize2fs kullanımı
  • API ile VMware SDDC Manager’da DNS nasıl değiştirilir
  • How to fix vSAN unmounted disks
  • İnternet olmadan vSAN HCL DB’nizi nasıl güncellenir
  • GPO ile Tarayıcı Şifre Yöneticilerini Devre Dışı Bırakma

Kategoriler

  • Active Directory
  • Avamar Backup
  • Data Domain
  • EMC
  • Emc Storage
  • FABRIC SWITCH
  • GLPI
  • LINUX
  • MICROSOFT
  • Microsoft Exchnage
  • Microsoft Intune
  • Microsoft Problem & Çözüm
  • OFFICE 365
  • One Drive
  • OpenSSL
  • RAID DISK
  • SCCM
  • SECURITY
  • SQL Server
  • STORAGE
  • VEEAM B&R
  • VEEAM B&R Problem ve Çözüm
  • VMWARE
  • VMware NSX
  • VMware Problem & Çözüm
  • VMware vCenter
  • VMware vCloud Director
  • VMware vSAN
  • VMware vSphere
  • VMware vSphere ESXi
  • vRealize
  • vSphere PowerCLI
  • WordPress

Kaçırdıklarınız

  • LINUX

Ubuntu Sistemlerde Disk boyutunu artırma – lvextend ve resize2fs kullanımı

zekisukut Şubat 12, 2025
image
  • VMWARE

API ile VMware SDDC Manager’da DNS nasıl değiştirilir

zekisukut Kasım 28, 2024
image
  • VMWARE
  • VMware vSAN

How to fix vSAN unmounted disks

zekisukut Kasım 28, 2024
image
  • VMWARE
  • VMware vSAN

İnternet olmadan vSAN HCL DB’nizi nasıl güncellenir

zekisukut Kasım 28, 2024
Telif Hakkı © Tüm hakları saklıdır. Zeki SÜKÜT | MoreNews by AF themes.