partition disk issue

hi guys,

I've got a strange issue, may be one of you has experienced this.

SunOS 5.10 Generic_118833-33 sun4u sparc SUNW,Sun-Fire-V440

everything is mirrored.

My issue is that I have a umpty directory but seems to have data on. Let me show you

# df -h /data
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d6 19G 6.7G 12G 36% /data

# ls -la
total 22
drwxr-xr-x 4 root root 512 Nov 28 09:25 .
drwxr-xr-x 30 root root 1024 Nov 29 15:41 ..
drwx------ 2 root root 8192 Dec 18 2006 lost+found
drwxrwxrwx 2 root ads 512 Nov 29 15:40 save

# du . -hs
16 ./lost+found
2 ./save
20 .

if some one can help would be so great

Tks

Is there another disk or disks mounted to a subdirectory of /data?
If so, umount them, do another ls and du.

I've seen this happen before, where a backup, tar file. etc gets run, before
a disk get mounted. then the disk is mounted, and effectively hides the files, then someone will assume the restore failed, reinstalls the data after the disk has been mounted.

It could be also a file system corruption. Umount it and run fsck, fhinally, mount it again...

Regards.

Hi guys,

Thanks for your help.

I thought about the fsck and tryied to launch a umount but I cannot it says /data busy. I check cut link on it. relaunch and same error.
I launch a fuser to see is some one is using it. nop nobody.
rr

I'm sorry, but I have to ask you this:
You are umounting "outside" /data, aren't you? :slight_smile:
Now, if the answer is no:

  • Check for processes using /data. To achieve this use fuser or lsof (have a look at their man pages for available options).
  • Kill those processes.
  • Umount again.
  • run fsck.

Thanks guys,

Well yes for sure I have no session insisde /data

I comments sharetab and dfstab which was use for this directory.
I deleted the save link which was at /

no process found :frowning:

Did you use fuser/lsof to see whether some process is working on /data?

yes see below

# umount /data
umount: /data busy
# fuser /data
/data:
# ./usr/local/bin/lsof /data
#

I'm becaming crasy

:slight_smile: :slight_smile:

I realise it! whith your help :wink:
I launch umount -f and miracle i was able to umount it.

pouf now next step resolve the df issue and the size issue on the partition.
I launch the fsck

I've done a newfs on the partition
then try to mount /data

# fsck -m /dev/md/rdsk/d6
** /dev/md/rdsk/d6
ufs fsck: sanity check: /dev/md/rdsk/d6 okay
# fsck -m /dev/md/dsk/d6
** /dev/md/rdsk/d6
ufs fsck: sanity check: /dev/md/dsk/d6 okay

# mount /dev/md/dsk/d6 /data
mount: /dev/md/dsk/d6 is already mounted or /data is busy

I'm afraid I must reboot to be able to mount the partition again, isn't it true?
Have you a solution by restarting a service or something that will permit me to mount without rebooting?
Thanks again

Hi guys,

I firstly would like to thank you very much on your help.

I just would like to explain in short message how the issue was solve this will may help people who will have the same problem or similar.

All process in the post was very useful to solve the issue.

After making the newfs on the partition I delete the directory /data and recreate it. then mount the /data and now everything is clean on the partition.

Cheers, :smiley: :smiley: