Documente Academic
Documente Profesional
Documente Cultură
Change History:
Date 11/08/2010
VIO Document for assigning disk from VIO server to LPAR . ============================================ Q&A =====
No direct method. But we can find by lsdev -Cc adapter | fsc. It shows the fcs list is not LPAR.
lsrsrc "IBM.ManagementServer" shows the IP address. nslookup the ip shows the hmc name.
If two LPAR "A" and LPAR "B" are cluster from different set of VIO servers, How can i requst the disk from BSO?
Provide the VIOS WWN number of the LPAR "A" and LPAR "B" and make the note that PVID should be same, as normal VIO disk requst. No need to mention the servers are cluster.
===============================================================
cfgmgr lspv > /tmp/lspv.new diff /tmp/lspv.old /tmp/lspv.new Make a note of LUN number from the following command
powermt display dev=<disk name> Assign the pvid chdev -l <disk name> -a pv=yes chdev -l hdiskpower14 -a pv=yes
Assign the PVID to the disk in another VIO server chdev -l <disk name> -a pv=yes chdev -l hdiskpower14 -a pv=yes
Confirm the both the PVID are same lspv | grep <PVID> lspv | grep -i hdiskpower14 Note:- Not to continue, if the PVID are differ.
Now we have to change some attrubute of the new disk Chage the reserve lock to "No"
chdev -l <disk name> -a reserve_lock=no chdev -l hdiskpower14 -a reserve_lock=no Change the max_coalesce to 0x40000
Note:- Run this command form the padmin restricted shell The above commend list all the vhost and the devices Check for the your LPAR server name. For example the output like this
--------------- -------------------------------------------- -----------------vhost1 VTD Status LUN Backing device Physloc VTD Status U9133.55A.066DBAH-V21-C11 v1-dpr201-9b4 Available 0x8100000000000000 hdiskpower0 U787B.001.DNWG93R-P1-C2-T1-L1 v1-dpr201-9ba Available 0x00000001
LUN Backing device Physloc VTD Status LUN Backing device Physloc
Here the dpr201is the partical LPAR name and the 8c3 is the lun number. In the top we find the vhost number.
Note:- Run the following form the restricted shell To assign the disk from VIO to LPAR Here I am assigning disk from vioax109 /vioax110 to LPAR (dpravax201c) mkvdev -vdev hdiskpower14 -vadapter vhost1 -dev v1-dpr201-8c3
Check the current available disk (root@dpravax201c)/> lspv hdisk0 hdisk1 0006002dd75aa646 0006002dd75b8b46 rootvg appsvg active active
(root@dpravax201c)/> lspv hdisk0 hdisk1 hdisk2 hdisk3 hdisk4 hdisk5 0006002dd75aa646 0006002dd75b8b46 0006002dd753c8d5 0006002dd7593694 0006002dd7566e61 0006002d0a278162 rootvg appsvg web_vg i2_vg i2_vg None active active active active active
Note:-The new disk PVID should matches with the PVID in the VIO servers lspv | grep hdisk5 hdisk5 0006002d0a278162 None
Set the path priority chpath -l hdisk5 -p vscsi0 -a priority=2 Add the disk to VG
extendvg <vgname> <pvname> extendvg i2_vg hdisk5 Extend the file system chfs -a size=+<size> <mount point name>
chfs -a size=+50G /apps/i2 NOTE:Some time you may got the error while try to increase the Filesystem
(root@dpravax201c)/> chfs -a size=+50G /apps/i2 0516-787 extendlv: Maximum allocation for logical volume i2_lv is 512. The error stating that the Max Logical volume allocation is 512. So we need to increase the max LV allocation to 1024 with the following command. Then try increasing the Filesystem. It will work. chlv -x 1024 <lv name>