- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to check mounted filesystem
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-02-2008 10:46 AM
05-02-2008 10:46 AM
How to check mounted filesystem
I have a directory corrupted.
$ ll sks.test
sks.test/dmdata not found
total 0
drwxr-xr-x 2 root sys 96 Nov 17 2006 dmdata10
drwxr-xr-x 2 root sys 96 Mar 17 2007 dmdata11
drwxr-xr-x 2 root sys 96 Mar 17 2007 dmdata12
drwxr-xr-x 2 root sys 96 Sep 14 2007 dmdata13
drwxr-xr-x 2 root sys 96 Sep 14 2007 dmdata14
$ bdf sks.test
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 204800 54539 141300 28% /
$
$ uname -a
HP-UX sks01 B.11.00 U 9000/800 661389373 unlimited-user license
$
Do we have any option to check and fix mounted filesystem corruption. I can't reboot server now as its production.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2008 10:47 AM
05-02-2008 10:47 AM
Re: How to check mounted filesystem
u can use mount command
or bdf
both will display mounted file system
thanks and regards
Sajjad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2008 10:57 AM
05-02-2008 10:57 AM
Re: How to check mounted filesystem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2008 10:59 AM
05-02-2008 10:59 AM
Re: How to check mounted filesystem
File system repair you can use fsck command
#fsck /dev/vg/lv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2008 11:03 AM
05-02-2008 11:03 AM
Re: How to check mounted filesystem
what type of file system it is
fstyp /dev/vg03/logicalvolme
give me out put
sajjad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2008 11:04 AM
05-02-2008 11:04 AM
Re: How to check mounted filesystem
vxfs fsck: /dev/vg00/lvol3 is currently mounted
#fsck -F vxfs -o full,nolog /dev/vg00/rlvol3
vxfs fsck: /dev/vg00/rlvol3 is currently mounted
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2008 11:05 AM
05-02-2008 11:05 AM
Re: How to check mounted filesystem
fsck never work on mounted file system
u have ot umount it
sajjad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2008 11:08 AM
05-02-2008 11:08 AM
Re: How to check mounted filesystem
u have to umount
umount /umountpoint
then do fsck
ok
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2008 11:14 AM
05-02-2008 11:14 AM
Re: How to check mounted filesystem
any solution without reboot?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2008 11:18 AM
05-02-2008 11:18 AM
Re: How to check mounted filesystem
#rm -r /sks.test
rm: cannot stat /sks.test/dmdata: I/O error
rm: directory /sks.test not removed. Directory not empty
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2008 11:21 AM
05-02-2008 11:21 AM
Re: How to check mounted filesystem
did you try the command
#fsck -o full /dev/vg/lvol
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2008 11:21 AM
05-02-2008 11:21 AM
Re: How to check mounted filesystem
did you try the command?
#fsck -o full /dev/vg/lvol
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2008 11:23 AM
05-02-2008 11:23 AM
Re: How to check mounted filesystem
i have to confirm it which type of file ystem it is
fstup /dev/vg00/lvol3
pls revert back soon
sajjad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2008 11:32 AM
05-02-2008 11:32 AM
Re: How to check mounted filesystem
I think i typed wrongly. if u root file sytem is corrupted, u have to boot in single usermod and do fsck i don't know any other option
thanks and regards
sajjad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2008 11:35 AM
05-02-2008 11:35 AM
Re: How to check mounted filesystem
sajjad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2008 11:47 AM
05-02-2008 11:47 AM
Re: How to check mounted filesystem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2008 11:57 AM
05-02-2008 11:57 AM
Re: How to check mounted filesystem
same error.
#fsck -o full /dev/vg00/lvol3
vxfs fsck: /dev/vg00/lvol3 is currently mounted
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2008 09:35 PM
05-02-2008 09:35 PM
Re: How to check mounted filesystem
I told u u can't do fsck on mounted file system u should umount it first then only u can do fsck, but in u case it is root file system, so that u have to take system in single user mode then do fsck
thanks and regards
sajjad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2008 09:40 PM
05-02-2008 09:40 PM
Re: How to check mounted filesystem
dear friend
u can't take system in single user mode
why u want to remove that directory?
if u want to remove that directory
u can use rm -rf command. ok but remember
it will remove u directory and all contents including subdirectories under that directoires of in it without any warning. so u should careful about use of that command
rm -r never remove only an empty directory
thanks and regards
Sajjad Sahir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2008 10:03 PM
05-02-2008 10:03 PM
Re: How to check mounted filesystem
Try the following:
Step 1.
$ du -sk /sks.test
Step 2.
Find a directory which resides on a file system other than / and has enough space to contain the directory size as retrived in step 1.
Step .3
Move /sks.test /
post the output of all commands executed above.
revert!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2008 10:33 PM
05-02-2008 10:33 PM
Re: How to check mounted filesystem
If you can't unmount the file system and you don't want to shut the system down, you can just use a hammer on that directory and delete it:
# /sbin/unlink sks.test/dmdata
Make sure you read the WARNINGS on unlink(1m).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2008 05:12 AM
05-03-2008 05:12 AM
Re: How to check mounted filesystem
>#rm -r /sks.test
rm: cannot stat /sks.test/dmdata: I/O error
rm: directory /sks.test not removed. Directory not empty
#
Is this /sks.test/dmdata a local file system or NFS mounted, etc.
Can you post the output of the below:
fuser -u /sks.test/dmdata
find /sks.test|grep dmdata
bdf /sks.test/dmdata
cd /sks.test/dmdata
ll
bdf .
If you do not use unlink as above and if you are sure that you do not want the data, try doing a rm from inside the dir and you must have the correct permissions for doing that - no ACL ,etc.
cd /sks.test/dmdata
pwd
rm -rf * (make sure you are inside the /sks.test/dmdata dir, before you do a rm -rf)
or
cd /sks.test
pwd
rm -rf dmdata
Did you check the syslog.log for any disk related errors, etc.
Let us see the result.
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2008 03:08 PM
05-05-2008 03:08 PM
Re: How to check mounted filesystem
Atlast server rebooted and problem fixed.
Thanks everyone for help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2008 03:08 PM
05-05-2008 03:08 PM