FSCK on veritas managed disk


 
Thread Tools Search this Thread
Special Forums Hardware Filesystems, Disks and Memory FSCK on veritas managed disk
# 1  
Old 02-04-2005
FSCK on veritas managed disk

I've had a VXFS filesystem get corrupted and now it won't mount.
Can I run a fsck -y on the raw disk device or should something be
done within veritas? Veritas does not see the disk at the moment.
# 2  
Old 02-04-2005
Quote:
I've had a VXFS filesystem get corrupted and now it won't mount.
Bummer - I hate when that happens.
Quote:
Can I run a fsck -y on the raw disk device
It matters what you mean by 'raw disk device' - If this was a vertias filesystem that was mounted as a partition, fsck won't be a problem. If this was a veritas filesystem raw Sybase disk then fsck I believe would fail (since it's not a real filesystem but just a Sybase raw partition controlled by Veritas).
Quote:
or should something be done within veritas? Veritas does not see the disk at the moment.
Hopefully you had saved in the past the information needed (I don't recall all of it off the top of my head) -
Code:
vxprint -th 
vxdisk list

If the drive failed, then there is a procedure to follow within vxdiskadm of removing and installing - but you should have the old info to know exactly which device you are dealing with.
# 3  
Old 02-08-2005
Is there a log on the file system?

First make sure the disk group is imported with:
Code:
vxdg list

If not, import with:
Code:
vxdg import disk_group

If that fails, try:
Code:
vxdg -Cf import disk_group # assuming this is not a cluster

Then start the volume(s):
Code:
vxvol -g disk_group startall

If that fails, try:
Code:
vxvol -f -g disk_group startall

fsck the file system:
Code:
fsck -F vxfs /dev/vx/rdsk/disk_group/volume

If that fails, try:
Code:
fsck -F vxfs -o full /dev/vx/rdsk/disk_group/volume

Mount it up:
Code:
mount -F vxfs /dev/vx/rdsk/disk_group/volume /mount/point

Be sure to replace disk_group and volume with your actual info.

Good luck.

If an actual disk failed, and was not fault tolerant, it will be necessary to rebuilt the volume (and maybe the disk group) and restore the data from backup. If it is RAID 0 ir 5 and has a log you should be able to get it back easily.

Last edited by Yogesh Sawant; 04-10-2011 at 11:13 AM.. Reason: added code tags
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to extend a disk in veritas volume manager in veritas cluster?

Hi Experts, I wanted to extend a veritas file system which is running on veritas cluster and mounted on node2 system. #hastatus -sum -- System State Frozen A node1 running 0 A node2 running 0 -- Group State -- Group System Probed ... (1 Reply)
Discussion started by: Skmanojkum
1 Replies

2. Solaris

Disk corruption? Cant run fsck....

NOTICE: /: unexpected free inode 45262, run fsck(1M) fsck: cannot open vfstab Looks like /etc/vfstab (and a few other files has gone) Any ideas? Boot from cd, mount disk and recreate vfstab so that I can run fsck? (1 Reply)
Discussion started by: psychocandy
1 Replies

3. Solaris

Veritas disk group not the same on each cluster node.

Need help getting all disk devices back on node 2 the same as node 1. Recently Veritas and/or Sun cluster got wrecked on my 2 node Sun cluster after installing the latest patch cluster. I backed out the patches and then node 2 could see only half of the devices and Veritas drives (though format... (0 Replies)
Discussion started by: buggin
0 Replies

4. Solaris

Veritas not attaching replaced disk

Hi, I`m on SunFire480R with Solaris 10. Disk in rootdg group failed, so it was replaced. However, I cannot make Veritas initalise the replaced disk: # vxdctl enable # vxdisk list c1t0d0s2 Device: c1t0d0s2 devicetag: c1t0d0 type: auto flags: online error private autoconfig... (1 Reply)
Discussion started by: masloff
1 Replies

5. UNIX for Dummies Questions & Answers

Configure disk group with veritas

People i have an a storage i create two virtual disk 1 y 2. In the virtual disk 1 i configure 8 volumes and in the Vd2 configure 5 volumes. Now i want to create a disk group called Prod2 y Dev2 but when i go to vxdiskadm and i choose add disk o encapusalte when i press list to list the disk... (0 Replies)
Discussion started by: enkei17
0 Replies

6. UNIX and Linux Applications

Veritas silent disk group creation

I am trying to write a kornshell script that will automatically create veritas disk groups. However, the only utility that I can find that will create the diskgroup is vxdiskadd, which prompts with interactive questions. I've tried to pass the answers through to vxdiskadd, but I receive the... (0 Replies)
Discussion started by: jm6601
0 Replies

7. Solaris

Help: root partition crashed, fsck failed. Disk problem?

recently this sunfire 280R (solaris 10) is having problme, it was able to boot up, then all suddent, it failed, and I can't even mount the first disk which contains root partition when I boot up from cdrom. 2 X 36G hard drive, I scan first hard drive by "read", there is no bad block. The... (2 Replies)
Discussion started by: steeles
2 Replies

8. Solaris

Need to remove a disk from Veritas

I have a bogus disk that keeps showing up as failed from vxdisk list - - disk hpdg failed was:c2t0d11s2 There isnt any c2 devices on the system: # ls /dev/dsk/c2* /dev/dsk/c2*: No such file or directory # ls /dev/rdsk/c2* /dev/rdsk/c2*: No such file or... (3 Replies)
Discussion started by: kiem
3 Replies

9. Solaris

Veritas root disk mirroring

Hi there, My task is to replace the two 73 G disks with two 143 G disks , which has vxvm 4.1 running on it. I would like to know whether the steps iam following are correct. 1. Break the sub-disks, plexes of the root mirror. 2. Remove the sub-disks,plexes of the root mirror. 3. Remove one of... (10 Replies)
Discussion started by: Jartan
10 Replies
Login or Register to Ask a Question