Today, I had a request from our client to extend a filesystem. The problem, as usual, is that there was no space available in the VG, and there weren't disks available in the system, so I had to add one new disk.
The interesting thing is the environment, this system doesn't receive disks from a storage cabin, the disks are asssigned from on VIO server.
In this case, it is one virtual SCSI disk that it is backed up by a logical volume.
I thought that I had to create a new virtual disk for the client machine but I found out that it can be done expanding the size of the existing disk.
So these were the steps that I took
- Extend the logical volume in the first VIOs (I have two VIOs serving the disk an there is a mirror between both disks at the client level)
0516-622 extendlv: Warning, cannot write lv control block data.
0516-622 extendlv: Warning, cannot write lv control block data.
I got this error but as you can see in the second link in the reference section, you don't have to worry about.
- Extend the logical volume in the second VIOs
0516-622 extendlv: Warning, cannot write lv control block data.
0516-622 extendlv: Warning, cannot write lv control block data.
- On the client, adjust disks to the new size
# bootinfo -s hdisk3
- You have to make the VG be aware of the growth of disks
Note: Maybe the size of the disks take a little bit showing the new size but if you run lsvg VGname, you will see the new free space in the Volume Group
References
http://www-01.ibm.com/support/docview.wss?uid=isg3T1011227
http://www-01.ibm.com/support/docview.wss?uid=isg1IV35658