Backup to new server - No space left on device

SYSTEM INFORMATION
OS type and version RHEL9
Webmin version 7
Virtualmin version 7

disk info

/ 	xfs 	100% (192.12 GiB) 	193.56 GiB 	/dev/mapper/rootvg-rootlv
/usr 	xfs 	73% (7.26 GiB) 	9.99 GiB 	/dev/mapper/rootvg-usrlv
/boot 	xfs 	51% (251.16 MiB) 	495.23 MiB 	UUID=a91d2348-6562-419c-bb2e-ea4c0931871d
/home 	xfs 	97% (974.32 MiB) 	1014 MiB 	/dev/mapper/rootvg-homelv
/tmp 	xfs 	98% (1.94 GiB) 	1.99 GiB 	/dev/mapper/rootvg-tmplv
/var 	xfs 	93% (7.36 GiB) 	7.99 GiB 	/dev/mapper/rootvg-varlv
/mnt 	ext4 	95% (59.47 GiB) 	62.69 GiB 	/dev/disk/cloud/azure_resource-part1

image
shows 255GB


volume-group

@Ilia any suggestions/steps for fixing the disk size?

Hello,

Webmin 7 is scheduled to be released in 2090, it’s still in beta so far.

Any suggestions/steps for fixing the disk size?

It seems that the old system is running out of disk space? Try using virtual-server.name - Server Configuration ⇾ Transfer Virtual Server feature. Does it work for you?

Also what are the outputs of the following command on both old and a new server:

df -H

I’ll never make it :frowning:

That’s a long way off … nothing like forward planing :slight_smile:

Output for disk:

# df -H
Filesystem                 Size  Used Avail Use% Mounted on
devtmpfs                    17G     0   17G   0% /dev
tmpfs                       17G     0   17G   0% /dev/shm
tmpfs                      6.7G   43M  6.7G   1% /run
/dev/mapper/rootvg-rootlv  252G  1.9G  250G   1% /
/dev/mapper/rootvg-usrlv    11G  3.0G  7.8G  28% /usr
/dev/sda2                  520M  256M  264M  50% /boot
/dev/mapper/rootvg-homelv  1.1G   42M  1.1G   4% /home
/dev/mapper/rootvg-tmplv   2.2G   49M  2.1G   3% /tmp
/dev/mapper/rootvg-varlv   8.6G  821M  7.8G  10% /var
/dev/sda1                  210M  7.3M  203M   4% /boot/efi
/dev/sdb1                   68G   29k   64G   1% /mnt
tmpfs                      3.4G     0  3.4G   0% /run/user/0
 lsblk -f
NAME              FSTYPE      FSVER    LABEL UUID                                   FSAVAIL FSUSE% MOUNTPOINTS
sda
├─sda1            vfat        FAT16          3C7D-0860                               192.8M     3% /boot/efi
├─sda2            xfs                  boot  a91d2348-6562-419c-bb2e-ea4c0931871d    251.2M    49% /boot
├─sda3
└─sda4            LVM2_member LVM2 001       obcs5c-UTYZ-5qtf-urcO-Qc5I-qoIx-4XOwqQ
  ├─rootvg-tmplv  xfs                        5203dbdf-f5d9-4415-bc3b-9e9abfd17ac6      1.9G     2% /tmp
  ├─rootvg-usrlv  xfs                        820f1e30-5c5a-4564-9983-e3a07a22f689      7.3G    27% /usr
  ├─rootvg-homelv xfs                        0701fbc2-d251-4cd4-8141-edf955e5b6dc    974.3M     4% /home
  ├─rootvg-varlv  xfs                        e47cd96a-b8eb-4e49-ad8f-a18edd39b222      7.2G    10% /var
  └─rootvg-rootlv xfs                        8e7e79d7-9507-45ee-845c-8cafb96548a3    232.6G     1% /
sdb
└─sdb1            ext4        1.0            d5642142-5a54-476b-8c13-eb24f6e1ee70     59.5G     0% /mnt

seams the rootvg-rootlv xfs 8e7e79d7-9507-45ee-845c-8cafb96548a3 232.6G is where the disk space is… but how to i get that into the whole server?

pvscan
  PV /dev/sda4   VG rootvg          lvm2 [255.31 GiB / 0    free]
  Total: 1 [255.31 GiB] / in use: 1 [255.31 GiB] / in no VG: 0 [0   ]
vgdisplay
  --- Volume group ---
  VG Name               rootvg
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  16
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                5
  Open LV               5
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               255.31 GiB
  PE Size               4.00 MiB
  Total PE              65360
  Alloc PE / Size       65360 / 255.31 GiB
  Free  PE / Size       0 / 0
  VG UUID               6xiP0I-vS1e-dBre-7Pb6-2yct-xZZN-Vapbck

You are restoring backups to /home which only has 1.1G free disk space left. You need to either resize rootvg-rootlv to let’s say 32G and the rest of the space allocate to rootvg-homelv, as we use /home by default for your domains (i.e. this is where the most disk space is going to). There are other solutions, like changing default home directory in Users and Groups module to some other path inside of rootvg-rootlv or simply bind mount over existing /home from one of the directories in rootvg-rootlv partition.

how do i reassign that 200G disk to the main drive/disk so that the whole server is 200g

so can no one help me figure out to to deal with the LVM and making the whole disk use the whole space or am> @Joe

I’m afraid LVM is not our area of expertise, but it looks like / is already the big disk? I’m not sure I understand what you’re trying to change:

From your copy paste above:

/dev/mapper/rootvg-rootlv  252G  1.9G  250G   1% /

Is that not what you’re trying to do? Though it looks like /home is nonsensically small:

/dev/mapper/rootvg-homelv  1.1G   42M  1.1G   4% /home

Doesn’t make sense to have a tiny /home dir, since all Virtualmin homes live in /home.

You could just unmount that, and let /home be part of /root.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.