- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: File system problem
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
06-03-2002 08:43 PM
06-03-2002 08:43 PM
[root@test:/root]
# bdf | grep crash
/dev/vg00/lv_crash 860160 754100 100637 88% /var/adm/crash
[root@test:/root]
# cd /var/adm/crash
[root@test:/var/adm/crash]
# bdf .
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lv_var 860160 754100 100635 88% /var
[root@test:/var/adm/crash]
# cd
[root@test:/root]
# umount /var/adm/crash
umount: cannot unmount /var/adm/crash : Block device required
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2002 08:56 PM
06-03-2002 08:56 PM
SolutionIt is because you have mounted "/var/adm/crash" on an existing mount point "/var".
The command starts search from / - hence it reply seeing the first mount point "/var"
When you say . (though it is current directory) - The search is from root(/).
Hope this gives you an answer.
Regards,
Gnana A.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2002 09:00 PM
06-03-2002 09:00 PM
Re: File system problem
Can you do the following ?
#ll /dev/vg00/rlv_crash
Does it return a filelisting ?
It looks like a strange problem, but /var/adm/crash can also be recreated in case the problem can not be found.
Hope this helps,
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2002 09:05 PM
06-03-2002 09:05 PM
Re: File system problem
Gnana A., I don't want to talk against your reply, but I just tried this myself ...
root/sv00220#cd /var
root/sv00220#bdf .
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol9 512000 119890 368093 25% /var
root/sv00220#cd /var/adm/crash
root/sv00220#bdf .
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol10 524288 51365 443420 10% /var/adm/crash
In my opinion, the "bdf ." should work correctly ...
Regards,
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2002 09:14 PM
06-03-2002 09:14 PM
Re: File system problem
[root@test:/var/adm]
# ll /dev/vg00/rlv_crash
crw-r----- 1 root sys 64 0x000009 Jun 13 2000 /dev/vg00/rlv_crash
How can we make the file system is mounted on /var/adm/crash instead of /var?
Rgds,
dewa negara
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2002 09:37 PM
06-03-2002 09:37 PM
Re: File system problem
I've just executed this on my system, so this should work. Remember to replace lvol10 with the name of your logical volume (lv_crash).
Here goes :
root/sv00220#umount /var/adm/crash
root/sv00220#lvremove /dev/vg00/lvol10
root/sv00220#lvcreate -L 512 -n lvol10 vg00
root/sv00220#newfs -F vxfs /dev/vg00/rlvol10
root/sv00220#mkdir /var/adm/crash
mkdir: cannot create /var/adm/crash: File exists
root/sv00220#vi /etc/fstab
# Enter the following entry after (!!!) the mount of /var
/dev/vg00/lvol10 /var/adm/crash vxfs delaylog 0 2
root/sv00220#mount -a
root/sv00220#cd /var/adm/crash
root/sv00220#bdf .
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol10 524288 1229 490375 0% /var/adm/crash
Let me know if it works !!!
Regards,
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2002 09:48 PM
06-03-2002 09:48 PM
Re: File system problem
# umount /dev/vg00/lv_crash
If that works that should leave you with only /var mounted. You would then do this ..
# cd /var/adm
# mv crash crash.org
==> If there is something in this dir, you would want to copy it over later.
# mkdir crash
==> Make sure ownership and permission remains the same as crash.org
# mount /dev/vg00/lv_crash /var/adm/crash
Edit /etc/fstab appropriately and copy (if there are any) the content of /var/adm/crash.old to /var/adm/crash.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2002 10:13 PM
06-03-2002 10:13 PM
Re: File system problem
Any idea please?
thanks alot.
[root@test:/root]
# umount /var/adm/crash
umount: cannot unmount /var/adm/crash : Block device required
[root@test:/root]
# umount /dev/vg00/lv_crash
umount: cannot unmount /var/adm/crash : Block device required
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2002 10:36 PM
06-03-2002 10:36 PM
Re: File system problem
... strange ...
Is /var/adm/crash in use ?
#fuser -cu /var/adm/crash
Can you perhaps mount it ?
#mount /dev/vg00/lv_crash /var/adm/crash
Just leading up to this, but is this a server you can (schedule for) reboot easily ?
Can you also post the output from the "bdf" command ?
Regards,
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2002 10:42 PM
06-03-2002 10:42 PM
Re: File system problem
The output from the "mount" command might be usefull too.
Regards,
Tom :-)
P.S. Sorry if my questions are somewhat incoherently, but I've dedicated one of our own servers for this problem and I trying to reproduce the problem :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2002 11:03 PM
06-03-2002 11:03 PM
Re: File system problem
$ bdf / /home /home/trond/PC
Filesystem kbytes used avail %used Mounted on
/dev/root 143360 100141 40533 71% /
/dev/vg02/lvol1 4190208 1445493 2573294 36% /home
/dev/vg04/lvol1 4096000 3522014 538150 87% /home/trond/PC
A reboot will probably solve your problem.
If you want to find the cause here are some suggestions:
Is the filesystem mounted thru fstab? If not try 'umount /dev/vg00/lv_crash'.
Since the hostname is 'test': try moving /etc/mnttab to a backup copy and run 'bdf /var/adm/crash' to recreate mnttab.
Regards,
Tron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2002 12:32 AM
06-04-2002 12:32 AM
Re: File system problem
Anyway, mount command inform that the file system is already mounted
[root@test:/root]
# mount /dev/vg00/lv_crash /var/adm/crash
mount: /dev/vg00/lv_crash is already mounted on /var/adm/crash
Rgds,
dewa negara
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2002 02:20 AM
06-04-2002 02:20 AM
Re: File system problem
You are right. I tried that. Thanks .
I have a similar setup, Which mounts a remote FS. Unfortunately when I tried the example today morning, the remote server was down and the o/p was shown for its parent directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2002 04:35 AM
06-04-2002 04:35 AM
Re: File system problem
# mount /dev/vg00/lv_crash /var/adm/crash
# ls /var/adm/crash
# umount /var/adm/crash
That should work error free. If not, you may want to back any files you need to savefrom /var/adm/crash, then reboot (with fstab still commented for the crash directory), and use newfs to create a new filesystem. Repeat the tests and if that still fails, use lvremove, followed by lvcreate and newfs and that should solve the problem.
Bill Hassell, sysadmin