How to add disk to a VPAR and Extend a FileSystem online on HP-UX?

At this  post we  perform filesytem extend  operation for  HP-UX  VPAR node. So basically  we  get  answer abaut  these  questions for  HP-UX .

  • How to scan new added  device?
  • How to check storage device?
  • How to add and  view  storage  device  on  VSP  for  VPAR?
  • How to extend  Volume  Group?
  • How to resize  Logical Volume?
  • How to perform online extend  on HP-UX?

Step 1: Check Luns
Get LUN ID from storage admin.

Step 2: Scan for  new  device 
Run ioscan on vsp node.If server doesn’t show new added Lun, you should run “insf”  and also check this
knowledgebase abaut how to remove dead luns.

Step 3: Get Information
Check new added lun with “ioscan” command.

Step 4: Add new added disk to existing vpar node. 
New Added Lun: /dev/rdisk/disk232

When you finish add disk operation and run  hpvmdevinfo command, it”  shows  “Virtual Machine Device  Name”  state unknown. It’s  normal situation.You should wait  until VSP agent  gets  all information  from client. But  if you already  know  disk id on  vpar node  you can continue to  the next step.

Step 5:  Connect Vpar Node to check new added disk

Step 6: PV operation
Check new added disk if is there any configuration abaut VG. I strongly recommend to perform this step. Because you need to be sure abaut new added device doesn’t use at any server.

After control operation now you can create PV for new added disk.

Step 7: Extend VG

Step 8: Extend LVM
We performed extend operation for “oragg” logical volume(LVM).Before start operation we check that oragg LVM’s Physical Extend (PE) size 320. Every PE’s size is 64 MB. So our LV size is almost “20480 MB”. We extend our LV’s PE size from 320 to 5320. It means we extend LVM’s size from “20480 MB” to “340480 MB”

Step 9: Online Extend
To perform online filesystem extend you should install OnlineJFS package.You can get OnlineJFS package from HPE.

This  is another  critical step that you need to be careful. First check your lvdisplay output. You should write your LVM’s  size (MB) after -b option.And also add your mount point to.In my case my LVM’s size (340480M) and also mount point is (/oragg)

 

 

Follow me

Abdurrahim

I'm a System Engineer with extensive experience and administration skills and works for Interbank Card Center Of Turkey.I provide hardware and software support for the following Unix/Linux and Windows platforms.(Oracle Solaris,HP-UX, Linux, IBM-AIX, Windows Servers)
Follow me

Latest posts by Abdurrahim (see all)

facebooktwittergoogle_pluslinkedinby feather

0