LVM and VxVM
cancel
Showing results for 
Search instead for 
Did you mean: 

lvextend - don't show the extension in bdf

 
SOLVED
Go to solution
KonradFL
Occasional Contributor

lvextend - don't show the extension in bdf

Hallo All

 

I'm a rookie and have an 'special' behavor from HP-UX:

I tried to extend a lvol and it seams, that all is fine, but the command bdf don't show the new size. What can be missing in my work?

 

*SERVER-1*:/# uname -a
HP-UX *SERVER-1* B.11.11 U 9000/800 1039716944 unlimited-user license
*SERVER-1*:/# swlist -l product | grep -i online
  OnlineJFS             B.11.11.03.03  Online features of the VxFS File System


Bevore the extend-command:
********************************
*SERVER-1*:/# lvdisplay -v /dev/vg11/lv_INEX | head -30
--- Logical volumes ---
LV Name                     /dev/vg11/lv_INEX
VG Name                     /dev/vg11
LV Permission               read/write
LV Status                   available/syncd
Mirror copies               0
Consistency Recovery        MWC
Schedule                    parallel
LV Size (Mbytes)            30512
Current LE                  1907
Allocated PE                1907
Stripes                     0
Stripe Size (Kbytes)        0
Bad block                   on
Allocation                  strict
IO Timeout (Seconds)        default

   --- Distribution of logical volume ---
   PV Name            LE on PV  PE on PV
   /dev/dsk/c22t0d2   1907      1907

   --- Logical extents ---
   LE    PV1                PE1   Status 1
   00000 /dev/dsk/c22t0d2   10680 current
   00001 /dev/dsk/c22t0d2   10681 current
...

*SERVER-1*:/# bdf | grep -i inex
/dev/vg11/lv_INEX  31244288 25857092 5303028   83% /oracle/oradata/INEX

Then the work
***********************
*SERVER-1*:/# lvextend -L 40000 /dev/vg11/lv_INEX /dev/dsk/c22t0d2
Logical volume "/dev/vg11/lv_INEX" has been successfully extended.
Volume Group configuration for /dev/vg11 has been saved in /etc/lvmconf/vg11.conf
*SERVER-1*:/# fsadm -F vxfs -o largefiles /oracle/oradata/INEX


after extend command:
***************************
*SERVER-1*:/# lvdisplay -v /dev/vg11/lv_INEX | more
--- Logical volumes ---
LV Name                     /dev/vg11/lv_INEX
VG Name                     /dev/vg11
LV Permission               read/write
LV Status                   available/syncd
Mirror copies               0
Consistency Recovery        MWC
Schedule                    parallel
LV Size (Mbytes)            40000
Current LE                  2500
Allocated PE                2500
Stripes                     0
Stripe Size (Kbytes)        0
Bad block                   on
Allocation                  strict
IO Timeout (Seconds)        default

   --- Distribution of logical volume ---
   PV Name            LE on PV  PE on PV
   /dev/dsk/c22t0d2   2500      2500

   --- Logical extents ---
   LE    PV1                PE1   Status 1
   00000 /dev/dsk/c22t0d2   10680 current
   00001 /dev/dsk/c22t0d2   10681 current
   00002 /dev/dsk/c22t0d2   10682 current
...
   01904 /dev/dsk/c22t0d2   12584 current
   01905 /dev/dsk/c22t0d2   12585 current
   01906 /dev/dsk/c22t0d2   12586 current
   01907 /dev/dsk/c22t0d2   16962 current  #from here is the new space
   01908 /dev/dsk/c22t0d2   16963 current
...
   02497 /dev/dsk/c22t0d2   17552 current
   02498 /dev/dsk/c22t0d2   17553 current
   02499 /dev/dsk/c22t0d2   17554 current


*SERVER-1*:/# bdf | grep -i INEX
/dev/vg11/lv_INEX  31244288 25857092 5303028   83% /oracle/oradata/INEX
*SERVER-1*:/#

2 REPLIES 2
Patrick Wallek
Honored Contributor
Solution

Re: lvextend - don't show the extension in bdf

You extended the logical volume (LV) but you did not extend the file system afterwards.

 

You now need to do:

 

# fsadm -b 40000m /oracle/oradata/INEX

 

If that fails, then you likely do not have Online JFS installed on your system.  In that case you will have to unmount the file system and run an 'extendfs' command to extend it, then remount.  This would require your Oracle DB to be shut down though.

 

<shut down Oracle>

# umount /oracle /oradata/INEX

# extendfs /dev/vg11/rlv_INEX

# mount /oracle/oradata/INEX

<restart Oracle>

 

Once either the 'fsadm' or the 'extendfs' has been done, you can now run 'bdf' to check the new size.

KonradFL
Occasional Contributor

Re: lvextend - don't show the extension in bdf

Hello  Patrick

 

Thanks for your time to check it and to anwer.

Your replay helped me!

 

Have a nice day

Regards, Konrad