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
12-21-2004 11:33 AM
12-21-2004 11:33 AM
fsck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2004 12:57 PM
12-21-2004 12:57 PM
Re: fsck
Assuming your /var was /dev/vg00/lvol7, is a vxfs filesystem and you wanted to do a full check.
fsck -F vxfs -o full -y /dev/vg00/lvol7
The -y assumes a yes response to any prompts that would be flagged.
try man fsck to see the full list of options.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2004 01:02 PM
12-21-2004 01:02 PM
Re: fsck
Here is an example:
fsck -F vxfs -y /dev/vg00/rlvol7
man mount_vxfs for details.
I assume you have lost the root passwd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2004 02:42 PM
12-21-2004 02:42 PM
Re: fsck
You can follow these steps:
1. mount -v
Start this command to determine which file systems are mounted where.
For example:
/dev/vg00/lvol8 on /var type vxfs delaylog on Sun Dec 19 03:39:02 2003
/dev/vg00/lvol7 on /usr type vxfs delaylog on Sun Dec 19 03:39:02 2003
2. umount /dev/vg00/filesystem
umount /dev/vg00/lvol8
umount /dev/vg00/lvol7
fsck should be run on quiescent file systems; unmount the file system before proceeding.
3. fsck -F -y vxfs /dev/vg00/lvol8
or : fsck -F -y hfs /dev/vg00/lvol7
This depend on what kind of your filesystem...
4. Remount the filesystem
mount /dev/vg00/lvol8
mount /dev/vg00/lvol7
Once fsck completes, remount the file system(s).
5. Restore any corrupted files.
In order to fix file system corruption, fsck may have to remove one or more files. Watch for "REMOVE" messages in the fsck output, and be sure to restore the affected files from tape.fsck may also RECONNECT orphaned files. If you see any RECONNECT messages, check the file systemâ s lost+found directory. The next slide discusses the lost+found directory in greater detail.
Hope this helps
regard,
HoangChiC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2004 02:44 PM
12-21-2004 02:44 PM
Re: fsck
/usr/sbin/fsck [-F FSType] [-m] [-V] [special ...]
/usr/sbin/fsck [-F FSType] [-o FSspecific-options] [-V] [special ...]
In order to determine FStype you check
#cat /etc/fstab
[ipcaspa:/] cat /etc/fstab
/dev/vg00/lvol3 / vxfs delaylog 0 1
/dev/vg00/lvol1 /stand hfs defaults 0 1
/dev/vg00/lv_swap1 ... swap pri=0 0 0
/dev/vg00/lvol4 /tmp vxfs delaylog 0 2
/dev/vg00/lvol5 /home vxfs delaylog 0 2
/dev/vg00/lvol6 /opt vxfs delaylog 0 2
/dev/vg00/lvol7 /usr vxfs delaylog 0 2
/dev/vg00/lvol8 /var vxfs delaylog 0 2
#/dev/vg00/lvtux /home/tux6.5 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vg00/lvora /home/oracle vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vg00/lvkeb /keb vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vg00/lv_swap2 ... swap pri=0 0 2
-m : sanity check only
In order to get special you pay attention on first field of /etc/fstab
2. You want fsck check /var. just type (/var must not be mounted)
#fsck -F vxfs -m /dev/vg00/lvol8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2004 07:24 AM
12-23-2004 07:24 AM
Re: fsck
The worst case is when it says "bad superblock - try another one". You can try "-b 16" (that's our usual default alternate superblock), but even if that works, it's not really reliable (my experience).
Sometimes there will be hundreds of the "CLEAR?" (or "FIX?") messsages. If you find more than a dozen or so, run fsck with "-y" (reply Y to all of them). This is sort of a last resort. I used it a while ago ; the fsck ran overnight (probably 6 to 8 hours), and when it was done, a regular fsck reported OK, but the data was gone.
In that case, it would have been quicker to do a newfs followed by a restore.
I hope you can recover to where you can do a regular "shutdown"