1819824 Members
3422 Online
109607 Solutions
New Discussion юеВ

Re: bdf command

 
mrk_1
Frequent Advisor

bdf command

Hi All,
I have created logical volum, new file system and mount the file system on hp-ux 11i.

But when i use command bdf, its not listing the above mounted file system.

Can any one help me what i need to do for this.

Thanks in advance.
6 REPLIES 6
Patrick Wallek
Honored Contributor

Re: bdf command

If bdf isn't listing it, then I seriously doubt that it is mounted.

Do a

# cat /etc/mnttab

to see what file systems are mounted. If you new one is not listed, then it isn't mounted and you need to try mounting it again.
Bill Hassell
Honored Contributor

Re: bdf command

Use the mount command with no options and it will show the mounted filesystems.

Note: If you created a mountpoint directory, then mounted the new lvol (but missed the error message), you can store files in that mountpoint and it will look like a mountpoint. To see if this happened, run this command:

bdf /mountpoint

If the right hand column shows "/" then nothing was mounted and you were storing files in an ordinary directory that is in the / volume. Now if you mount the new lvol, the old files will seem to disappear but they are still there and occupy space on the / volume. Be sure to clean up the old files before moiunting the new lvol.


Bill Hassell, sysadmin
Suraj K Sankari
Honored Contributor

Re: bdf command

Hi,
Are you able to see the content of your new mount point or are you able to access your mount point.
go to your mount point and do bdf. like this

$cd /newmount_point
$pwd
$bdf .

Post this output

Suraj
Sani
Frequent Advisor

Re: bdf command


Check

bdf /Mount Point
mrk_1
Frequent Advisor

Re: bdf command

Hi,
Thank you all for the reply.

I checked below things.

1. cat /etc/mnttab
Not listing the /opt/mqm mounted file system.

2. cd /opt/mqm and bdf ./
Its showing opt filesystem space only.

3. mount command also not listing the /opt/mqm file system.

4. bdf /dev/vg01/optmqm
Filesystem kbytes used avail %used Mounted on
/dev/vg01/optmqm 540672 1237 505721 0%

5. lvdisplay /dev/vg01/optmqm
--- Logical volumes ---
LV Name /dev/vg01/optmqm
VG Name /dev/vg01
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 528
Current LE 33
Allocated PE 33
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default

6. I tried mount the file system again. but the existing files are disappear after.

when i use bdf command its not listing the /opt/mqm file system

Could you please suggest any idea for this.

Thanks.
Bill Hassell
Honored Contributor

Re: bdf command

...bdf shows nothing at the end of the list where the mounpoint should appear...

Are you using the shortcut command:

mount /dev/vg01/optmqm

If so, the problem is in fstab, not with the mount command. he reason is that you did not specify at mount point, just the device file. Normally that is completely acceptable. However, fstab is a shortcut file so that you only have to specify the source or the destination and get the rest of the mount options. First, verify that the new filesystem is valid by:


umount /dev/vg01/optmqm

then

mkdir /mnt1
mount /dev/vg01/optmqm /mnt1
bdf /mnt1

That should show your lvol mounted at /mnt1 and confirms that there is an error in fstab.

The fstab format is:

source /mountpoint type options fsck backup

where:
source = devicefile
/mountpoint requires a leading slash
type = vxfs (or whatever fs you are using)
backup = virtually obsolete
fsck = pass number

(man fstab)


Bill Hassell, sysadmin