Wednesday, February 16, 2011

mount: 0506-324 Cannot mount /dev/lv03 on /oraarch: The media is not formatted or the format is not correct.

I was trying to mount one of my file systems on AIX7.1 while I got this error message

isvp18> mount /oraarch
Replaying log for /dev/lv03.
mount: 0506-324 Cannot mount /dev/lv03 on /oraarch: The media is not formatted or the format is not correct.
0506-342 The superblock on /dev/lv03 is dirty.  Run a full fsck to fix.

So I ran fsck on the file system as suffested, and answered Yes to the question that fsck asked.
isvp18> fsck /oraarch



** Checking /dev/rlv03 (/oraar)
** Phase 0 - Check Log
log redo processing for /dev/rlv03
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Inode Map
** Phase 6 - Check Block Map
Bad Block Map; SALVAGE? yes
** Phase 6b - Salvage Block Map
Superblock is marked dirty; FIX? yes
9 files 1528152 blocks 191934120 free
***** Filesystem was modified *****


Tried to mount the file system again after the fsck completed, and it worked fine.
isvp18> mount /oraarch
isvp18> df -m
Filesystem    MB blocks      Free %Used    Iused %Iused Mounted on
/dev/hd4       10240.00   3502.43   66%    52007     7% /
/dev/hd2       16896.00  14625.86   14%    44235     2% /usr
/dev/hd9var      512.00    215.45   58%     5765    11% /var
/dev/hd3        3584.00   3332.43    8%      483     1% /tmp
/dev/hd1       15360.00   7167.52   54%     3716     1% /home
/dev/hd11admin    256.00    255.61    1%        5     1% /admin
/proc                 -         -    -         -     -  /proc
/dev/hd10opt     512.00    327.88   36%     7015     9% /opt
/dev/livedump    256.00    255.64    1%        4     1% /var/adm/ras/livedump
/dev/lv02      94464.00  93567.66    1%       21     1% /oralog
/dev/fslv00    94464.00  92401.49    3%       22     1% /oradata
/dev/bkuplv00   9440.00   7707.68   19%       28     1% /bak/test/home/test
vanhalen:/vanhalen/tools    512.00    486.43    5%      541     1% /testlab/tools
/dev/lv03      94464.00  93717.83    1%       18     1% /oraarch

No comments: