Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

12389

March 1st, 2012 23:00

Increase size of LUN

SAN: Calriion CX3-10C

How can I increase size of LUN (50GB) attached to Linux Red Hat host (RHEL 5.2) 64bit by adding new created LUN (200GB)?

What steps do we need to take to get the Linux host to see the new space? I am going to present a new LUN from EMC array to the Linux system.

The existing system partion it looks:

# fdisk -l


Disk /dev/sda: 72.7 GB, 72746008576 bytes

255 heads, 63 sectors/track, 8844 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes


  Device Boot      Start         End      Blocks   Id  System

/dev/sda1   *           1          13      104391   83  Linux

/dev/sda2              14        8844    70935007+  8e  Linux LVM


Disk /dev/sdb: 53.6 GB, 53687091200 bytes

64 heads, 32 sectors/track, 51200 cylinders

Units = cylinders of 2048 * 512 = 1048576 bytes


  Device Boot      Start         End      Blocks   Id  System

/dev/sdb1               1       51200    52428784   8e  Linux LVM


Disk /dev/sdc: 53.6 GB, 53687091200 bytes

64 heads, 32 sectors/track, 51200 cylinders

Units = cylinders of 2048 * 512 = 1048576 bytes


  Device Boot      Start         End      Blocks   Id  System

/dev/sdc1               1       51200    52428784   8e  Linux LVM


Disk /dev/sdd: 53.6 GB, 53687091200 bytes

64 heads, 32 sectors/track, 51200 cylinders

Units = cylinders of 2048 * 512 = 1048576 bytes


  Device Boot      Start         End      Blocks   Id  System

/dev/sdd1               1       51200    52428784   8e  Linux LVM


Disk /dev/sde: 53.6 GB, 53687091200 bytes

64 heads, 32 sectors/track, 51200 cylinders

Units = cylinders of 2048 * 512 = 1048576 bytes


  Device Boot      Start         End      Blocks   Id  System

/dev/sde1               1       51200    52428784   8e  Linux LVM


Disk /dev/emcpowera: 53.6 GB, 53687091200 bytes

64 heads, 32 sectors/track, 51200 cylinders

Units = cylinders of 2048 * 512 = 1048576 bytes


        Device Boot      Start         End      Blocks   Id  System

/dev/emcpowera1               1       51200    52428784   8e  Linux LVM

16 Posts

March 8th, 2012 13:00

I will check it tomorrow? ....

If its not the case, can i live with it, I lost (50G)....?  

What would I have to do in the future if I want to increase the LUN which aligment should I take?

16 Posts

March 8th, 2012 13:00

I will do it tomorrow....

16 Posts

March 9th, 2012 00:00

[root@imail ~]# fdisk -l

Disk /dev/sda: 72.7 GB, 72746008576 bytes

255 heads, 63 sectors/track, 8844 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System

/dev/sda1   *           1          13      104391   83  Linux

/dev/sda2              14        8844    70935007+  8e  Linux LVM

Disk /dev/sdb: 53.6 GB, 53687091200 bytes

64 heads, 32 sectors/track, 51200 cylinders

Units = cylinders of 2048 * 512 = 1048576 bytes

   Device Boot      Start         End      Blocks   Id  System

/dev/sdb1               1       51200    52428784   8e  Linux LVM

Disk /dev/sdc: 322.1 GB, 322122547200 bytes

255 heads, 63 sectors/track, 39162 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System

/dev/sdc1               1       39162   314568733+  8e  Linux LVM

Disk /dev/sdd: 53.6 GB, 53687091200 bytes

64 heads, 32 sectors/track, 51200 cylinders

Units = cylinders of 2048 * 512 = 1048576 bytes

   Device Boot      Start         End      Blocks   Id  System

/dev/sdd1               1       51200    52428784   8e  Linux LVM

Disk /dev/sde: 322.1 GB, 322122547200 bytes

255 heads, 63 sectors/track, 39162 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System

/dev/sde1               1       39162   314568733+  8e  Linux LVM

Disk /dev/sdf: 53.6 GB, 53687091200 bytes

64 heads, 32 sectors/track, 51200 cylinders

Units = cylinders of 2048 * 512 = 1048576 bytes

   Device Boot      Start         End      Blocks   Id  System

/dev/sdf1               1       51200    52428784   8e  Linux LVM

Disk /dev/sdg: 322.1 GB, 322122547200 bytes

255 heads, 63 sectors/track, 39162 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System

/dev/sdg1               1       39162   314568733+  8e  Linux LVM

Disk /dev/sdh: 53.6 GB, 53687091200 bytes

64 heads, 32 sectors/track, 51200 cylinders

Units = cylinders of 2048 * 512 = 1048576 bytes

   Device Boot      Start         End      Blocks   Id  System

/dev/sdh1               1       51200    52428784   8e  Linux LVM

Disk /dev/sdi: 322.1 GB, 322122547200 bytes

255 heads, 63 sectors/track, 39162 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System

/dev/sdi1               1       39162   314568733+  8e  Linux LVM

Disk /dev/emcpowera: 53.6 GB, 53687091200 bytes

64 heads, 32 sectors/track, 51200 cylinders

Units = cylinders of 2048 * 512 = 1048576 bytes

         Device Boot      Start         End      Blocks   Id  System

/dev/emcpowera1               1       51200    52428784   8e  Linux LVM

Disk /dev/emcpowerb: 322.1 GB, 322122547200 bytes

255 heads, 63 sectors/track, 39162 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

         Device Boot      Start         End      Blocks   Id  System

/dev/emcpowerb1               1       39162   314568733+  8e  Linux LVM

[root@imail ~]# vgscan

  Reading all physical volumes.  This may take a while...

  Found volume group "VolGroup00" using metadata type lvm2

  Found volume group "emc5_vg1" using metadata type lvm2

[root@imail ~]# lvmdiskscan

  /dev/ram0                [       16.00 MB]

  /dev/root                [       52.00 GB]

  /dev/ram                 [       16.00 MB]

  /dev/sda1                [      101.94 MB]

  /dev/emcpowera1          [       50.00 GB] LVM physical volume

  /dev/VolGroup00/LogVol01 [       15.62 GB]

  /dev/ram2                [       16.00 MB]

  /dev/sda2                [       67.65 GB] LVM physical volume

  /dev/emc5_vg1/emc5_lv1   [      348.99 GB]

  /dev/ram3                [       16.00 MB]

  /dev/ram4                [       16.00 MB]

  /dev/ram5                [       16.00 MB]

  /dev/ram6                [       16.00 MB]

  /dev/ram7                [       16.00 MB]

  /dev/ram8                [       16.00 MB]

  /dev/ram9                [       16.00 MB]

  /dev/ram10               [       16.00 MB]

  /dev/ram11               [       16.00 MB]

  /dev/ram12               [       16.00 MB]

  /dev/ram13               [       16.00 MB]

  /dev/ram14               [       16.00 MB]

  /dev/ram15               [       16.00 MB]

  /dev/emcpowerb1          [      300.00 GB] LVM physical volume

  2 disks

  18 partitions

  0 LVM physical volume whole disks

  3 LVM physical volumes

[root@imail ~]# pvscan

  PV /dev/sda2         VG VolGroup00   lvm2 [67.62 GB / 0    free]

  PV /dev/emcpowera1   VG emc5_vg1     lvm2 [50.00 GB / 0    free]

  PV /dev/emcpowerb1   VG emc5_vg1     lvm2 [299.99 GB / 1020.00 MB free]

  Total: 3 [417.61 GB] / in use: 3 [417.61 GB] / in no VG: 0 [0   ]

[root@imail ~]# pvdisplay

  --- Physical volume ---

  PV Name               /dev/sda2

  VG Name               VolGroup00

  PV Size               67.65 GB / not usable 24.47 MB

  Allocatable           yes (but full)

  PE Size (KByte)       32768

  Total PE              2164

  Free PE               0

  Allocated PE          2164

  PV UUID               l4mdVJ-We0U-jvQT-E3RY-zczn-qOFB-T9rwIE

  

  --- Physical volume ---

  PV Name               /dev/emcpowera1

  VG Name               emc5_vg1

  PV Size               50.00 GB / not usable 3.98 MB

  Allocatable           yes (but full)

  PE Size (KByte)       4096

  Total PE              12799

  Free PE               0

  Allocated PE          12799

  PV UUID               V2tYvg-cqJf-Vz1U-SWpu-1R8f-OKt6-TbPOwr

  

  --- Physical volume ---

  PV Name               /dev/emcpowerb1

  VG Name               emc5_vg1

  PV Size               300.00 GB / not usable 4.03 MB

  Allocatable           yes

  PE Size (KByte)       4096

  Total PE              76798

  Free PE               255

  Allocated PE          76543

  PV UUID               r6kdY1-gaaA-N86h-cjlV-uys9-hoqM-3zrvrG

  

[root@imail ~]# fdisk -lu /dev/emcpowera1

Disk /dev/emcpowera1: 53.6 GB, 53687074816 bytes

255 heads, 63 sectors/track, 6527 cylinders, total 104857568 sectors

Units = sectors of 1 * 512 = 512 bytes

Disk /dev/emcpowera1 doesn't contain a valid partition table

[root@imail ~]# fdisk -lu /dev/emcpowerb1

Disk /dev/emcpowerb1: 322.1 GB, 322118383104 bytes

255 heads, 63 sectors/track, 39161 cylinders, total 629137467 sectors

Units = sectors of 1 * 512 = 512 bytes

Disk /dev/emcpowerb1 doesn't contain a valid partition table

[root@imail ~]#

1 Rookie

 • 

20.4K Posts

March 9th, 2012 04:00

vgdisplay

16 Posts

March 9th, 2012 08:00

[root@imail ~]# vgdisplay

  --- Volume group ---

  VG Name               VolGroup00

  System ID            

  Format                lvm2

  Metadata Areas        1

  Metadata Sequence No  3

  VG Access             read/write

  VG Status             resizable

  MAX LV                0

  Cur LV                2

  Open LV               2

  Max PV                0

  Cur PV                1

  Act PV                1

  VG Size               67.62 GB

  PE Size               32.00 MB

  Total PE              2164

  Alloc PE / Size       2164 / 67.62 GB

  Free  PE / Size       0 / 0  

  VG UUID               Nc7ydx-BKZm-BBIp-BrVs-YoCO-elpB-VGcdgy

  

  --- Volume group ---

  VG Name               emc5_vg1

  System ID            

  Format                lvm2

  Metadata Areas        2

  Metadata Sequence No  4

  VG Access             read/write

  VG Status             resizable

  MAX LV                0

  Cur LV                1

  Open LV               1

  Max PV                0

  Cur PV                2

  Act PV                2

  VG Size               349.99 GB

  PE Size               4.00 MB

  Total PE              89597

  Alloc PE / Size       89342 / 348.99 GB

  Free  PE / Size       255 / 1020.00 MB

  VG UUID               SkrPh1-qoR7-LGST-MfSp-UnaJ-XNE1-Pggkul

1 Rookie

 • 

20.4K Posts

March 9th, 2012 10:00

so from pvdisplay and vgdispaly everything looks good, the logical volume looks good as well

/dev/emc5_vg1/emc5_lv1   [  348.99 GB]

something does look right from the file system perspective. Have you tried to unmount and re-mount that file system ?

16 Posts

March 10th, 2012 04:00

No I did not, but after the increasing of the LUN I have rebooted the server

[imail ~]$ uptime

14:11:09 up 1 day, 23:44,  3 users,  load average: 1.20, 0.52, 0.29

1 Rookie

 • 

20.4K Posts

March 10th, 2012 12:00

you rebooted after you ran resize2fs ?

16 Posts

March 10th, 2012 14:00

yes,,,,, but as I told you before the resize2fs went too long so I killed the process as stated in my old post

<...During the procedure of number 6, the system went in loop, i was able to login but anot able to get inside that directory the system was busy increasing the LUN afte a while of 15min, the file system  was increasing but to that point and stopped ... I did all the above online and without mounting the filesystem /opt/zimbra.

After the reboot, system came back online with the following size...>

So do you think I should do the resize2fs again?

16 Posts

March 10th, 2012 22:00

#resize2fs /dev/emc5_vg1/emc5_lv1

I will try the above command by end of this week, before that I ll do the snap shot.

I will keep you updated.

Thanks for your help

138 Posts

August 22nd, 2013 13:00

I want to do this exact thing, but ON THE FLY, with Linux up and applications running; i.e. - extend the PV by 50 GB on the Array and then extend PVs, LVs, File systems on RHEL.   I think it should be something like:

# pvscan

# pvresize

# lvextend (or lvresize)

# fsadm ?

Does anybody know how to do this?

    Stuart

No Events found!

Top