- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Need sample /etc/fstab for rhel5 or rhel4
Operating System - Linux
1752276
Members
4879
Online
108786
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-05-2009 02:22 PM
тАО09-05-2009 02:22 PM
10 points to the first copy and paste of an /etc/fstab from rhel5 or rhel4, fully configured with all standard mount points and tags.
Thanks!
Thanks!
Support Fatherhood - Stop Family Law
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2009 02:04 AM
тАО09-06-2009 02:04 AM
Solution
x86, Itanium or something else? LVM or not?
RHEL5:
https://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5.4/html/Installation_Guide/ch04s19s04s02.html
suggests that in x86, there would be just /boot, swap and the root filesystem, unless a customized configuration was used.
I seem to recall that RHEL5 uses LVM by default.
So the default /etc/fstab on RHEL5 would look like this:
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
We always use a customized LVM layout so I had to reconstruct this based on RedHat manuals.
------------
If you have lost your /etc/fstab for some reason and the system is still running, look into /proc/mounts and /proc/partitions: these can be very helpful in reconstructing /etc/fstab.
MK
RHEL5:
https://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5.4/html/Installation_Guide/ch04s19s04s02.html
suggests that in x86, there would be just /boot, swap and the root filesystem, unless a customized configuration was used.
I seem to recall that RHEL5 uses LVM by default.
So the default /etc/fstab on RHEL5 would look like this:
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
We always use a customized LVM layout so I had to reconstruct this based on RedHat manuals.
------------
If you have lost your /etc/fstab for some reason and the system is still running, look into /proc/mounts and /proc/partitions: these can be very helpful in reconstructing /etc/fstab.
MK
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2009 04:09 AM
тАО09-06-2009 04:09 AM
Re: Need sample /etc/fstab for rhel5 or rhel4
Thanks!
What does your custom layout look like?
What does your custom layout look like?
Support Fatherhood - Stop Family Law
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2009 05:16 AM
тАО09-06-2009 05:16 AM
Re: Need sample /etc/fstab for rhel5 or rhel4
First, I see no benefit in CamelCasing VG/LV names. I prefer lower-case /dev/vg*/lvol* style, like in HP-UX.
Second, with modern disks I round partition/LV sizes to the nearest GB, except for /boot. No reason to micro-manage.
1st primary partition: /boot (250 - 500 MB is plenty)
2nd primary partition: RHEL <5 diskdump area if necessary and supported.
With RHEL 5, this is no longer needed: kdump can write the dump on LVM too.
The rest of the disk is given to LVM.
/dev/vg00/lvol0: swap. Size according to the amount of RAM & sanity.
/dev/vg00/lvol1: root filesystem.
- includes /usr, so this should be fairly large. I've found 4 GB to be a good starting point. RHEL5 full installation requires about 5 GB, but we *don't* generally do full installations. We install the bare minimum of packages + whatever is required by the role of this server.
/dev/vg00/lvol2: /var filesystem.
- this includes /var/tmp, /var/spool and RPM package cache, so this can become big. 4 GB or more; especially if this is a high-volume mail or print server.
- NOTE: this requires the actions listed in http://kbase.redhat.com/faq/docs/DOC-17650 if the system is in a SAN environment.
/dev/vg00/lvol3: /tmp filesystem.
- at least 1 GB. Rationale: if you need to image mount an .iso image of a CD (about 700 MB), it can fit here with ease.
/dev/vg00/lvol4: /opt filesystem.
- role-specific, usually at least 2 GB to fit our standard monitoring agents etc.
/dev/vg00/lvol5: /usr/local filesystem.
- 2 GB is usually plenty.
/dev/vg00/lvol6: /home filesystem.
- 4 GB as a rule of thumb.
- can be smaller if you know there won't be active users (e.g. the system is a NTP server or something equally simple)
- this can become a separate VG if there are lots of active users with big stuff in their home directories (e.g. development systems)
Major applications and their data goes to their own VG(s) whenever possible.
If the OS needs to be reinstalled (or even changed to a different Linux distribution!) but the applications and/or user data must be saved, this layout makes it easy.
The installer is told to use the existing partitioning, mount /dev/vg00/lvol1 as root, /dev/vg00/lvol2 as /var and primary partition 1 as boot (and nuke their existing content) and ignore the rest.
After the OS reinstallation is completed and /etc configuration is restored, just add the other LVs back to /etc/fstab, mount them and you're back in business.
MK
Second, with modern disks I round partition/LV sizes to the nearest GB, except for /boot. No reason to micro-manage.
1st primary partition: /boot (250 - 500 MB is plenty)
2nd primary partition: RHEL <5 diskdump area if necessary and supported.
With RHEL 5, this is no longer needed: kdump can write the dump on LVM too.
The rest of the disk is given to LVM.
/dev/vg00/lvol0: swap. Size according to the amount of RAM & sanity.
/dev/vg00/lvol1: root filesystem.
- includes /usr, so this should be fairly large. I've found 4 GB to be a good starting point. RHEL5 full installation requires about 5 GB, but we *don't* generally do full installations. We install the bare minimum of packages + whatever is required by the role of this server.
/dev/vg00/lvol2: /var filesystem.
- this includes /var/tmp, /var/spool and RPM package cache, so this can become big. 4 GB or more; especially if this is a high-volume mail or print server.
- NOTE: this requires the actions listed in http://kbase.redhat.com/faq/docs/DOC-17650 if the system is in a SAN environment.
/dev/vg00/lvol3: /tmp filesystem.
- at least 1 GB. Rationale: if you need to image mount an .iso image of a CD (about 700 MB), it can fit here with ease.
/dev/vg00/lvol4: /opt filesystem.
- role-specific, usually at least 2 GB to fit our standard monitoring agents etc.
/dev/vg00/lvol5: /usr/local filesystem.
- 2 GB is usually plenty.
/dev/vg00/lvol6: /home filesystem.
- 4 GB as a rule of thumb.
- can be smaller if you know there won't be active users (e.g. the system is a NTP server or something equally simple)
- this can become a separate VG if there are lots of active users with big stuff in their home directories (e.g. development systems)
Major applications and their data goes to their own VG(s) whenever possible.
If the OS needs to be reinstalled (or even changed to a different Linux distribution!) but the applications and/or user data must be saved, this layout makes it easy.
The installer is told to use the existing partitioning, mount /dev/vg00/lvol1 as root, /dev/vg00/lvol2 as /var and primary partition 1 as boot (and nuke their existing content) and ignore the rest.
After the OS reinstallation is completed and /etc configuration is restored, just add the other LVs back to /etc/fstab, mount them and you're back in business.
MK
MK
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP