LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   df and lvdisplay discrepency on size. (https://www.linuxquestions.org/questions/linux-newbie-8/df-and-lvdisplay-discrepency-on-size-764121/)

marcos602phx 10-24-2009 04:06 AM

df and lvdisplay discrepency on size.
 
I did an lvreduce on a logical volume followed by a lvextend on another. Everything appeared to complete successfully.

However, I ran a lvdisplay and then a df -h and the size values appear to be different between the two. The lvdisplay is showing the correct values.

Why is this? How do I fix this?



Thank you.

syg00 10-24-2009 06:14 AM

Prior to (especially) reducing an LV, you need to resize the filesystem first. There is a document on LVM on tldp.org that explains things quite well - your distro may have similar as well.

marcos602phx 10-24-2009 10:15 PM

the problem - filesystem
 
Syg, thanks for that link.

Unfortunately for me, while reading the LVM Administrators Guide it did not look readily apparent to me that I need to do that since I did not see the commands.....as indicated on the link you sent me:

# umount /home
# resize_reiserfs -s-1G /dev/myvg/homevol
# lvreduce -L-1G /dev/myvg/homevol
# mount -treiserfs /dev/myvg/homevol /home


The book indicated:

# lvreduce -L-1G /dev/myvg/homevol

I'm a newbie and yes, I failed to understand this.

So now, I was unable to login to the server (in St Louis) via Putty (I'm in Phoenix). The websites on that server are unavailable; some applications were in / and others in /usr. Since rebooting the server the console now says:

"System Disk Error. Reboot or Enter the Root Password".

I am not sure if this is enough information but I would like to hear any input as we move forward. I wish I knew of someone local in St Louis? The team that will be helping me is in India and the time differences mean will begin on Sunday morning.

thanks.

syg00 10-25-2009 12:06 AM

Not much any of us can do to help - too many opportunities for corruption/overlays. Hopefully you have good backups and your support team can help.


All times are GMT -5. The time now is 01:21 PM.