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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
11-29-2007, 06:49 PM
|
#1
|
|
Member
Registered: May 2007
Posts: 73
Rep:
|
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.
|
|
|
|
11-29-2007, 10:34 PM
|
#2
|
|
Member
Registered: Sep 2003
Location: Sydney Australia
Distribution: Redhat, Centos, Ubuntu
Posts: 282
Rep:
|
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.
|
|
|
|
11-30-2007, 11:38 AM
|
#3
|
|
Member
Registered: May 2007
Posts: 73
Original Poster
Rep:
|
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
|
|
|
|
11-30-2007, 11:54 PM
|
#4
|
|
Member
Registered: Sep 2003
Location: Sydney Australia
Distribution: Redhat, Centos, Ubuntu
Posts: 282
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:08 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|