HPE GreenLake Administration
- Community Home
 - >
 - Servers and Operating Systems
 - >
 - Operating Systems
 - >
 - Operating System - HP-UX
 - >
 - Show all file systems under each disk
 
Operating System - HP-UX
        1840212
        Members
    
    
        3119
        Online
    
    
        110162
        Solutions
    
Forums
        Categories
Company
Local Language
                
                  
                  back
                
        
                
        
                
        
                
        
        
        
                
        
                
        
        
        
                
        
              
              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
                
                  
                  back
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
            
                
            
                
            
                
            
                
            
            
                
            
                
            
            
                
            
                
              
            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
Blogs
        Information
        Community
Resources
Community Language
        Language
        Forums
Blogs
Topic Options
			
				
					
	
			
		
	- 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
 
06-05-2002 12:28 AM
06-05-2002 12:28 AM
			
				
					
						
							Show all file systems under each disk
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						Dear all,
I would like to know how I can display all file systems under each disk? Does any command can show them all? Thank a lot.
Best Regards
Ajk
		
		
	
	
	
I would like to know how I can display all file systems under each disk? Does any command can show them all? Thank a lot.
Best Regards
Ajk
		3 REPLIES 3
	
	            
            
		
		
			
            
                - Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
06-05-2002 12:32 AM
06-05-2002 12:32 AM
			
				
					
						
							Re: Show all file systems under each disk
						
					
					
				
			
		
	
			
	
	
	
	
	
This command will show you all logical volumes on a disk;
pvdisplay -v /dev/dsk/c4t6d0|awk '{print $3}'|grep lvol|sort -u
You can then match them up with the output from bdf or do it in one go;
echo All filesystems on disk c4t6d0....
for i in $(pvdisplay -v /dsk/c4t6d0|awk '{print $3}'|grep lvol|sort -u)
do
bdf|grep $i
done
	Im from Palmerston North, New Zealand, but somehow ended up in London...
			
			
				
			
			
			
			
			
			
		- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
06-05-2002 12:33 AM
06-05-2002 12:33 AM
			
				
					
						
							Re: Show all file systems under each disk
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						Hi,
Use pvdisplay to identify the logical volumes (LVs) on the PV (physical disk).
For each LV, check against /etc/fstab or bdf output to identify the filesystem that is mounted on the LV.
Hope this helps. Regards.
Steven Sim Kok Leong
		
		
	
	
	
Use pvdisplay to identify the logical volumes (LVs) on the PV (physical disk).
For each LV, check against /etc/fstab or bdf output to identify the filesystem that is mounted on the LV.
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
06-05-2002 05:12 AM
06-05-2002 05:12 AM
			
				
					
						
							Re: Show all file systems under each disk
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						Hi Ajk,
I've attached a script you can use or modify to suit your needs.
Darrell
		
		
	
	
	
I've attached a script you can use or modify to suit your needs.
Darrell
	"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
			
			
				
			
			
			
			
			
			
		The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
		
	
	
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP