Unix/Linux Go Back    


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

LVM version 2.0

HP-UX


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 02-24-2017   -   Original Discussion by kpatel786
kpatel786 kpatel786 is offline
Registered User
 
Join Date: Apr 2007
Last Activity: 30 October 2017, 11:18 AM EDT
Posts: 32
Thanks: 10
Thanked 0 Times in 0 Posts
LVM version 2.0

Hi,

I am trying to change the value "VG Max Size" from 1t to 3t on lvm version 2.0 via the vgmodify command, but this command is not longer supported in version 2.0. With what command can I can the "VG Max Size" value for lvm version 2.0 , I am using 11.3i hpux version.


Thanks and Regards

The error I get is

Code:
Error: This command is not supported on volume group version 2.0.

Sponsored Links
    #2  
Old Unix and Linux 02-25-2017   -   Original Discussion by kpatel786
Peasant's Unix or Linux Image
Peasant Peasant is offline Forum Advisor  
Registered User
 
Join Date: Mar 2011
Last Activity: 23 November 2017, 1:11 AM EST
Posts: 1,089
Thanks: 31
Thanked 321 Times in 281 Posts
Can you post :

Code:
vgdisplay -v <yourvolumegroup>

Can you check this HP documentation for reference (vgmodify) :
http://h20566.www2.hpe.com/hpsc/doc/...r_na-c02023734

Also, what was the exact vgmodify command you ran ?

Hope that helps
Regards
Peasant.
Sponsored Links
    #3  
Old Unix and Linux 02-27-2017   -   Original Discussion by kpatel786
kpatel786 kpatel786 is offline
Registered User
 
Join Date: Apr 2007
Last Activity: 30 October 2017, 11:18 AM EDT
Posts: 32
Thanks: 10
Thanked 0 Times in 0 Posts
Thanks for your reply just wanted to understand if vgmodify command can be run for the version 2.0 , cause I have tried all the valid examples of vgmodify command and they do not work. In the end I just created a new vg with the required values and copied all the old data onto the new vg.

---------- Post updated at 07:44 AM ---------- Previous update was at 06:51 AM ----------


Code:
The command tried was :

sudo vgmodify -a -S 2099136m vg_ignite

/var/opt/ignite>>vgdisplay -v vg_ignite |more
--- Volume groups ---
VG Name                     /dev/vg_ignite
VG Write Access             read/write
VG Status                   available
Max LV                      511
Cur LV                      1
Open LV                     1
Max PV                      511
Cur PV                      19
Act PV                      19
Max PE per PV               131072
VGDA                        38
PE Size (Mbytes)            8
Total PE                    102467
Alloc PE                    102467
Free PE                     0
Total PVG                   0
Total Spare PVs             0
Total Spare PVs in use      0
VG Version                  2.0
VG Max Size                 1t
VG Max Extents              131072

   --- Logical volumes ---
   LV Name                     /dev/vg_ignite/lv_ignite
   LV Status                   available/syncd
   LV Size (Mbytes)            819736
   Current LE                  102467
   Allocated PE                102467
   Used PV                     19

    #4  
Old Unix and Linux 02-27-2017   -   Original Discussion by kpatel786
Peasant's Unix or Linux Image
Peasant Peasant is offline Forum Advisor  
Registered User
 
Join Date: Mar 2011
Last Activity: 23 November 2017, 1:11 AM EST
Posts: 1,089
Thanks: 31
Thanked 321 Times in 281 Posts
You are missing other options for which you need to specify like VG Max Extents
currently set to (131072 * 8 MB), which is same as VG Max Size.

Read the docs. Changing volume group properties requires adjusting multiple volume group parameters (VG max size, max extent, extent size).
Best is configure those during creation of volume group, altho 2.x lvm relaxes the umount/deactivation for changing of vg if possible.

If you just do a vgcreate <vg> <disk> it will create those limits by default based on that one disk properties.
Adding multiples disks will change that behavior the layout like vgcreate <vg> <disk1> <disk2> <disk N> based, again, on the size of those.
This is documented in manual of vgcreate as default values for each switches you do not specify and their correlation / dependance (you specify one, other is being generated based on that value if not specified etc.)

Conclusion being, plan ahead and configure your volume group with all the possible options you might need in the future, don't let 'defaults' take over on everything.

Now you probably have new volume group with one 3 TB volume with max extents 3 TB and max volume group size of 3 TB or ?
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
OS version and Firmware version ElizabethPJ Red Hat 1 07-02-2014 09:41 PM
Copy a file from directroy/ prior version to the directory/ new version roy1912 Shell Programming and Scripting 4 04-29-2013 01:04 PM
Advanced Search * View * Edit JAVA version to WORK in GLASSFISH Forum topic JAVA version lhareigh890 UNIX for Advanced & Expert Users 1 02-10-2011 03:49 PM
Migrate unix version 8 to version 9 lsy Solaris 2 09-16-2008 02:00 AM
What is my Version aldosfox HP-UX 1 12-09-2007 10:40 PM



All times are GMT -4. The time now is 03:35 AM.