1833275 Members
2873 Online
110051 Solutions
New Discussion

filesystem issues

 
amipankaj
Frequent Advisor

filesystem issues

hi experts,

i had created filesystem yesterday and mouted it. each filesystem was created of size 35gigs but now its showing only of 6gigs when i see with bdf mount point, but if i use bdf with their lv then it give me the actual size.

i tried to use fsadm but its giving me following error.

fsadm -b 36700160m /oracle/DEY/sapdata1
fsadm: /etc/default/fs is used for determining the file system type
UX:vxfs fsadm: ERROR: V-3-20279: /oracle/DEY/sapdata1 is not the root inode of a vxfs file system

even i tried to umount it but its also giving the below error.

umount /oracle/DEY/sapdata1
umount: cannot unmount /oracle/DEY/sapdata1 : Block device required
umount: return error 1.


please help.

thanks in advance.

~Roy
20 REPLIES 20
Ninad_1
Honored Contributor

Re: filesystem issues

Hi,

I suspect that the filesystem you created yesterday is not currently mounted.
When you do a bdf is the displayed filesystem name same as that you are mentioning in bdf.
e.g.
bdf /oracle/DEY/sapdata1
should return something like
Filesystem kbytes used avail %used Mounted on
/dev/vgxx/lvolyy
524288 285296 237456 55% /oracle/DEY/sapdata1

This is just an example - ignore the names and values.

I think when you do a bdf, the output you are seeing is filesystem beneath which you have another directory /oracle/DEY/sapdata1 which is mount point for your new filesystem.

Please post the output of
bdf /oracle/DEY/sapdata1

also post the output of

bdf | grep "The lvol name you created yesterday"


Regards,
Ninad
amipankaj
Frequent Advisor

Re: filesystem issues

Hi Ninad,

thanks for reply but i have already mounted it...please below output.

mount /dev/vgdey_o2/lv_sd1 /oracle/DEY/sapdata1
mount: /dev/vgdey_o2/lv_sd1 is already mounted on /oracle/DEY/sapdata1


bdf /oracle/DEY/sapdata1
Filesystem kbytes used avail %used Mounted on
/dev/vgdey_o2/lv_sd1
6291456 21352 6221120 0% /oracle/DEY/sapdata1

bdf /dev/vgdey_o2/lv_sd1
Filesystem kbytes used avail %used Mounted on
/dev/vgdey_o2/lv_sd1
36700160 22192 36391424 0% /oracle/DEY/sapdata1




Ninad_1
Honored Contributor

Re: filesystem issues

Hi,

ok.
Can you also let us know if either /oracle/DEY or /oracle is another filesystem.
Please post the outputs of
bdf /oracle/DEY
and
bdf /oracle

One more possiblity is that you mounted
/oracle/DEY/sapdata1 first and then mounted
/oracle OR /oracle/DEY (whichever may be the filesystem)

In such a case - if no applications are using the filesystem /oracle/DEY/sapdata1 currently - then you can try unmounting and then mounting it again.

Regards,
Ninad
Suraj K Sankari
Honored Contributor

Re: filesystem issues

Hi,

please post the output of

vgdisplay vgdey_o2
lvdisplay /dev/vgdey_o2/lv_sd1
lvdisplay /dev/vgdey_o2/lv_sd1

Suraj
amipankaj
Frequent Advisor

Re: filesystem issues

hi Ninad,

here is the problem ....

bdf /oracle/DEY
Filesystem kbytes used avail %used Mounted on
/dev/vgdey_o2/lv_sd1
6291456 21352 6221120 0% /oracle/DEY/sapdata1

bdf /oracle/DEY/sapdata1
Filesystem kbytes used avail %used Mounted on
/dev/vgdey_o2/lv_sd1
6291456 21352 6221120 0% /oracle/DEY/sapdata1

both of the mountpoints are mounted on the same lv....and also the the mountpoint .oracle.dey is mounted on another lv
/dev/vgdey_o1/lv_oracle
6291456 21352 6221120 0% /oracle/DEY


please let know what to do....
amipankaj
Frequent Advisor

Re: filesystem issues

hey suraj,

the output of vgdisplay and lvdisplay is looking good.

vgdisplay /dev/vgdey_o2
--- Volume groups ---
VG Name /dev/vgdey_o2
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 12
Open LV 12
Max PV 255
Cur PV 14
Act PV 14
Max PE per PV 2157
VGDA 28
PE Size (Mbytes) 16
Total PE 30198
Alloc PE 29824
Free PE 374
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

lvdisplay /dev/vgdey_o2/lv_sd1
--- Logical volumes ---
LV Name /dev/vgdey_o2/lv_sd1
VG Name /dev/vgdey_o2
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 35840
Current LE 2240
Allocated PE 2240
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
amipankaj
Frequent Advisor

Re: filesystem issues

Ninad,

i have mentioned in my previous post also that i am unable to mount the file system, its giving error.
Ninad_1
Honored Contributor

Re: filesystem issues

Hi,

Exactly as I suspected.
I think you have mounted /oracle/DEY/sapdata1 first and then mounted /oracle/DEY. Hence it is showing like this. You can confirm this by giving command
mount
This will show at what time each filesystem was mounted.

The resolution as I mentioned earlier is to unmount the filesystems and remount them again.
Then the sequence will be
Check that the applications using the filesystems to be unmounted are stopped first and then

1. umount /oracle/DEY (since you mounted this last)
2. umount /oracle/DEY/sapdata1
3. mount /oracle/DEY
4. Check directory /oracle/DEY/sapdata1 exists (if not create it)
5. mount /oracle/DEY/sapdata1


Regards,
Ninad
amipankaj
Frequent Advisor

Re: filesystem issues

Hi Ninad,

here is the exact issue what i got now...

/dev/vgdey_o1/lv_oracle
6291456 21352 6221120 0% /oracle/DEY

the mountpoint /oracle/DEY is mounted on two lv one is ...

/dev/vgdey_o1/lv_sd1.

bdf /oracle/DEY
Filesystem kbytes used avail %used Mounted on
/dev/vgdey_o2/lv_sd1
6291456 21352 6221120 0% /oracle/DEY/sapdata1
and lv_sd1 is llso mounted on mount point /oracle/DEY/sapdata1.

in /etc/fstab we donot have entry for
6291456 21352 6221120 0% /oracle/DEY
and another is /oracle/DEY mounted on /oracle/DEY/sapdata1 .


please let me know how i can recover from here.

thanks in advance.

Roy
Johnson Punniyalingam
Honored Contributor

Re: filesystem issues

Hi ,
>>>
fsadm -b 36700160m /oracle/DEY/sapdata1
fsadm: /etc/default/fs is used for determining the file system type
UX:vxfs fsadm: ERROR: V-3-20279: /oracle/DEY/sapdata1 is not the root inode of a vxfs file system
>>

(i suspected you using worng option in your fsadm)

swlist |grep -i jfs
(do you have ONLINE JFS)..?

please usaully follow this procedure

steps to lvcreate with Online JFS

lvcreate -L

newfs -F vxfs -o largefiles /dev/vg06/rlvolx

mkdir /

cp /etc/fstab /etc/fstab. --> backup your fstab.

vi /etc/fstab

/dev/vgxx/lovlx / vxfs rw,suid,largefiles,delaylog,datainlog 0 2

mount -a

if you have "Online Jfs"

lvcreate -L

fsadm -F vxfs -o largefiles /dev/vgxx/rlvolx

mkdir /

cp /etc/fstab /etc/fstab. --> backup your fstab.

vi /etc/fstab

/dev/vgxx/lovlx / vxfs rw,suid,largefiles,delaylog,datainlog 0 2

mount -a

Thanks,
Best Regards,
Johnson
Problems are common to all, but attitude makes the difference
amipankaj
Frequent Advisor

Re: filesystem issues

Thanks John,

but now everything is done, we want to recover it....please suggest how....in previous post i have mentioned the problem.....thanks...Roy
Ninad_1
Honored Contributor

Re: filesystem issues

Hi Roy,

I dont think its something to do with lvol mounted twice - just the way the output of bdf is confusing you.
Have u tried the steps I have told - of umounting anf mounting -
If it is possible - pls try that and check if ur problem is resolved.
Else - I will reply again. am in a meeting now.

Regards,
Ninad
amipankaj
Frequent Advisor

Re: filesystem issues

Thanks Ninad, i tried again...but i am unable to do so....its giving error.

all the filesystem mounted on the directory /oracle/DEY is showing the same size as of /oracle/DEY whether the size of lvs are different.


/dev/vgdey_o2/lv_sd1
6291456 21520 6221016 0% /oracle/DEY/sapdata1
/dev/vgdey_o2/lv_MlogB
6291456 21520 6221016 0% /oracle/DEY/mirrlogB
/dev/vgdey_o2/lv_OlogA
6291456 21520 6221016 0% /oracle/DEY/origlogA
/dev/vgdey_o2/lv_sd9
6291456 21520 6221016 0% /oracle/DEY/sapdata9
/dev/vgdey_o2/lv_sd5
6291456 21520 6221016 0% /oracle/DEY/sapdata5
/dev/vgdey_o2/lv_sd6
6291456 21520 6221016 0% /oracle/DEY/sapdata6
/dev/vgdey_o2/lv_sd7
6291456 21520 6221016 0% /oracle/DEY/sapdata7
/dev/vgdey_o2/lv_sd8
6291456 21520 6221016 0% /oracle/DEY/sapdata8
/dev/vgdey_o2/lv_sdt
6291456 21520 6221016 0% /oracle/DEY/sapdatat
/dev/vgdey_o2/lv_sd3
6291456 21520 6221016 0% /oracle/DEY/sapdata3
/dev/vgdey_o2/lv_sd2
6291456 21520 6221016 0% /oracle/DEY/sapdata2
/dev/vgdey_o2/lv_sd10
6291456 21520 6221016 0% /oracle/DEY/sapdata10
/dev/vgdey_o1/lv_oracle
6291456 21520 6221016 0% /oracle/DEY

Ninad_1
Honored Contributor

Re: filesystem issues

Hi,

ok.
Can you post the output of command mount
The errors are because all the filesystems under /oracle/DEY also need to be unmounted.


Regards,
Ninad
Johnson Punniyalingam
Honored Contributor

Re: filesystem issues

Hi Roy,

>>we want to recover it....please suggest how....in previous post i have mentioned the problem>>

is it new logical volume created..?

yes

fuser -c /oracle/DEY/sapdata1
(the above command will who currently using the file system)

fuser -ku /oracle/DEY/sapdata1
(kick all the user who currently using)

umount /oracle/DEY/sapdata1

lvremove /dev/vgxx/lvolx

lvcreate -L

newfs -F vxfs -o largefiles /dev/vg06/rlvolx

mkdir /

cp /etc/fstab /etc/fstab. --> backup your fstab.

vi /etc/fstab

/dev/vgxx/lovlx / vxfs rw,suid,largefiles,delaylog,datainlog 0 2

lvdisplay -v /dev/vgxx/lvolxx


mount -a


Thanks,
Johnson
Problems are common to all, but attitude makes the difference
Johnson Punniyalingam
Honored Contributor

Re: filesystem issues

if this "confirm that bdf - output " doesn't show your correct size

# mv /etc/mnttab /etc/mnttab.bk
# mount -a

(this should create new mnttab)

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
amipankaj
Frequent Advisor

Re: filesystem issues

To mount the filesystems, we have to unmount first, but we are unable to do so...as one Lv is mounted on two mount points and one mount point is mounted one two LV.

thanks....Roy
Ninad_1
Honored Contributor

Re: filesystem issues

Hi Roy,

Can you PLEASE post the output of mount command ???

Regards,
Ninad
amipankaj
Frequent Advisor

Re: filesystem issues

Hi Ninad and John,

the issue got resolve now.....i dont know but after some time i tried and it get unmounted ...now everything is fine....the issue was ....just i was not able to unmount the file system......thanks guys...

amipankaj
Frequent Advisor

Re: filesystem issues

thanks....