Popular Posts

Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

May 27, 2022

Increase Disk Size And Volume In VMware Linux VM

Increase Disk Size And Volume In VMware Linux Server 

APPLIES TO :  Linux VM running in VMware virtualization platform

ISSUE :  Linux volume running our of space. 

GOAL :  Increase the disk size and increase the volume size in Linux without adding new disk to VG

SOLUTION :  Increase the disk size in VMware settings, scan the disk and resize the volume.

Prerequisites :   NA


The server is having 35GB disk in VG01.










In Linux OS the disk size:

[root@test ~]#  fdisk -l|grep -i "/dev/sd"

[root@test ~]#  pvdisplay


Increase the disk size in VMware settings:

Scan the disk:

[root@test ~]#  ls /sys/class/scsi_disk/
0:0:0:0  0:0:1:0
[root@test ~]#  


[root@test ~]# echo "1" > /sys/class/scsi_disk/0:0:1:0/device/rescan


The disk size is increased:
[root@test ~]#  fdisk -l|grep -i "/dev/sd"





pvresize command will bring the disk space in VG:
[root@test ~]#  pvresize /dev/sdb

[root@test ~]#  pvdisplay















Free space is available in VG and you can increase the volume size:
[root@test ~]#  lvextend -r -L+10GB /dev/mapper/vg01-test

[root@test ~]#  df -h /test




OR 

lvextend -r -l +4608(Free PE) /dev/mapper/vg01-test - This will extend the complete free space to volume

Jul 1, 2021

How to Manually Set Your IP in Linux - Set IP Address in Linux with ifcfg-eth0

 

APPLIES TO :  RHEL

ISSUE :  How to configure network configuration file ifcfg-eth0. OR ifcfg-eth0 file format

GOAL :  Configure IP address in RHEL server in ifcfg-eth0 file

SOLUTION :  Create a file /etc/sysconfig/networkscripts/ifcfg-eth0 with below sample. 

Prerequisites :   


NAME=eth0

DEVICE=eth0

ONBOOT=yes

NETBOOT=yes

BOOTPROTO=none

TYPE=Ethernet

PROXY_METHOD=none

BROWSER_ONLY=no

DEFROUTE=yes

IPV4_FAILURE_FATAL=no

IPV6INIT=no

IPADDR=192.168.1.10

PREFIX=24

GATEWAY=192.168.1.1

DNS1=192.168.1.101

DNS2=192.168.1.102

DNS3=192.168.1.103

DOMAIN="sagariah.com"

/etc/resolv.conf will automatically configured after every reboot by network manager

# Generated by NetworkManager

search sagariah.com

nameserver 192.168.1.101

nameserver 192.168.1.102

nameserver 192.168.1.103




~Judi~



Popular Posts