Skytap: Difference between revisions

From Wiki
(Criou a página com "Tips for Skytap = Tips = == Add an extra IP address to an existing interface == Add an extra IP address to an existing interface in Red Hat Enterprise Linux/CentOS 7 Add...")
 
No edit summary
 
Line 26: Line 26:


  ip a
  ip a
== To extend the logical volume ==
* VG name is cl
* Space is 60GB
1) Power off the virtual machine.
2) Add/Edit the virtual machine settings and extend the virtual disk size.
3) Power on the virtual machine.
4) Create the new device
a) fdisk /dev/sdb
b) Press '''n''' to create a new primary partition and '''p''' for primary.
c) Press '''t''' to change the system's partition ID. and type 8e to define as Linux LVM.
d) Press '''w''' to write the changes
e) Restart the virtual machine.
5) List partition
fdisk -l /dev/sdb
6) Create Phisical Volume
pvcreate /dev/sdb3
7) List VG on skytap
vgdisplay cl
8) Extend the physical volume:
vgextend cl /dev/sdb3
9) check Free space on VG
vgdisplay cl | grep "Free"
10) extend the Logical Volume
lvextend -L+60G /dev/cl/home
11) expand the ifs filesystem online
xfs_growfs /dev/cl/home
12) verify that the /home filesystem has the new space available:
df -h


= Ver também =
= Ver também =

Latest revision as of 18:11, 5 September 2020

Tips for Skytap

Tips

Add an extra IP address to an existing interface

Add an extra IP address to an existing interface in Red Hat Enterprise Linux/CentOS 7

Adding a new network-scripts file in /etc/sysconfig/network-scripts/

touch ifcfg-ens160:2

Edit file ifcfg-ens160:2

NAME="ens160:2"
ONBOOT="yes"
BOOTPROTO="static"
IPADDR="10.0.0.2"
NETMASK="255.255.255.0"

Restart

systemctl restart network

Checking

ip a

To extend the logical volume

  • VG name is cl
  • Space is 60GB


1) Power off the virtual machine.

2) Add/Edit the virtual machine settings and extend the virtual disk size.

3) Power on the virtual machine.

4) Create the new device

a) fdisk /dev/sdb

b) Press n to create a new primary partition and p for primary.

c) Press t to change the system's partition ID. and type 8e to define as Linux LVM.

d) Press w to write the changes

e) Restart the virtual machine.

5) List partition

fdisk -l /dev/sdb

6) Create Phisical Volume

pvcreate /dev/sdb3 

7) List VG on skytap

vgdisplay cl

8) Extend the physical volume:

vgextend cl /dev/sdb3

9) check Free space on VG

vgdisplay cl | grep "Free"

10) extend the Logical Volume

lvextend -L+60G /dev/cl/home

11) expand the ifs filesystem online

xfs_growfs /dev/cl/home

12) verify that the /home filesystem has the new space available:

df -h


Ver também