DEFINITIONS
Definitions More Info.
Definition ID
936
Title
LINUX
Category
NOTES
Definition
xfs ve ext4 disk extend buyutme komutu centos 7
Definition Description
# centos 7 varolan diske, büyütme işlemi yapıldığında çalıştırılması gereken komutu
once diskleri scanet
ls /sys/class/scsi_host --buradaki komutsonucundan kactane host varsa scan et:
host0 host1 host2 host3
echo "- - -" > /sys/class/scsi_host/host0/scan
echo "- - -" > /sys/class/scsi_host/host1/scan
echo "- - -" > /sys/class/scsi_host/host2/scan
echo "- - -" > /sys/class/scsi_host/host3/scan
ls /sys/class/scsi_disk --buradaki komutsonucundan kactane scsi varsa scan et
0:0:0:0 0:0:1:0 0:0:2:0 0:0:3:0 0:0:4:0
echo 1 > /sys/class/scsi_disk/0\:0\:0\:0/device/rescan
echo 1 > /sys/class/scsi_disk/0\:0\:1\:0/device/rescan
echo 1 > /sys/class/scsi_disk/0\:0\:2\:0/device/rescan
echo 1 > /sys/class/scsi_disk/0\:0\:3\:0/device/rescan
echo 1 > /sys/class/scsi_disk/0\:0\:4\:0/device/rescan
STEP 1 :
fdisk -l
STEP 2 :
fdisk /dev/sdb (/dev/sdb1'in root diskine)
STEP 3 :
d (delete partition)
n (create partition)
tüm adımları default onaylar (enter, enter, enter)
p (güncel partition bilgisini print et)
herşey OK ise
STEP 4 :
w (güncel partition'ı kayıt)
STEP 5 :
partprobe (mevcut günceli refresh et)
STEP 6 :
xfs icin bu:
xfs_growfs /dev/sdb1 (extend edilen /dev/sdb1'i OS seviyesinde güncelle)
ext4 icin bu:
resize2fs /dev/sdb
STEP 7 :
df -h (geçmiş olsun)
en son diskleri tekrar scanet, gerekirse 2-3defa scan et
echo "- - -" > /sys/class/scsi_host/host0/scan
echo "- - -" > /sys/class/scsi_host/host1/scan
echo "- - -" > /sys/class/scsi_host/host2/scan
echo "- - -" > /sys/class/scsi_host/host3/scan
RecordBy
cunay
Record Date
17-05-2019 09:10:03
Düzenle
Kopyala
Sil