1756305 Members
2931 Online
108844 Solutions
New Discussion юеВ

Re: bdf problems

 
Fernando Jose P de Souz
Regular Advisor

bdf problems

i would like to organize the lines in my output of bdf.
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 143360 43576 93576 32% /
/dev/vg00/lvol1 83733 35997 39362 48% /stand
/dev/vg00/lvol8 819200 715716 97491 88% /var
/dev/vg00/lvol7 819200 510773 289160 64% /usr
/dev/vg00/lvol4 65536 28470 34834 45% /tmp
/dev/vg00/lvol9 1536000 780401 708418 52% /oracle
/dev/vg00/lvol6 348160 224378 116059 66% /opt
/dev/vg00/lvol5 20480 1109 18168 6% /home
/dev/vg03/lvol1 8888320 3647240 5077344 42% /exportacao
/dev/vg05/lvol1 17776640 11601772 6078448 66% /trabalho
/dev/vgprodrj01/lvol1
4096000 1524136 2411178 39% /controle01
/dev/vgprodrj01/lvol2
6144000 4667078 1384615 77% /dados01
/dev/vgprodrj01/lvol3
4096000 2792577 1221963 70% /indices01
6 REPLIES 6
Robert-Jan Goossens
Honored Contributor

Re: bdf problems

Hi Fernando,

You can change the mount order in the /etc/fstab. You will have to wait for your next reboot to take affect.

Hope this helps,
Robert-Jan
A. Clay Stephenson
Acclaimed Contributor

Re: bdf problems

First, you need to better organize your thoughts and describe the problem.

If you are referring to bdf splitting long entries into two separate lines the you could filter the output through a very simple awk filter so that if a record (line) does not begin with /dev it should be appended to the last line.

An even simpler method is to use df which does not split lines for the same filesystem.
If it ain't broke, I can fix that.
Geoff Wild
Honored Contributor

Re: bdf problems

Do you want to sort? or make it look nice?

If the latter - then look at attached script called bdfmegs.

Output like:

# bdfmegs
File System Mbytes Used Avail %Used Mounted on
/dev/vg00/lvol3 200 166 34 83% /
/dev/vg00/lvol1 292 53 209 20% /stand
/dev/vg00/lvol8 4600 1668 2912 36% /var
/dev/vg00/lvol13 2048 985 996 50% /var/opt/perf/datafiles
/dev/vg01/lvol2 12288 4 11901 0% /var/adm/crash
/dev/vg00/lvol7 2048 1387 656 68% /usr
/dev/vg00/lvol14 512 167 324 34% /usr/openv
/dev/vg00/lvol4 512 54 455 11% /tmp
/dev/vg00/lvol6 2048 1462 582 72% /opt
/dev/vg00/lvol12 256 6 234 3% /opt/cctool
/dev/vg00/lvol10 24 2 21 8% /ops
/dev/vg00/lvol5 512 194 316 38% /home
/dev/vg00/lvol11 1024 167 803 17% /data
/dev/vg00/lvol9 1536 363 1100 25% /app
pctransf:/export/usr/sap/trans 6144 2002 3889 34% /usr/sap/trans
iprdbf:/export/sapmnt/IPR 10240 2508 7521 25% /sapmnt/IPR
iprdbf:/export/data/sap/IPR/ARCHIVE 129424 123001 6373 95% /data/sap/IPR/ARCHIVE
iprdbf:/export/sapmnt/IPR 10240 2508 7521 25% /sapmnt/IPR
/dev/vg57/lvol3 8192 63 7875 1% /var/adm/lp
/dev/vg57/lvol4 17176 1387 15548 8% /var/spool/lp
/dev/vg57/lvol1 256 126 122 51% /etc/lp
/dev/vg57/lvol2 256 188 64 75% /var/sam/lp
pctransf:/export/usr/sap/trans 6144 2002 3889 34% /usr/sap/trans
iprdbf:/export/data/sap/IPR/ARCHIVE 129424 123001 6373 95% /data/sap/IPR/ARCHIVE


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Fernando Jose P de Souz
Regular Advisor

Re: bdf problems

How can i remove the word "/dev" ??
Nicolas Dumeige
Esteemed Contributor

Re: bdf problems

bdf | sed -e 's@/dev@@'
All different, all Unix
Hein van den Heuvel
Honored Contributor

Re: bdf problems


Fernando,

Please check out existing support for these problems by using the 'SEARCH' function at the top of the page.

More options --> X ITRC Forums -> X HP-UX -> X subject line

Leads to:
http://forums1.itrc.hp.com/service/james/searchForums.do?searchText=bdf&searchOptionITRC=true&searchCategoryITRC=HP-UX&searchCategoryBSC=ALL&searchIn=subjectLine

Which points to several sopics addressing similar questions as yours. For example, check out:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=440647


Enjoy!
Hein.