- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sorting lvols
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
12-04-2001 11:42 AM
12-04-2001 11:42 AM
I would like to sort my vg00/lvol1-9 and my vg02 lvol1-4 so that they appear in order when I do a bdf.
Suggestions?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2001 11:44 AM
12-04-2001 11:44 AM
Re: sorting lvols
How about:
bdf | grep -v "Filesystem" | sort
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2001 11:54 AM
12-04-2001 11:54 AM
Re: sorting lvols
Try,
bdf |sort
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2001 12:08 PM
12-04-2001 12:08 PM
Re: sorting lvols
bdf |grep -e "vg00" |grep -e "vg02" |sort ?
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2001 12:08 PM
12-04-2001 12:08 PM
Re: sorting lvols
bdf |grep -e "vg00" -e "vg02" |sort ?
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2001 12:28 PM
12-04-2001 12:28 PM
Re: sorting lvols
Try
#bdf |sort -k 1
Thanks.
Prashant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2001 12:40 PM
12-04-2001 12:40 PM
Re: sorting lvols
Good Luck,
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2001 03:01 PM
12-04-2001 03:01 PM
Re: sorting lvols
I wanted them sorted permanently so that anytime I do a bdf it shows it order. I thought there was a vgdisplay command to do this, but perhaps I am mistaken.
Nickd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2001 03:17 PM
12-04-2001 03:17 PM
SolutionYou set an alias for the bdf command to get the output you want.
for eg:
#alias bdf="bdf |sort"
>bdf
/dev/vg00/fs_crash 716800 49454 625708 7% /var/adm/crash
/dev/vg00/fs_emc 262144 73970 176459 30% /opt/emc
/dev/vg00/fs_localadm
/dev/vg00/fs_omni 524288 44404 449939 9% /opt/omni
/dev/vg00/fs_oracle
/dev/vg00/fs_perf 262144 75715 174835 30% /var/opt/perf
/dev/vg00/fs_prod 53248 1117 48880 2% /prod
/dev/vg00/fs_sw 614400 573285 38549 94% /var/adm/sw
/dev/vg00/lvol1 127573 40775 74040 36% /stand
/dev/vg00/lvol3 262144 42928 206178 17% /
/dev/vg00/lvol4 524288 406477 110475 79% /opt
/dev/vg00/lvol5 131072 11736 111918 9% /tmp
/dev/vg00/lvol6 1122304 531264 554143 49% /usr
/dev/vg00/lvol7 524288 151848 349924 30% /var
/dev/vg00/lvol8 262144 8952 237397 4% /home
-raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 04:55 AM
12-05-2001 04:55 AM
Re: sorting lvols
The last suggestion was by far the simplest
bdf|sort
Cheers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 05:57 AM
12-05-2001 05:57 AM
Re: sorting lvols
Hope you don't mind one more suggestion:
I always edit the /etc/mnttab file to show the order that I want things to appear. Makes life easier for consistency across the board since I always set the vg00 group to be the first one's read. Give it a try on a sandbox if you have one.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 06:53 AM
12-05-2001 06:53 AM
Re: sorting lvols
Many thanks, consider the issue closed.
Thanks to all.