Please login or register. August 18, 2019, 09:12:54 PM

Author Topic: extend Logical Volume to additional physical disk  (Read 5612 times)

0 Members and 1 Guest are viewing this topic.

MikeVanHoff

  • Jr. Member
  • **
  • Posts: 5
  • Karma: +0/-0
extend Logical Volume to additional physical disk
« on: August 02, 2011, 02:39:10 PM »
I have AIX 6.1 with many logical volumes.
I am seeing I/O contention on some of the File Systems.  I would like to extend the logical volume these file systems reside on to include an additional physical disk.
Is this possible without completely rebuilding the logical volume and file system?
Thanks in advance.

OdO

  • Full Member
  • ***
  • Posts: 17
  • Karma: +0/-0
Re: extend Logical Volume to additional physical disk
« Reply #1 on: August 18, 2011, 11:01:41 PM »
Hi,

What is the type of disk (SAN, or Local SCSI, SAS drive). What is LVM configuration (VG type, FS type, number of drive ...)

fast and dirty:
if it's possible re-think the LVM configuration. if some FS / hdisk have intensive access (100% busy), Use raid5 configuration to optimizing access by all drive.
If datas was fragmented. Make 2 backups, recreate filesystems in new LVM configuration (VG scallable, PPs size, JFS2 ...) , and restore datas.
The data will be restored in contiguous and access wil be optimized.

Best regards,
Little odo
« Last Edit: August 18, 2011, 11:18:06 PM by OdO »

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1139
  • Karma: +0/-0
Re: extend Logical Volume to additional physical disk
« Reply #2 on: September 06, 2011, 09:27:39 PM »
The basic command is to add a new hdisk (e.g. a new LUN) to a volume group using the command:
# extendvg vgName hdiskXX

Once this is done you can move a logical volume to the new hdisk (volume) using the command:
# migratepv -l lvName SourcePV DestPV

If the logicical volume is on multiple disks you might want to use mklvcopy instead - to make a new copy on the new disk, and then use rmlvcopy later to remove the spread out (original).