- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Creating New Filesystems
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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
05-04-2006 03:48 AM
05-04-2006 03:48 AM
Creating New Filesystems
Hope everyone is well on this mighty fine english afternoon!
I need your help guys!
I am working on a unix machine at home, and at the moment when I look in "/etc/fstab" I see the following file-systems:
/dev/vg00/lvol3 / vxfs delaylog 0 1
/dev/vg00/lvol1 /stand hfs defaults 0 1
When I go into the root directory I see the following:
".dt", ".dtprofile", ".profile", ".sw", "/dev", "/etc", "/home", "/opt", "/bin", "/stand", "/test", "/tmp", "/usr", "/var".
First question is, why are these not in the '/etc/fstab' file.
Secondly,
How would I mount any of these directories?, as at the moment, when I run a 'bdf' I can only see "/" and "/stand".
When I try to mount "/var", then I get the following error:
"mount: /var was either ignored or not found in /etc/fstab"
What is going on with this?
What do I have to edit and how can i sort this out so that when I run a 'bdf' command I get the filesystems displaying as normal.
Habib.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 03:55 AM
05-04-2006 03:55 AM
Re: Creating New Filesystems
The directories you mentioned does not show up in bdf for the reason becuase those are all directories under /, they where not created as a separate filesystem during install I think.
Rgds
HGN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 03:58 AM
05-04-2006 03:58 AM
Re: Creating New Filesystems
It seems that instead of having separate filesystems for /var, /usr, /opt - they all reside as simple directories in your root filesystem, hence you cannot see them in bdf. So you need not mount anything now - the contents are there in the /usr, /var directories themselves [ and not /usr , /var filesystems ]
Regards,
Ninad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 04:00 AM
05-04-2006 04:00 AM
Re: Creating New Filesystems
Folders as noted are not fileystems.
"mount: /var was either ignored or not found in /etc/fstab"
That concerns me. If this is an HP-UX machine, it needs a mounted /var filesystem. If not, critical logs will fill up the root fileystem quickly.
uname -a please.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 04:00 AM
05-04-2006 04:00 AM
Re: Creating New Filesystems
What does the output of 'bdf' look like? How big is the '/' filesystem?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 04:03 AM
05-04-2006 04:03 AM
Re: Creating New Filesystems
Welcome to the world of Unix !!!
first, check if there is another copy of yor actual fstab file
# ll /etc/fstab*
If you find one, see whether you have all the mount points correctly , if so , then copy that fstab to the one you have now and do
# mount -a
Secondly :
all the directories that you see under root is not meant for mounting.
you have to mount ony /home, /tmp, /var, /usr , /opt and /stand .
you have to find out the Logical volue to mount on these mount points.
# cd /dev/vg00
# ll lvol*
and mount these LV's on these points ..
Here is an example
/dev/vg00/lvol1 87701 30303 48627 38% /stand
/dev/vg00/lvol8 1736704 968781 720473 57% /var
/dev/vg00/lvol7 1228800 907376 301929 75% /usr
/dev/vg00/lvol4 1048576 2134 981745 0% /tmp
/dev/vg00/lvol6 819200 602242 203401 75% /opt
/dev/vg00/lvol5 81920 32017 47016 41% /home
to mount
# mount /dev/vg00/lvolX /home .. follow the same for all the LV's.
good Luck !!
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 04:03 AM
05-04-2006 04:03 AM
Re: Creating New Filesystems
uname -a displays:
HP -UX habib B.11.00 A 9000/715 2016634916 two-user license
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 04:05 AM
05-04-2006 04:05 AM
Re: Creating New Filesystems
If you are missing files then you probably are missing a few lines from fstab.
My vg00 in fstab looks like this:
/dev/vg00/lvol3 / vxfs delaylog 0 1
/dev/vg00/lvol1 /stand hfs defaults 0 1
/dev/vg00/lvol4 /opt vxfs delaylog 0 2
/dev/vg00/lvol5 /tmp vxfs delaylog 0 2
/dev/vg00/lvol6 /usr vxfs delaylog 0 2
/dev/vg00/lvol7 /var vxfs delaylog 0 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 04:06 AM
05-04-2006 04:06 AM
Re: Creating New Filesystems
du /var
you'll see lots and lots of directories. And here's a trick to knowing where a particular directory or file is mounted:
bdf /var
bdf /tmp
bdf /etc/fstab
bdf takes the argumaent and tracks down the mountpoint, in your case, all 3 will show that the item is in /.
This was a common technique many years ago when disks were measured in megs and there were no useful volume managers (like LVM). Your system is fine, but it means that if something goes wrong and a massively large file is generated, the entire computer goes down because all the directories (except /stand) are also full. Separate mountpoints for different filesystems allows some control and continued operation in case of a full filesystem.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2006 09:51 PM
05-04-2006 09:51 PM
Re: Creating New Filesystems
From your uname -a, you are working on a workstation, rather than a server. for a workstation, it is not uncommon to have just the 2 mount points. you can always re-install hp-ux and devide your (probably small) disk up into various mount points, but it is not worth it.
The amount you will be doing on your workstation, probably playing with patches etc, does not really warrant bothering.
I had an old workstation and just had 2 mount points, went for years.
Regards,
JASH