Skip to content

u/sturdy55

In this archive from Jun 2019 to Jun 2023

1
posts
75
comments
0
media
339
score

Yeah, it is divided across partitions - should be ok as LVM is designed to work that way. Eg. You add a pool of disks or partitions to LVM, and then when you create or expand filesystems, it carves the space out of a pool of disks. If you have a mix of disks that have a big difference in performance, ideally you'd want to group similarly performing disks into their own volume groups, but for partitions on the same disk there is no need really. Also later if you decide you want more space you can literally throw in another disk and perform the same steps on it to expand any filesystems you see fit.

The method you mentioned with gparted is also valid but more risky and I have never personally done it myself. LVM I work with everyday though and confident you could get that extra space without unnecessary risk to the data.

2 points

It looks like you have 3 partitions on /dev/sda, with around 70g unallocated.

You want to fdisk /dev/sda, and press n to create a new partition. Once done, w to write the changes.

You should now have a /dev/sda4, which you want to put under LVM control: pvcreate /dev/sda4

The command pvscan should now display sda3 and sda4, but the word "pve" will be missing from sda4.

You want to add sda4 to the pve volume group: vgextend pve /dev/sda4.

The command pvscan should now show "pve" next to both partitions.

Now you have extra space to play with for expanding or creating filesystems. Eg. To add 10g to a filesystem: lvextend -r -L +10g /dev/pve/some_filesystem.

The path in the cmd above should correspond to the path listed in the first column of df -h output. And don't miss the + symbol before the 10g, otherwise it will resize it to 10g instead of adding 10g.

Hope this helps!

1 points

I see a lot of mention of fdisk and people not directly answering your questions.

My understanding is that fdisk does not support gpt partitions which most modern disks are likely to be using. Additionally, fdisk is interactive, and while you can certainly work around that easily in scripts, parted usage is non-interactive.

Based on that, I would think parted would be the tool to go with since it is easily scriptable and has support the more modern GPT layout. (though I am certainly no expert in partitioning tools)

1 points

I saw your question was already answered but wanted to point out that stopping a service does not prevent it from starting again after a reboot. If your intent was to leave it off permanently, it needs to be set as disabled.

3 points

Is that a thing? I feel like more often than not there is /lib/somelib.so that's a symlink to somelib-version.so and you can only symlink to one version at a time.

Maybe my understanding is completely off there but I do think that kind of helps illustrate why sometimes dealing with a docker image is easier.

Edit: maybe that's what was meant by dev version of a library and I missed it

1 points

There are some technical reasons other posts have already mentioned but for me personally it's because it leaves my system pristine. If I don't like whatever app I've installed I can "docker rm" it, and it's gone. It doesn't leave dot files in my home folder, conf files littering /etc, unneeded dependencies hanging around, etc.

Speaking of dependencies- those ship with the container. So if you have an app that requires a specific version of a library, then install another app that requires a different version of that library you are in a predicament. With a docker image, each app maintains their independent library and if I remove those apps later, the dependencies go with it.

Ease of use is another good one. Sure, it's usually easier to follow the install guide for a given app rather than learn docker. But if you learn docker, every app now installs the same way with the same cmds you used to install the last one, negating the need for following a different install process for different apps. Nowadays for complex apps not in my distro's repo, I go looking for docker images first because I know it will be easier and quicker to get running. If I do happen to goof the install, or break it during configuration, I can quickly and easily start from a clean slate via docker rm.

11 points

Since around 2001 I've ran linux on my server + windows on my desktop, because I just use the best tool for the job. Flash forward to when win10 came out, I ran it for a couple yrs and never could get used to it so swapped to linux on the desktop instead.

When I saw win11 I thought "I'm sure glad I swapped when I did." But if Microsoft ever does stop heading in their current direction and release something more akin to an updated XP or win7, I would certainly consider moving back - but it would have to be the better desktop solution. (I only swapped away when I felt it no longer was.)

1 points

If I am being honest, "learning linux" isnt something you do by using the desktop environment - you need shell experience. You don't need to ditch windows for that. Instead, just access a shell over ssh. You'll need to install linux on another device or VM. Don't spend any money here, any old trash machine will do the job. Otherwise virtualbox is free and works fine and will enable you to get your feet wet with virtualization at the same time.

2 points

I do it with bind mounts.

mkdir /mnt/bindmount

mount -o bind /var/log /mnt/bindmount

Then just perform your usual work under /mnt/bindmount.

When finished:

umount /mnt/bindmount

rmdir /mnt/bindmount

Edit: this works because the filesystem being replicated via a bindmount does not include other filesystems below it. This means it's also useful for removing files that have been "mounted over" (eg: a bunch of stuff got written to /var/log/storage2 before it was mounted, but now your app is live and you can't unmount)

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.