LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 10-24-2009, 05:06 AM   #1
marcos602phx
LQ Newbie
 
Registered: Aug 2009
Posts: 9

Rep: Reputation: 0
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.
 
Old 10-24-2009, 07:14 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,848

Rep: Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823
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.
 
Old 10-24-2009, 11:15 PM   #3
marcos602phx
LQ Newbie
 
Registered: Aug 2009
Posts: 9

Original Poster
Rep: Reputation: 0
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.
 
Old 10-25-2009, 01:06 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,848

Rep: Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
tcp send window size discrepency Viken Kondakji Linux - Networking 0 10-24-2007 02:20 PM
mysterious disk space discrepency desmond33 Linux - General 4 04-11-2007 05:13 PM
Disk space - du and df discrepency jovie Linux - Newbie 5 04-10-2007 03:46 AM
rsync size discrepency kav Linux - Software 11 11-15-2006 04:27 PM
lvdisplay -v doesn't diplay detail LV info osiosi Linux - Newbie 6 06-28-2006 01:03 PM


All times are GMT -5. The time now is 07:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration