HPE GreenLake Administration
- Community Home
 - >
 - Servers and Operating Systems
 - >
 - Operating Systems
 - >
 - Operating System - Linux
 - >
 - Creating extended partitions on Linux
 
Operating System - Linux
        1840197
        Members
    
    
        2924
        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
	
		
			
            
                
            Go to solution
        
            
		
		
			
            	
	
		
        
		
	
	
		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
 
04-27-2006 10:40 PM
04-27-2006 10:40 PM
			
				
					
					
						Hi all, I have the following partition table in my disk.
Disk /dev/cciss/c0d0: 36.4 GB, 36413314560 bytes
255 heads, 63 sectors/track, 4427 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/cciss/c0d0p1 * 1 10 80293+ 83 Linux
/dev/cciss/c0d0p2 11 1054 8385930 83 Linux
/dev/cciss/c0d0p3 1055 2760 13703445 8e Linux LVM
/dev/cciss/c0d0p4 2761 4427 13390177+ 8e Linux LVM
I want to create new one extended partition /dev/cciss/c0d0p4 and the old partition /dev/cciss/c0d0p4 to change to /dev/cciss/c0d0p5 (in LVM of course)
The configuration of LVM is:
--- Volume group ---
VG Name vg00
VG Access read/write
VG Status available/resizable
VG # 0
MAX LV 256
Cur LV 14
Open LV 14
MAX LV Size 2 TB
Max PV 256
Cur PV 2
Act PV 2
VG Size 25.75 GB
PE Size 32 MB
Total PE 824
Alloc PE / Size 822 / 25.69 GB
Free PE / Size 2 / 64 MB
VG UUID nbXkqk-Ho2o-IO1k-6Fq8-4TlK-Ldr6-igLZOj
--- Physical volumes ---
PV Name (#) /dev/cciss/c0d0p3 (2)
PV Status available / allocatable
Total PE / Free PE 417 / 2
PV Name (#) /dev/cciss/c0d0p4 (1)
PV Status available / allocatable
Total PE / Free PE 407 / 0
	
			
				
		
			
			
			
			
			
			
		
		
		
	
	
	
Disk /dev/cciss/c0d0: 36.4 GB, 36413314560 bytes
255 heads, 63 sectors/track, 4427 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/cciss/c0d0p1 * 1 10 80293+ 83 Linux
/dev/cciss/c0d0p2 11 1054 8385930 83 Linux
/dev/cciss/c0d0p3 1055 2760 13703445 8e Linux LVM
/dev/cciss/c0d0p4 2761 4427 13390177+ 8e Linux LVM
I want to create new one extended partition /dev/cciss/c0d0p4 and the old partition /dev/cciss/c0d0p4 to change to /dev/cciss/c0d0p5 (in LVM of course)
The configuration of LVM is:
--- Volume group ---
VG Name vg00
VG Access read/write
VG Status available/resizable
VG # 0
MAX LV 256
Cur LV 14
Open LV 14
MAX LV Size 2 TB
Max PV 256
Cur PV 2
Act PV 2
VG Size 25.75 GB
PE Size 32 MB
Total PE 824
Alloc PE / Size 822 / 25.69 GB
Free PE / Size 2 / 64 MB
VG UUID nbXkqk-Ho2o-IO1k-6Fq8-4TlK-Ldr6-igLZOj
--- Physical volumes ---
PV Name (#) /dev/cciss/c0d0p3 (2)
PV Status available / allocatable
Total PE / Free PE 417 / 2
PV Name (#) /dev/cciss/c0d0p4 (1)
PV Status available / allocatable
Total PE / Free PE 407 / 0
Solved! Go to Solution.
		3 REPLIES 3
	
	            
            
		
		
			
            
                - Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
04-27-2006 11:43 PM
04-27-2006 11:43 PM
			
				
					
						
							Re: Creating extended partitions on Linux
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						To extend a logical volume you simply tell the lvextend command how much you want to increase the size. You can specify how much to grow the volume, or how large you want it to grow to.
Check out LVM HowTo:
http://tldp.org/HOWTO/LVM-HOWTO/extendlv.html
					
				
			
			
				
			
			
				
			
			
			
			
			
			
		
		
		
	
	
	
Check out LVM HowTo:
http://tldp.org/HOWTO/LVM-HOWTO/extendlv.html
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
04-28-2006 01:50 AM
04-28-2006 01:50 AM
			
				
					
						
							Re: Creating extended partitions on Linux
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						This will be a problem because c0d0p4 is part of your current volume group, in that case, you should remove that partition from your volume group. What is the purpose of deleting the partition and creating an extended one? With LVM you don't have to think about partitions, but logical volumes.
You should consider resizing (growing/shrinking) your logical volumes instead of deleting the partitions. You can grow your logical volumes but you cannot shrink it wihout deleting it.
		
		
	
	
	
You should consider resizing (growing/shrinking) your logical volumes instead of deleting the partitions. You can grow your logical volumes but you cannot shrink it wihout deleting it.
	Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
			
			
				
			
			
			
			
			
			
		- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
05-01-2006 11:10 PM
05-01-2006 11:10 PM
Solution
			
				
					
					
						Hi Macero,
This task involves risk of loosing data. If your data is critical it is recomented to take a backup. Then you can use the vgreduce command to realease the partition
/dev/cciss/c0d0p4 2761 4427 13390177+ 8e Linux LVM
see man vgreduce for more details
then delete this partition, create the extended partition and logical drivesas you require. You can add the newly created partitions to the vg using pvcreate & vgextend. Note that which ever partitions you want add to the vg should be of type 8e (Linux LVM). Check for any data lose. If any restore it from your backup
Regards
SMS
		
		
	
	
	
This task involves risk of loosing data. If your data is critical it is recomented to take a backup. Then you can use the vgreduce command to realease the partition
/dev/cciss/c0d0p4 2761 4427 13390177+ 8e Linux LVM
see man vgreduce for more details
then delete this partition, create the extended partition and logical drivesas you require. You can add the newly created partitions to the vg using pvcreate & vgextend. Note that which ever partitions you want add to the vg should be of type 8e (Linux LVM). Check for any data lose. If any restore it from your backup
Regards
SMS
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