Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
wo wo wo. slow down you don't wanna start deleting these things.
a volume group is essentially a hard drive and a logical volume is a partition but its a bit more than that. i'll give a more in depth description later on if you wanna hear more about LVs a VGs
right if you give a full output of your df -h then it would be more helpful.
it depends on how you've got your volume group all set up as to what this logical volume is for. i might well be your swap partition and if thats the case then sometimes it will report to be at 100% usage but i doubt very much a default install gave you a 19Gig swap partition. if you look to the left ot the /dev/mapper/VolGro.... you'll see where its mounted. this might just say / or something else.
whatever this directory is will be where all the files are that are taking up 100% of the drive. most likely you've filled your drive up somehow unknowingly
just a small word everythign in the /dev directory is a device (well its a pointer to a device) so when at startup /dev/mapper/VolG..... will be mounted on / or /pat or wherever its set to mount.
this might seem quite strange because how can you mount something thats in /dev/mapper... onto / when thats inside it... (hope that makes sense) it does seem like a circular argument until you take into account the /proc file system.
/proc is where the devices really are. have a look arroun (not editing anyhting mind you) and see what you can find in /proc. plenty of info about all your hardware.
ok so now volume groups
you can 2 or more drives together an create a volume group out of them which essentially acts as one drive. not quite like raid but similar and done at a software level. logical volumes are the partitions you get when you carve you volume group up.
not the best explaination ever but hope you get the idea
Thanks pats !!! Here are the outputs of my system. Is it better to leave the system with LV and VG rather than the traditional /dev/hd## business ??? All this machine is is a file server on the 2nd FAT32 drive. I don't do anything with the primary OS drive.
So this means the /mnt directory is holding all this data.
I do have a backup script that copies new data from hdb --> hdd. Perhaps the script tried to put the backup into the mnt directory instead.
All these drives are Samba shares.
I guess the root of my qutestion is...is it better to leave the sytem as LVG config'ed instead of trying to get it back to the hda "style". Does it matter one way or the other?
So this means the /mnt directory is holding all this data.
seems that way
if with hdb and hdd unmounted you do a ls /mnt and see what comes about
you did do these commands in this order didn't you?
umount /dev/hdb1
umount /dev/hdd1
du -ch /mnt
and that gave you the 17Gig after du -ch /mnt ?
Quote:
I do have a backup script that copies new data from hdb --> hdd. Perhaps the script tried to put the backup into the mnt directory instead.
would be a fair assumption. do you mind posting the script?
Quote:
I guess the root of my qutestion is...is it better to leave the sytem as LVG config'ed instead of trying to get it back to the hda "style". Does it matter one way or the other?
leave it as it is. its not gonna cause any harm. its just a different way of doing things
Originally posted by joshnya and that gave you the 17Gig after du -ch /mnt ?
would be a fair assumption. do you mind posting the script?
it's a cronjobs script:
the /mnt/backup is mounted with /dev/hdd1 device.
45 20 * * 1-5 cp -Ru /mnt/share/Share /mnt/backup
would it be better / possible to:
cp -Ru /dev/hdb1 /dev/hdd1 instead?
ok firstly cp -Ru /dev/hdb1 /dev/hdd1 will not be good. they are the linkers to the devices (read my earlier post.) you mount the device in a certain place ie /mnt/backup in order to access it. this is why you can't do cd /dev/hdd1 and see all your files.
right. the cron job looks ok but again can you just do these commands and tell me what you get.
umount /dev/hdb1
umount /dev/hdd1
df -ch /mnt
and also
ls /mnt to see whats there
and
ls /mnt/share
and
ls /mnt/backup
if you've unmounted those 2 drives and theres nothing else mounted in /mnt then it shouldn't contain any data
if you copy the exact output of the above commands then i should be able to help a bit more
Okay. I figured it out. Thanks for the help Pats. I really appreciate it.
The copy command copied the hdb1 image to the /mnt/backup directory when the /deb/hdd1 was not mounted so it copied files to the primary hard drive instead of the 3rd hard drive.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.