1767188 Members
3623 Online
108959 Solutions
New Discussion

Need Help LV extend

 
MCC_Nancy
Senior Member

Need Help LV extend

Any Guru in here,

I need help, verification and try to gain self-confidence {me} - scare of soul of me working this critical system. I took over our unix server by default after our SA quit.  However, one of file folder is now 91% full.  I would like to extend this lv and file folder. The command below,: Are correct  and  good  to  go for me to execute? 

# vgdisplay -v /dev/vg01

--- Volume groups ---

VG Name                     /dev/vg01

VG Write Access             read/write

VG Status                   available

Max LV                      511

Cur LV                      9

Open LV                     9

Max PV                      511

Cur PV                      3

Act PV                      3

Max PE per PV               262144

VGDA                        6

PE Size (Mbytes)            16

Total PE                    262144      = 4,194,304 mgb =  4.19  (TB)

Alloc PE                    160645      =  2,570,320 mgb = 2.57 (TB)

Free PE                     101499      =  1,623,984 mgb =  1.62 (TB) available

Total PVG                   0

Total Spare PVs             0

Total Spare PVs in use      0

VG Version                  2.0

VG Max Size                 4t

VG Max Extents              262144

 

# lvdisplay /dev/vg01/lv_ordp1

--- Logical volumes ---

LV Name                     /dev/vg01/lv_ordp1

VG Name                     /dev/vg01

LV Permission               read/write

LV Status                   available/syncd

Mirror copies               0

Consistency Recovery        MWC

Schedule                    parallel

LV Size (Mbytes)       1843184          =  1,843,184 mgb  = 1.84 (TB)

Current LE                  115199           =   115199 * 16 (PE by mgb) = 1,843,184 mgb = 1.84 (TB)

Allocated PE                115199

Stripes                     0

Stripe Size (Kbytes)        0

Bad block                   NONE

Allocation                  strict

IO Timeout (Seconds)        default

 

 

What I need  to do:

  • Current LE and Allocated PE 115199 (mgb) * 16 (PE by mgb) = 1,843,184 mgb = 1.84 Terabytes
  • Increase Current LE and Allocated PE  from 115199 (mgb) + 10,000 (mgb) = 125199 (mgb) * 16 (PE by mgb) = 2,003,184(mgb) = 2.0 (Tbytes)            
  • Total Increase is 160,000(mgb) = 60(gbytes)                                                     

 

I do have Online JFS in the system.

 

Command I need to execute:

Goal:   Extend the size of this /dev/vg01/lv_ordp1 1887420416 1707272594 168888814   91% /ordatap1

 

#lvextend -L 125199  /dev/vg01/lv_ordp1        

 

#fsadm -F vxfs -b 125199M  /ordatap1

 

Thank you so much!

Nancy

2 REPLIES 2
shuff
Frequent Advisor

Re: Need Help LV extend

The commands you have proposed for extending the logical volume and resizing the filesystem on your Unix server with Online JFS are correct. The command lvextend -L 125199 /dev/vg01/lv_ordp1 will extend the logical volume to the specified size. Following this, the command fsadm -F vxfs -b 125199M /ordatap1 will resize the filesystem to match the new size of the logical volume. However, there are a few considerations to keep in mind:

  1. Ensure Sufficient Space: Before running these commands, verify that there is enough free space in the volume group to accommodate the extension.

  2. Backup Important Data: Although these operations are generally safe, it is always a good practice to back up important data before making changes to disk partitions and filesystems.

  3. Monitor System Logs: Keep an eye on system logs for any error messages during the process. This can help in quickly identifying and resolving any issues that may arise.

  4. Defragmentation: After resizing, consider running a defragmentation process using fsadm to optimize the filesystem performance.

MCC_Nancy
Senior Member

Re: Need Help LV extend

@shuff shuff, 

Thank you so much!!!!!  I do have a good backup in place.  About the  Group Volume ,  I think  I  have enough space to extend to  60 GB for now (currently Group Volume has Free PE 101499 = 1,623,984 mgb = 1.62 (TB) available).  This is the part I am struggle to comprehend if I do the right thing in calculation. 

-- Volume groups ---

VG Name /dev/vg01

VG Write Access read/write

VG Status available

Max LV 511

Cur LV 9

Open LV 9

Max PV 511

Cur PV 3

Act PV 3

Max PE per PV 262144

VGDA 6

PE Size (Mbytes) 16

Total PE 262144 = 4,194,304 mgb = 4.19 (TB)

Alloc PE 160645 = 2,570,320 mgb = 2.57 (TB)

Free PE 101499 = 1,623,984 mgb = 1.62 (TB) available

Total PVG 0

Total Spare PVs 0

Total Spare PVs in use 0

VG Version 2.0

VG Max Size 4t

VG Max Extents 262144

 

Once again, thank  you so much and what relieved for me..... 

Nancy