Deep checking Solaris ufs filesystem


 
Thread Tools Search this Thread
Operating Systems Solaris Deep checking Solaris ufs filesystem
# 1  
Old 03-01-2017
Deep checking Solaris ufs filesystem

I'm prompted to start this thread following my attempt to help on this thread here (see my posts).

I was proposing the OP deep checked a Solaris ufs filesystem using:

Code:
 # fsck -o full <filesystem node>

however this option does not appear to be valid on Solaris 10.

I've used this option on many Unix/Linux versions over the years but, very often, it's availability not documented and often doesn't appear on man pages but is still there. I'm as sure as I can be that '-o full' was available on Solaris fsck in versions 2.51, 5.6 and 5.8 but seems its been removed on Solaris 10.

So this begs the question: How do you deep check a Solaris 10 ufs filesystem? If you want to check the superblock, every inode, allocated sectors, the check all those sectors are readable, how can you do it? What options/switches do you use so you check EVERYTHING is readable except free space.

Last edited by rbatte1; 03-01-2017 at 12:40 PM..
# 2  
Old 03-02-2017
I strongly doubt that the "-o full" option was ever implemented for UFS. You might be confusing with vxfs which was indeed supporting it.
This User Gave Thanks to jlliagre For This Post:
# 3  
Old 03-02-2017
I think it exists for the Veritas vxfs.
This User Gave Thanks to MadeInGermany For This Post:
# 4  
Old 03-02-2017
Yes, I meant it was already supported under older versions of Solaris. There is no reason for this support to be dropped in current versions.
# 5  
Old 03-03-2017
So what is the deepest check you can run on Solaris ufs filesystem then?

Is it possible to read all used sectors, ie, follow all inode allocated sectors to check that they're readable?
# 6  
Old 03-03-2017
This should be close to what you are looking for:
Code:
find $mountpoint -mount -fstype ufs -type f -exec ksh -c 'for i do dd if="$1" of=/dev/null bs=1024k 2>/dev/null || printf "%s\n" "$1" >> /tmp/failed; printf "\r%s    " "$i" ; done' ksh {} + ; echo

These 2 Users Gave Thanks to jlliagre For This Post:
# 7  
Old 03-04-2017
So you have to "do it yourself" with your own script. There are no system tools to allow you to do it? No switches on fsck or anything?
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

How to increase the /var (UFS) filesystem and root disk under veritas control?

I need to increase the /var (UFS) filesystem and root disk under veritas control or root disk is encapsulated # df -k /var Filesystem kbytes used avail capacity Mounted on /dev/vx/dsk/var 13241195 12475897 674524 96% /var # fstyp /dev/vx/dsk/var ufs # pkginfo... (1 Reply)
Discussion started by: amity
1 Replies

2. Solaris

unable to repair the / filesystem. Run fsck manually (fsck -F ufs /dev/rdsk/c1t0d0s0)

What can I fix this issue? I have ran below commands but everything is same.:confused: WARNING: Last shutdown is later than time on time-of-day chip: check date. The / file system (/dev/rdsk/c1t0d0s0) is being checked WARNING - unable to repair the / filesystem. Run fsck manually (fsck -F... (4 Replies)
Discussion started by: getrue
4 Replies

3. Solaris

How to increase or decrease inode number of the particular UFS filesystem

Hi Gurus I want to know the command & tips regarding, how to increase or decrease inode number of the particular ufs filesystem. Is it possible to do it in a live/production environment. Regards (3 Replies)
Discussion started by: girish.batra
3 Replies

4. BSD

FreeBSD compatibility with Solaris UFS filesystem?

Hi, I'm new to BSD and would like to create a dual-boot between Solaris Express Community Edition and FreeBSD. I would just like to know if the Solaris UFS file system can be written to by BSD? I know that BSD uses UFS2, but I'm hoping that it is backwards compatible with UFS1 provided that... (0 Replies)
Discussion started by: Johnny SSH
0 Replies

5. Solaris

UFS filesystem mounted on 2 hosts question

I have two Unix (Solaris) hosts that are both attached to our SAN. They are both presented with the same luns. What I want to do is have the same UFS filesystem mounted on both hosts at the same time. What I am trying to accomplish is creating a zone that will reside on both hosts but only... (2 Replies)
Discussion started by: beaker457
2 Replies

6. Solaris

How can I mount a ufs filesystem on a solaris 10 sparc onto a Linux server

Hi there, I am trying to mount a SAN volume (which is mapped to solaris sparc) partitioned with ufs filesystem onto a linux (intel processor 64bit) server. *I have re-compiled the linux kernel t support ufs fstype with ro mount support. filesystem on solaris:... (3 Replies)
Discussion started by: ilan
3 Replies

7. Solaris

How to create a 2 TB UFS filesystem?

Hi, I have a 2,1 TB RAID0 Array (3- 750GB discs). I have Solaris 10 x86 installed. When I try to create a volume on this drive I receive the following error: " WARNING: /pci@0/pci8086/..../sd@6,0 (sd7) disk capacity is too large for current cbd length " I assume I can not format... (5 Replies)
Discussion started by: narrok
5 Replies

8. UNIX for Dummies Questions & Answers

limit of files in the ufs filesystem

Hello ! Does anyone knows which de limit of files in the ufs filesystem in the Solaris 2.6 ?? Danke, Witt (2 Replies)
Discussion started by: witt
2 Replies
Login or Register to Ask a Question