#Samba share is only 16gb for some reason
1 messages · Page 1 of 1 (latest)
How are your partitions set up on the server? Let's see the contents of /etc/fstab and /etc/samba/smb.conf
And the output of df -hT
fstab, I don't see a share mounted
smb.conf
df -hT
I followed this guide by Fedora docs https://docs.fedoraproject.org/en-US/quick-docs/samba/
Well, the short answer is because your root directory is only 16 GB. See that in the output of df -hT? Says Size 15G (it's rounding down probably).
What is the output of sudo fdisk -l?
one sec, lemme boot it back up
Also looks like you're on lvm (since the device name is /dev/mapper/...), so probably your initial setup was supposed to include another partition for home that is not mounted, maybe never got created. Depending on the output of the above command, and sudo lvdisplay, and sudo pvdisplay, we'll probably have a few options.
could I make a new partition just for the share maybe?
Well, 16 gigs is gonna be a little small for root, so we should add some to that, or just expand it out to the length of the drive
But your available lvm space should match the 929 g listed in the fdisk output
So there's plenty to work with
What is the output of sudo lvdisplay and sudo pvdisplay
Nope, cfdisk would expand the physical partition, but that's not the issue. You need lvextend, then growxfs I think. Give me a half hour or so to get to my computer and I can scratch you up the actual commands
alright, thanks!
also, I don't need help right this second, I have plenty of time tomorrow
Here's the easy solution: Extend your root logical volume out to the full length of the physical volume, then expand the xfs filesystem on top of that.
lvextend -l +100%FREE /dev/fedora/root
xfs_growfs /
If you wanted to get more complicated, you could instead grow the root to a reasonable fraction of the available space like so:
lvextend -L100G /dev/fedora/root
xfs_growfs /
Then create a logical volume for home. The issue here is that you need to be logged in to the console as root directly, not through sudo, so that you can move the /home data that already exists onto the new partition.
lvcreate -l 100%FREE -n home fedora
mkfs.xfs /dev/fedora/home # (I think, that path might not be right)
mkdir /tmp/home
mount /dev/fedora/home /tmp/home
mv /home/* /tmp/home/
umount /tmp/home
mount /dev/fedora/home /home
Then you have to add a new entry to /etc/fstab to mount this on boot, but that's also pretty easy. Just grab the UUID of the partition from sudo blkid and craft a line that matches the one for root, but with /home as the path.
It work perfectly the first way, thank you so much!