Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Reducing VM capacity

Featured Replies

Hi guys,

 

I'm new to unraid and still playing around but I'm having an issue with an Ubuntu VM.

I am playing around with LVM trying to learn how it all works and every time I try and reduce the disk size the VM fails to boot showing this message:

ALERT! /dev/mapper/ubuntu--vg-ubuntu--lv does not exist.

 

So here is the steps I've taken

 

1. Installed Ubuntu (with 1T from unraid)

2. Extended the LVM to full size using these commands:

  • lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu—lv
  • resize2fs /dev/mapper/ubuntu--vg-ubuntu—lv
  • This works fine and all is good

3. Reduced the LVM now using this command: (this is also from a live CD so I can resize the root partition)

  • sudo lvreduce --resizefs -L 400G /dev/mapper/ubuntu--vg-ubuntu—lv
  • Then opened gparted and resized the partition to 400G

 

Reboot into the server and everything is working perfectly, the size is now 400G.

However I now want to reduce the actual disk size, so I go into unraid and click on the VM name to show the drives and change the capacity from 1T to 500G. Giving me an extra 100G as buffer. When I do this and boot the VM up it doesn't boot into Ubuntu and gives me that alert error (ALERT! /dev/mapper/ubuntu--vg-ubuntu--lv does not exist.)

 

So can anyone who has more experience help me out here.

 

Thanks in advance

 

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.