- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: BDF logical volumes display
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2003 11:42 AM
07-27-2003 11:42 AM
Here's how they display the bdf output:
HP1 System Log
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 143360 47534 89871 35% /
/dev/vg00/lvol1 196656 30688 146296 17% /stand
/dev/vg00/lvol8 1089536 562640 494061 53% /var
/dev/vg00/lvol7 1048576 649530 374123 63% /usr
/dev/vg00/lvol6 106496 7218 93831 7% /tmp
/dev/vg03/oradata2 8192000 6671632 1425537 82% /oradata2
/dev/vg02/ordata1 4096000 3100339 947599 77% /oradata1
/dev/vg01/oradata 8380416 7468473 858090 90% /oradata
/dev/vg00/lvol4 24576 21483 2942 88% /home
/dev/vg05/lvol1 12288000 9641436 2481158 80% /data2
/dev/vg04/lvol2 6348800 2571811 3540965 42% /data
/dev/vg05/oracle 2818048 2332313 455432 84% /oracle
/dev/vg00/lvol5 921600 834423 81738 91% /opt
HP2 System Log
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 204800 141829 59074 71% /
/dev/vg00/lvol1 303125 31737 241075 12% /stand
/dev/vg00/lvol8 1245184 835628 384253 69% /var
/dev/vg00/lvol7 1384448 958665 399426 71% /usr
/dev/vg00/lvol4 600000 32581 533177 6% /tmp
/dev/vg01/oradata2 8224768 5475182 2577741 68% /oradata2
/dev/vg01/oradata1 8224768 4508323 3484278 56% /oradata1
/dev/vg01/oradata 8224768 5654406 2409718 70% /oradata
/dev/vg01/oracle 6160384 2403001 3522567 41% /oracle
/dev/vg00/lvol6 761856 533108 214461 71% /opt
/dev/vg00/lvol5 24576 6809 16723 29% /home
/dev/vg01/data2 18448384 12445708 6002676 67% /data2
/dev/vg01/data 6160384 21690 5755526 0% /data
I want the file systems in HP1 to display in the same order as that displayed by HP2 (the last one). I can temporarily fix it by editing /etc/mnttab. However I must do this very often in order to get them to display the same way to grab the information resulting from the command. I would like a permanent solution.
Order wanted:
/
/stand
/var
/usr
/tmp
/oradata2
/oradata1
/oradata
/oracle
/opt
/home
/data2
/data
Any ideas? Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2003 11:54 AM
07-27-2003 11:54 AM
Re: BDF logical volumes display
Something like:
FILESYSTEMS="/ /stand /var /usr /tmp /oradata2 /oradata1 /oradata /oracle /opt /home /data2 /data"
bdf $FILESYSTEMS
There is no way I know of to have a specific order to the display the LVs when doing a bdf.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2003 12:15 PM
07-27-2003 12:15 PM
Re: BDF logical volumes display
Check the /etc/fstab you can control on the order from there.
But if you want that will shown in the same
order on the two machines and they always
have the same mounts
Then try : bdf | grep ^\/dev\/vg | sort
Caesar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2003 12:19 PM
07-27-2003 12:19 PM
Re: BDF logical volumes display
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2003 03:19 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2003 04:05 PM
07-27-2003 04:05 PM
Re: BDF logical volumes display
bdf -l | sort -k6
That way, regardless of how each system is changed, the mountpoints will always be in the same sorted order.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2003 04:27 PM
07-27-2003 04:27 PM
Re: BDF logical volumes display
If you have filesystems that wrap onto an additional line, then running
$ bdf -i | sort -k6
will not work. Patricks suggestion to run the names into a variable will work well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2003 06:53 PM
07-27-2003 06:53 PM
Re: BDF logical volumes display
bdf -l |
while read FS TOT USED AVAIL PERCENT MNT
do
if [ "$TOT" = "" ]
then
read TOT USED AVAIL PERCENT MNT
fi
print $FS $TOT $USED $AVAIL $PERCENT $MNT
done | sort -k6
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2003 07:41 PM
07-27-2003 07:41 PM
Re: BDF logical volumes display
There is no way you can do it with single command, as you said it's controled by mnttab file.
so best way is the use some script suggeted by other sysadmins.
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2003 06:49 AM
10-03-2003 06:49 AM
Re: BDF logical volumes display
Thanks everyone for your replies, and sorry for the long, very long delay to reply.