{"id":436,"date":"2025-09-10T15:59:41","date_gmt":"2025-09-10T12:59:41","guid":{"rendered":"https:\/\/destek.narhost.com\/?p=436"},"modified":"2026-09-12T14:15:35","modified_gmt":"2026-09-12T11:15:35","slug":"centos-7-disk-genisletme","status":"publish","type":"post","link":"https:\/\/narhost.com\/destek\/centos-7-disk-genisletme\/","title":{"rendered":"AlmaLinux&#8217;ta LVM ile Disk Nas\u0131l Geni\u015fletilir (VPS \u0130lk Kurulum 8\/10)"},"content":{"rendered":"<p class=\"kb-dogrulama\">Son g\u00f6zden ge\u00e7irme: Eyl\u00fcl 2026 \u00b7 AlmaLinux 9 resm\u00ee dok\u00fcman\u0131na g\u00f6re<\/p>\n<div id=\"hizli-cozum\" class=\"ai-box ai-box--cozum\">\n<p class=\"ai-box-title\">H\u0131zl\u0131 \u00e7\u00f6z\u00fcm<\/p>\n<p><strong>AlmaLinux LVM disk geni\u015fletme<\/strong>, sa\u011flay\u0131c\u0131n\u0131n b\u00fcy\u00fctt\u00fc\u011f\u00fc sanal diski \u00f6nce b\u00f6l\u00fcme, sonra fiziksel birime, sonra mant\u0131ksal birime ve en son dosya sistemine yans\u0131tmakt\u0131r: <code>growpart<\/code> ile b\u00f6l\u00fcm\u00fc, <code>pvresize<\/code> ile fiziksel birimi, <code>lvextend<\/code> ile mant\u0131ksal birimi b\u00fcy\u00fct\u00fcr, <code>xfs_growfs<\/code> ile dosya sistemini geni\u015fletirsiniz. Her ad\u0131mdan \u00f6nce <code>lsblk<\/code> ile ayg\u0131t ad\u0131n\u0131 do\u011frulamadan ve yedek almadan devam etmeyin.<\/p>\n<ol>\n<li>Ayg\u0131t adlar\u0131n\u0131 do\u011frulay\u0131n: <code>lsblk<\/code><\/li>\n<li>B\u00f6l\u00fcm\u00fc ve fiziksel birimi b\u00fcy\u00fct\u00fcn: <code>growpart \/dev\/sda 1 &amp;&amp; pvresize \/dev\/sda1<\/code><\/li>\n<li>Mant\u0131ksal birimi ve dosya sistemini b\u00fcy\u00fct\u00fcn: <code>lvextend -l +100%FREE \/dev\/almalinux\/root &amp;&amp; xfs_growfs \/<\/code><\/li>\n<\/ol>\n<\/div>\n<table class=\"kb-uyg\">\n<tr>\n<th>Panel<\/th>\n<td>Yok \u2014 komutlar terminalden \u00e7al\u0131\u015ft\u0131r\u0131l\u0131r<\/td>\n<\/tr>\n<tr>\n<th>Sistem<\/th>\n<td>AlmaLinux 9 (VPS\/VDS), LVM \u00fczerinde XFS varsay\u0131lan dosya sistemi<\/td>\n<\/tr>\n<tr>\n<th>Yetki<\/th>\n<td>root ya da sudo yetkili kullan\u0131c\u0131<\/td>\n<\/tr>\n<tr>\n<th>Narhost \u00fcr\u00fcn\u00fc<\/th>\n<td><a href=\"https:\/\/narhost.com\/vps-sunucu\" title=\"Narhost VPS Sunucu paketleri\">VPS Sunucu<\/a>, VDS Sunucu<\/td>\n<\/tr>\n<\/table>\n<div class=\"kb-once\">\n<p class=\"label\">Ba\u015flamadan \u00f6nce<\/p>\n<ul>\n<li>Sanal diskin sa\u011flay\u0131c\u0131 taraf\u0131nda (Narhost m\u00fc\u015fteri panelinden talep edilerek) zaten b\u00fcy\u00fct\u00fclm\u00fc\u015f oldu\u011funu do\u011frulay\u0131n; bu kart yaln\u0131zca i\u015fletim sistemi i\u00e7indeki tan\u0131tma ad\u0131m\u0131n\u0131 anlat\u0131r.<\/li>\n<li>G\u00fcncel bir yedek ya da anl\u0131k g\u00f6r\u00fcnt\u00fc (snapshot) al\u0131n; disk i\u015flemleri geri al\u0131namaz.<\/li>\n<li><code>lsblk<\/code> \u00e7\u0131kt\u0131s\u0131n\u0131 i\u015fleme ba\u015flamadan \u00f6nce not edin, ayg\u0131t ad\u0131n\u0131 komuttan komuta kar\u0131\u015ft\u0131rmay\u0131n.<\/li>\n<li>\u0130\u015flemi d\u00fc\u015f\u00fck trafikli bir saatte yap\u0131n; kesinti beklenmez ama ihtimal her zaman vard\u0131r.<\/li>\n<\/ul>\n<\/div>\n<h2>AlmaLinux LVM Disk Geni\u015fletme Neden Gerekir<\/h2>\n<p>Sa\u011flay\u0131c\u0131 bir VPS&#8217;in disk boyutunu b\u00fcy\u00fctt\u00fc\u011f\u00fcnde bu alan i\u015fletim sistemine otomatik yans\u0131maz; sanal diskte bo\u015f bir alan olarak durur. AlmaLinux 9 varsay\u0131lan kurulumda LVM (Logical Volume Manager) kullan\u0131r: fiziksel disk bir b\u00f6l\u00fcme (partition), b\u00f6l\u00fcm bir fiziksel birime (PV), PV bir birim grubuna (VG), VG de mant\u0131ksal birimlere (LV) b\u00f6l\u00fcn\u00fcr. AlmaLinux LVM disk geni\u015fletme i\u015flemi bu zinciri ba\u015ftan sona b\u00fcy\u00fctmektir; bir halka atlan\u0131rsa \u00fcstteki katman b\u00fcy\u00fcmez.<\/p>\n<p>AlmaLinux OS, RHEL ile ikili uyumlu bir da\u011f\u0131t\u0131md\u0131r; bu nedenle LVM ve XFS ara\u00e7lar\u0131n\u0131n davran\u0131\u015f\u0131 RHEL 9 ile birebir ayn\u0131d\u0131r. Bu uyumluluk <a href=\"https:\/\/wiki.almalinux.org\/\" title=\"AlmaLinux Wiki \u2014 Hakk\u0131nda (RHEL ile ikili uyumluluk)\" target=\"_blank\" rel=\"noopener\">AlmaLinux&#8217;un resmi wiki sayfas\u0131nda<\/a> da belirtilir.<\/p>\n<div class=\"warn-box\">\n<p class=\"label\">Dikkat<\/p>\n<p>Yanl\u0131\u015f ayg\u0131t ad\u0131yla \u00e7al\u0131\u015ft\u0131r\u0131lan bir <code>growpart<\/code>, <code>pvresize<\/code> ya da <code>lvextend<\/code> komutu veri kayb\u0131na yol a\u00e7abilir. A\u015fa\u011f\u0131daki <code>\/dev\/sda<\/code>, <code>almalinux\/root<\/code> gibi adlar \u00f6rnektir; kendi sunucunuzda <strong>her zaman \u00f6nce <code>lsblk<\/code> ile ger\u00e7ek ayg\u0131t ad\u0131n\u0131 do\u011frulay\u0131n<\/strong> ve i\u015fleme ba\u015flamadan bir yedek al\u0131n.<\/p>\n<\/div>\n<figure class=\"nh-sema\"><img src=\"https:\/\/narhost.com\/destek\/wp-content\/uploads\/2026\/09\/centos-7-disk-genisletme-sema-narhost.webp\" alt=\"almalinux lvm disk geni\u015fletme ak\u0131\u015f \u015femas\u0131 \u2014 ayg\u0131t do\u011frulama, b\u00f6l\u00fcm b\u00fcy\u00fctme, mant\u0131ksal birim ve dosya sistemi geni\u015fletme ad\u0131mlar\u0131\" width=\"1200\" height=\"500\" loading=\"lazy\" decoding=\"async\"><figcaption>Depolama alan\u0131 b\u00fcy\u00fctme i\u015flemi d\u00f6rt katmanda s\u0131rayla ilerler.<\/figcaption><\/figure>\n<h2>AlmaLinux LVM Disk Geni\u015fletme Ad\u0131m Ad\u0131m<\/h2>\n<ol class=\"kb-adimlar\">\n<li><strong>Mevcut disk d\u00fczenini g\u00f6r\u00fcnt\u00fcleyin.<\/strong> Ayg\u0131t adlar\u0131n\u0131, b\u00f6l\u00fcmleri ve ba\u011flama noktalar\u0131n\u0131 g\u00f6rmek i\u00e7in:\n<pre><code class=\"language-bash\">lsblk<\/code><\/pre>\n<p class=\"kb-cikti\">Beklenen sonu\u00e7: <code>sda<\/code> diskinin alt\u0131nda <code>sda1<\/code> (boot) ve LVM b\u00f6l\u00fcm\u00fc, bunun alt\u0131nda <code>almalinux-root<\/code> ve <code>almalinux-swap<\/code> mant\u0131ksal birimleri g\u00f6r\u00fcn\u00fcr. B\u00fcy\u00fct\u00fclen disk boyutu <code>sda<\/code> sat\u0131r\u0131nda, hen\u00fcz kullan\u0131lmayan alan b\u00f6l\u00fcm ile disk boyutu aras\u0131ndaki farkta g\u00f6r\u00fcn\u00fcr.<\/p>\n<\/li>\n<li><strong>B\u00f6l\u00fcm\u00fc b\u00fcy\u00fct\u00fcn.<\/strong> B\u00f6l\u00fcm tablosunu, diskin yeni boyutunu kapsayacak \u015fekilde geni\u015fletin (paket kurulu de\u011filse \u00f6nce <code>dnf install cloud-utils-growpart -y<\/code> \u00e7al\u0131\u015ft\u0131r\u0131n).\n<pre><code class=\"language-bash\">growpart \/dev\/sda 1<\/code><\/pre>\n<p class=\"kb-cikti\">Beklenen sonu\u00e7: &#8220;CHANGED: partition=1 start=&#8230; old: size=&#8230; end=&#8230; new: size=&#8230;&#8221; sat\u0131r\u0131 g\u00f6r\u00fcn\u00fcr; boyut sunucunuzdaki ger\u00e7ek yeni disk boyutuna g\u00f6re de\u011fi\u015fir.<\/p>\n<\/li>\n<li><strong>Fiziksel birimi (PV) b\u00fcy\u00fct\u00fcn.<\/strong> B\u00f6l\u00fcmdeki yeni alan\u0131 LVM&#8217;e tan\u0131t\u0131n.\n<pre><code class=\"language-bash\">pvresize \/dev\/sda1<\/code><\/pre>\n<p class=\"kb-cikti\">Beklenen sonu\u00e7: &#8220;Physical volume \/dev\/sda1 resized&#8221; mesaj\u0131 gelir; <code>vgs<\/code> komutuyla birim grubunun bo\u015f alan\u0131n\u0131n (Free) artt\u0131\u011f\u0131n\u0131 g\u00f6rebilirsiniz.<\/p>\n<\/li>\n<li><strong>Mant\u0131ksal birimi (LV) b\u00fcy\u00fct\u00fcn.<\/strong> Bo\u015f alan\u0131n tamam\u0131n\u0131 k\u00f6k dosya sistemine ay\u0131r\u0131n.\n<pre><code class=\"language-bash\">lvextend -l +100%FREE \/dev\/almalinux\/root<\/code><\/pre>\n<p class=\"kb-cikti\">Beklenen sonu\u00e7: &#8220;Size of logical volume almalinux\/root changed&#8221; mesaj\u0131 ve yeni boyut g\u00f6r\u00fcn\u00fcr; komut mant\u0131ksal birimi b\u00fcy\u00fct\u00fcr ama dosya sistemi hen\u00fcz b\u00fcy\u00fcmemi\u015ftir.<\/p>\n<\/li>\n<li><strong>Dosya sistemini geni\u015fletin.<\/strong> AlmaLinux 9&#8217;un varsay\u0131lan dosya sistemi XFS&#8217;tir; XFS yaln\u0131zca \u00e7evrimi\u00e7i ve yaln\u0131zca b\u00fcy\u00fct\u00fclerek geni\u015fletilebilir.\n<pre><code class=\"language-bash\">xfs_growfs \/<\/code><\/pre>\n<p class=\"kb-cikti\">Beklenen sonu\u00e7: blok say\u0131s\u0131n\u0131n artt\u0131\u011f\u0131n\u0131 g\u00f6steren bir \u00e7\u0131kt\u0131 gelir. K\u00f6k dosya sisteminiz ext4 ise bu komut yerine <code>resize2fs \/dev\/almalinux\/root<\/code> kullan\u0131l\u0131r.<\/p>\n<\/li>\n<\/ol>\n<h2>Do\u011frulama<\/h2>\n<div class=\"success-box\">\n<p class=\"label\">Sonu\u00e7<\/p>\n<p><code>df -h \/<\/code> komutu k\u00f6k b\u00f6l\u00fcm\u00fcn yeni, b\u00fcy\u00fcm\u00fc\u015f boyutunu g\u00f6steriyorsa disk geni\u015fletme i\u015flemi tamamlanm\u0131\u015ft\u0131r. <code>lvs<\/code> ve <code>vgs<\/code> \u00e7\u0131kt\u0131s\u0131nda birim grubunun bo\u015f alan\u0131n\u0131n (Free PE) s\u0131f\u0131ra yak\u0131n olmas\u0131, t\u00fcm alan\u0131n mant\u0131ksal birime aktar\u0131ld\u0131\u011f\u0131n\u0131 do\u011frular.<\/p>\n<\/div>\n<h2>H\u00e2l\u00e2 \u00c7\u00f6z\u00fclmediyse<\/h2>\n<ul>\n<li><strong>growpart &#8220;NOCHANGE&#8221; diyor.<\/strong> Sa\u011flay\u0131c\u0131 taraf\u0131nda disk hen\u00fcz b\u00fcy\u00fct\u00fclmemi\u015ftir; \u00f6nce Narhost m\u00fc\u015fteri panelinden disk boyutu art\u0131\u015f\u0131n\u0131n tamamland\u0131\u011f\u0131n\u0131 do\u011frulay\u0131n.<\/li>\n<li><strong>xfs_growfs &#8220;not a directory&#8221; ya da benzer bir hata veriyor.<\/strong> Komuta b\u00f6l\u00fcm ad\u0131 de\u011fil, ba\u011flama noktas\u0131 (mount point, \u00f6r. <code>\/<\/code>) verilmesi gerekir; <code>df -h<\/code> ile do\u011fru ba\u011flama noktas\u0131n\u0131 bulun.<\/li>\n<li><strong>Dosya sisteminiz ext4, xfs_growfs &#8220;unknown file system type&#8221; diyor.<\/strong><code>resize2fs \/dev\/almalinux\/root<\/code> komutunu kullan\u0131n; XFS ve ext4 i\u00e7in geni\u015fletme arac\u0131 farkl\u0131d\u0131r.<\/li>\n<li><strong>lvextend &#8220;insufficient free space&#8221; diyor.<\/strong> 2. ve 3. ad\u0131m (growpart, pvresize) ba\u015far\u0131yla tamamlanmam\u0131\u015f demektir; <code>lsblk<\/code> ve <code>vgs<\/code> ile hangi katman\u0131n b\u00fcy\u00fcmedi\u011fini kontrol edin.<\/li>\n<\/ul>\n<div class=\"cta-box\">\n<p class=\"label\">Narhost deste\u011fi<\/p>\n<p>Talebe \u015funlar\u0131 ekleyin: sunucu IP adresi, <code>lsblk<\/code> ve <code>vgs<\/code> \u00e7\u0131kt\u0131s\u0131, hangi ad\u0131mda kald\u0131\u011f\u0131n\u0131z, ald\u0131\u011f\u0131n\u0131z hata mesaj\u0131.<\/p>\n<p><a class=\"cta-btn\" href=\"https:\/\/narhost.com\/submitticket.php\" title=\"Narhost destek talebi a\u00e7\">Destek talebi a\u00e7<\/a><\/div>\n<div class=\"kb-ilgili\">\n<p class=\"label\">Sonraki ad\u0131mlar<\/p>\n<ul>\n<li><a href=\"https:\/\/narhost.com\/destek\/vps-vds-ilk-kurulum-rehberi\/\" title=\"VPS VDS Sunucu \u0130lk Kurulum Rehberi \u2014 Narhost Destek\">VPS ilk kurulum rehberinin tamam\u0131 \u2014 8\/10<\/a><\/li>\n<li><a href=\"https:\/\/narhost.com\/destek\/yedekleme-ve-geri-yukleme-rehberi\/\" title=\"Yedekleme ve geri y\u00fckleme rehberi \u2014 Narhost Destek\">\u0130\u015flemden \u00f6nce: yedekleme ve geri y\u00fckleme rehberi<\/a><\/li>\n<li><a href=\"https:\/\/narhost.com\/destek\/linux-sunucuda-disk-kullanimi-nasil-denetlenir\/\" title=\"Linux sunucuda disk kullan\u0131m\u0131 nas\u0131l denetlenir \u2014 Narhost Destek\">\u0130\u015flemden sonra: disk kullan\u0131m\u0131n\u0131 izleme<\/a><\/li>\n<li><a href=\"https:\/\/narhost.com\/destek\/linux-log-dosyalari-nasil-okunur\/\" title=\"Linux log dosyalar\u0131 nas\u0131l okunur \u2014 Narhost Destek\">Hata ay\u0131klama: Linux log dosyalar\u0131 nas\u0131l okunur<\/a><\/li>\n<\/ul>\n<\/div>\n<div class=\"kb-faq\">\n<h2>S\u0131k\u00e7a Sorulan Sorular<\/h2>\n<h3>AlmaLinux LVM disk geni\u015fletme sunucuyu yeniden ba\u015flatmay\u0131 gerektirir mi?<\/h3>\n<p>Hay\u0131r; <code>growpart<\/code>, <code>pvresize<\/code>, <code>lvextend<\/code> ve <code>xfs_growfs<\/code> \u00e7evrimi\u00e7i \u00e7al\u0131\u015f\u0131r, k\u00f6k dosya sistemi ba\u011fl\u0131yken b\u00fcy\u00fct\u00fclebilir. Sunucu yeniden ba\u015flatmadan \u00f6nce kernel g\u00fcncellemesi bekliyorsan\u0131z o ayr\u0131 bir konudur.<\/p>\n<h3>Dosya sistemim ext4 ise ad\u0131mlar de\u011fi\u015fir mi?<\/h3>\n<p>\u0130lk d\u00f6rt ad\u0131m (lsblk, growpart, pvresize, lvextend) ayn\u0131 kal\u0131r; yaln\u0131zca son ad\u0131mda <code>xfs_growfs<\/code> yerine <code>resize2fs \/dev\/almalinux\/root<\/code> \u00e7al\u0131\u015ft\u0131r\u0131l\u0131r.<\/p>\n<h3>Yanl\u0131\u015f ayg\u0131t ad\u0131 yazarsam ne olur?<\/h3>\n<p>Yanl\u0131\u015f diskte ya da b\u00f6l\u00fcmde \u00e7al\u0131\u015ft\u0131r\u0131lan <code>growpart<\/code>\/<code>pvresize<\/code>\/<code>lvextend<\/code> o alandaki veriyi bozabilir ya da eri\u015filemez hale getirebilir. Bu y\u00fczden her komuttan \u00f6nce <code>lsblk<\/code> ile ayg\u0131t ad\u0131 do\u011frulan\u0131r ve \u00f6ncesinde yedek al\u0131n\u0131r.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>AlmaLinux LVM disk geni\u015fletme: lsblk ile ayg\u0131t do\u011frulama, growpart ile b\u00f6l\u00fcm b\u00fcy\u00fctme, pvresize ve lvextend ile birim geni\u015fletme, xfs_growfs ile dosya sistemini b\u00fcy\u00fctme \u2014 riskli ad\u0131mlar ve yedek uyar\u0131s\u0131yla.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,13],"tags":[252],"class_list":["post-436","post","type-post","status-publish","format-standard","hentry","category-vds-server","category-vps-server","tag-lvm"],"meta_box":[],"_links":{"self":[{"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/posts\/436","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/comments?post=436"}],"version-history":[{"count":3,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/posts\/436\/revisions"}],"predecessor-version":[{"id":679,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/posts\/436\/revisions\/679"}],"wp:attachment":[{"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/media?parent=436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/categories?post=436"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/tags?post=436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}