LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-29-2007, 06:49 PM   #1
sp149
Member
 
Registered: May 2007
Posts: 73

Rep: Reputation: 17
inode lvm and interface question


1)how do you check how many interfaces your systems has (machine is remotely located)

2) What to do if the root filesystem is out of inode (apart from deleting files )

3) Is it possible to increase a root filesystem if created under LVM if yes how?

Thanks you.
 
Old 11-29-2007, 10:34 PM   #2
FragInHell
Member
 
Registered: Sep 2003
Location: Sydney Australia
Distribution: Redhat, Centos, Solaris, Ubuntu, SUSE
Posts: 282

Rep: Reputation: 45
1) ifconfig -a will show you all the interfaces that have been correctly detected by the kernel

2) You have two options
- Quick Fix = Grow the LVM but you only increase the number of inodes by the amount of new filesystem you add, so you will always be short.
- Proper Fix - Recreate the LVM (in other words mkfs)
You could boot from a rescue disk and create a new LVM then mirror it and the break it and the destroy the old LVM, updating your boot configuration and not forgetting to do a backup !

3) Yes you can do it on line.
- See ext2online for growing the filesystem
- and lvextend -L {size} mountpoint
e.g
lvextend -L +5G /dev/OSvg/ROOT which will extend the ROOT volume on the Volume group OSvg by 5G.

- Remember to grow the LVM first then grow the filesystem.

Hope that helps let me know how u go.
 
Old 11-30-2007, 11:38 AM   #3
sp149
Member
 
Registered: May 2007
Posts: 73

Original Poster
Rep: Reputation: 17
wow.. thanks for taking the time and writing.

i'm clear with 1) and 3), would appreciate if you can elaborate a little more on 2)

Once again Thank u
 
Old 11-30-2007, 11:54 PM   #4
FragInHell
Member
 
Registered: Sep 2003
Location: Sydney Australia
Distribution: Redhat, Centos, Solaris, Ubuntu, SUSE
Posts: 282

Rep: Reputation: 45
The might be a few alternatives as what I was proposing would take a fair time and rely upon you having the same amount of free space that the root volume has and would not be easy to, it would be easy to screw it up and loss the lot.
The Question is why have you run out of Inodes, I assume it was a standard installtion and that you did not customize the filesystem (which you can do when you create the filesystem by hand)
Normally Inodes will fill up because you have lots of little files (each file requires an Inode), therefore running out of inodes first but leaving you with plenty of free space.
You could locate the these small files and create a new filesystem with additional inodes using the mkfs command and the move the files to the new filesystem. Or alternativly backup your important data and re-install.
Normally best practice suggest that you have a sperate / /var /home, and then also create other filesystems for your data / users etc.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
question about LVM an2ny_18 Linux - Software 3 03-12-2006 04:35 AM
Inode allocation question. saudoi Solaris / OpenSolaris 5 11-15-2005 07:00 AM
Can't boot, LVM and inode problem Raoul68 Linux - General 2 11-01-2005 01:34 PM
Can't boot, LVM and inode problem Raoul68 Linux - Hardware 0 10-30-2005 03:14 AM
question about inode size PTBmilo Linux - General 2 03-02-2003 02:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:18 PM.

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
Open Source Consulting | Domain Registration