Skip to main content

Posts

Ubuntu how to increase the / file system using growpart

 Issue: last time i faced a problem in my ubuntu to increase the / file system, even this is a part of LVM. When I tried lvextend and resizefs also the / file system not expanding. Solution: Using the growpart package 1.Install growpart:  apt install -y cloud-guest-utils 2.Run: growpart <disk name> <partition name>     example: growpart /dev/vda 3 3.Extend LV: lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv 4.Extend FS:  resize2fs /dev/ubuntu-vg/ubuntu-lv
Recent posts

KVM Ubuntu Network not pinging when added a new bridge to my existing bond network

 The problem I faced is that When I already a two NIC on my ubuntu server and i have an existing netplan like this:     bond1:       addresses:       - 192.168.0.7/16       interfaces:       - ens52       - ens53       nameservers:         addresses: []         search: []       parameters:         lacp-rate: fast         mode: 802.3ad         transmit-hash-policy: layer3+4 Later i have added a new bridge on top of this with name: #ovs-vsctl show    Bridge datantwk         Port bond1             Interface bond1         Port datantwk             Interface datantwk                 type: internal Then problem started as IPs in ...

How to create Storage array for iscsi disk on a linux machine

 Use Case: I have to create a KVM cluster using GFS Datastore. #Create a Ubuntu Linux to act as storage server array: # Make sure the system have enough resources(Storage,MEM&CPU) #Install TargetCLI tool:        apt install targetcli-fb -y #Create LUN:  mkdir -p /iscsi_disks  fallocate -l 600G /iscsi_disks/disk01.img  targetcli        /backstores/fileio create disk01 /iscsi_disks/disk01.img 600G        /iscsi create iqn.2025-01.com.example:storage1       /iscsi/iqn.2025-01.com.example:storage1/tpg1/luns create /backstores/fileio/disk01       /iscsi/iqn.2025-01.com.example:storage1/tpg1/acls create iqn.2025-01.com.example:client1       /iscsi/iqn.2025-01.com.example:storage1/tpg1/acls create iqn.2025-01.com.example:client2      /iscsi/iqn.2025-01.com.example:storage1/tpg1/acls create iqn.2025-01.com.example:client3 #Allow all network to acce...

morpheus hpe-vm-essential installations fails with port error

Error Error while installing hpe-vme using teh command: dpkg -i hpe-vm-essentials_8.0.8~rc1-1_amd64.deb  (Reading database ... 74587 files and directories currently installed.) Preparing to unpack hpe-vm-essentials_8.0.8~rc1-1_amd64.deb ... Unable to install Morpheus Appliance! Make sure that no ports are listening on any of the following ports: 3306, 8080, 80, 443, dpkg: error processing archive hpe-vm-essentials_8.0.8~rc1-1_amd64.deb (--install):  new hpe-vm-essentials package pre-installation script subprocess returned error exit status 1 Errors were encountered while processing:  hpe-vm-essentials_8.0.8~rc1-1_amd64.deb Solution: Check any ports using the command:  ### lsof -i :3306 -i :8080 -i :80 -i :443 if this output contains any container ,run below command:   ###3systemctl list-units |grep docker If this list anything: disable and stop those service using: systemctl disable <service> systemctl stop <service> Now check any snap servcie r...

Windows net use share gives error: Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again"

Error  When you try to access a network share path you will see below error: Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again Solution: Check what are the network shares disconnected with same name using: cmd>net use Now delete these sessions with command: cmd>net use Now connect again with below command: cmd>net use \\<network share>  /user:doamin\username <Password> /PERSISTENT:YES

Enabling/Unlocking the root locked account

 To Enabling/Unlocking the root locked account, follow below steps: 1.ssh with non root user 2.Check the root user is locked:      root@Ubuntu:/home/test# passwd -S root     root  L  11/12/2024 0 99999 7 -1         >> here L means its locked. 3.Manually enable the root account    A)verify the /etc/shadow password (the second field ! Or * means its locked)    B)Create a password in hash format:        openssl passwd -6         >>give new password       >>Copy the new hash password    C)Edit /etc/shadow and update in the second field:               D)Verify /etc/ssh/sshd_config have "PermitRootLogin=yes, PasswordAuthentification=yes" and restart ssh service already done.

Ubuntu apt installation error as : E: Unable to correct problems, you have held broken packages.

  Error: E: Unable to correct problems, you have held broken packages. Solution: 1) Find the broken packages using: apt-mark showhold    root@test:~# apt-mark showhold     libcephfs2     libsqlite3-mod-ceph 2) Unhold the locked packages using :  apt-mark unhold <pkg name>    root@test:~# apt-mark unhold libcephfs2 libsqlite3-mod-ceph