HPE 3PAR StoreServ Storage

Vmware Virtual Machine Storage Volume

 
SOLVED
Go to solution
Techcreeb
Occasional Contributor

Vmware Virtual Machine Storage Volume

Hi , 

Please does anyone knows How  I can increase  a windows and Linux  server virtual machine 3par assigned Virtual volume that is running out space. We use  3Par 7200 Storage for all our Vmware Vsphere  windows and Linux Virtual Machine. Virtual Volumes or Vluns

I will appreciate a howto or Links of how I can increase the disk or virtual  volume capacity on a Linux and windows server. Your help, advice is highly appreciate....

6 REPLIES 6
sbhat09
HPE Pro

Re: Vmware Virtual Machine Storage Volume

Hello,

What I understand the issue from your explanation is - you have exported Virtual Volumes from your 3PAR to ESXi or Hyper-V base machines. On that you have created multiple VMs and exported multiple vluns. Now you are running out of space in the 3PAR Virtual Volumes.

If my understanding is correct, you need to increase the size of the virtual volumes which are the base volumes for your VMs. Login to SSMC, go to Virtual volumes, select the Virtual Volume, Actions >> Edit >> Increase the 'Size' to the desired value and save the changes.

If you still face any issues,

1. Check in which CPG the volume has been created (You can check that in SSMC)
2. Go to CLI and run the command 'showspace -cpg <CPG_name>'
3. Check the 'LDFree' in 3rd column.
4. Try to increase the VV size within the available limit of 'LDFree'

If you still face any issues, please let me know below details:
1. The exact error you are getting
2. Name of the VVs you want to increase the size
3. CLI command outputs for 'showvv', 'showcpg', 'showspace -cpg *'
(If you are not getting the right output for 'showspace -cpg *', please give me the outputs for showspace -cpg <CPG_name> individually for all the CPGs)

Regards,
Srinivas Bhat

If you feel this was helpful please click the KUDOS! thumb below!


I am an HPE Employee

Accept or Kudo

Josh94K
HPE Pro

Re: Vmware Virtual Machine Storage Volume

Hello @Techcreeb 

 

For CPG related issues following steps would work

 

  • Evaluate reclaiming space from CPGs.
  • Evaluate reclaiming space within TPVVs.
  • Check for LDs that are not mapped to a VV.
  • Identify volumes that are exported to a host that may no longer be necessary.
  • Evaluate snapshots as they can use more space over time.
  • Add more capacity

 

CLI command to expand VV

 

growvv ATLR1DS05 5t   /// < VV name> <Expanding Size>

ATLR1DS05  - VV Name

 

You'll need to increase the VV size on the 3par console first via SSMC

then on VMware, you'll see the datastore size should automatically increase

if not just re-scan

 

Click the following link for more info

https://support.hpe.com/hpesc/public/docDisplay?docId=a00059923en_us&docLocale=en_US

 

 

For VSP (Service related) space issues

Firstly you would need to know the available space in "df -h" output from SP root, and depending upon the status we may need to remove unwanted files from SP

 

root@XXX-YYYY-ZZZ:/sp/home/hpesupport# df -h

Filesystem Size Used Avail Use% Mounted on

udev 992M 0 992M 0% /dev

tmpfs 201M 12M 189M 6% /run

/dev/sda6 3.8G 3.6G 0 100% / <== root partition full

tmpfs 1003M 0 1003M 0% /dev/shm

tmpfs 5.0M 4.0K 5.0M 1% /run/lock

tmpfs 1003M 0 1003M 0% /sys/fs/cgroup

/dev/sda1 118M 60M 50M 55% /boot

/dev/sda5 2.9G 2.9G 0 100% /altroot 

/dev/sda7 497G 153G 319G 33% /sp

 

There is a list of commands we need to run to clear space from there

It would be best to engage the HPE support for this activity.

 

For more info check out the following conversion on HPE forum.

https://community.hpe.com/t5/HPE-3PAR-StoreServ-Storage/3par-increase-virtual-volume-size-without-downtime/td-p/7036522#.YJODHrUzaUk

 

https://community.hpe.com/t5/HPE-3PAR-StoreServ-Storage/3PAR-7200c-Can-a-Virtual-Volume-be-expanded-non-disruptively-to/td-p/6931120#.YJODJLUzaUk

 

hope this helps @Techcreeb 

 

If you feel this was helpful please click the KUDOS! thumb below!

 

 

Accept or Kudo

I work for HPE.
Techcreeb
Occasional Contributor

Re: Vmware Virtual Machine Storage Volume

Hi Srinivas, Thanks a lot for ur advice, I really appreciate it...I was actually refering to the VV assigned to a Vmware VM that is running out Vdisk space and I have to Increase or expand the VV...it is the first time I am faced with this issue, so I need a step by step on how I can increasse  the VV in SSMC and also on the VM in Vmware Vsphere Center. Once again thanks a lot

Techcreeb
Occasional Contributor

Re: Vmware Virtual Machine Storage Volume

Hi Josh94K,

Thanks a lot for your help, support, Links and advice. Thats about close to what I was asking for and you are appreciated for taking ur time to extend your Pro Support..I really Thank you for that... With Regards to the recaiming the space on the Linux Vm before expanding the VV.....Can you by any chance send me Please the commands to look for or use to clear some unwanted files on the Linux VM before I can expand the VV...

Also, Do you also have to first expand the VV in SSMC for the Linux server, and after rescan and then expand the VM VV in Vcenter ? Also is the VV has to be expanded in the Linux server, just like in Windows disk management console or how do I know that the vv in the Linux server has been Increased  ??

Thank you once again and your pro support is appreciated...

Josh94K
HPE Pro
Solution

Re: Vmware Virtual Machine Storage Volume

Hello @Techcreeb ! thank you for your kind words !

1. Do you have the commands to clear some unwanted files on the Linux VM before we can expand the VV...

1. Free space on the Linux VM by deleting any files that are not critical or not needed.
2. run this command to zero out the free space.
cat /dev/zero > zero.fill; sync; sleep 1; rm -f zero.fill
3. Shut down the VM.
4. Navigate to where the VMs are saved.
5. Right Click on the VM > Show Package Contents (Locate the actual vmdk file)
6. run this command on the host terminal.
/Applications/VMware\ Fusion.app/Contents/Library/vmware-vdiskmanager -d <path to your .VMDK file>

Please Note: The commands vary generally depend on the physical host OS version, it would be advised to take a second opinion from your in-house Linux team.


 

2. Do we have to first expand the VV in SSMC for the Linux server, and after rescan and then expand the VM VV in Vcenter 

Yes, we need to expand the VV in SSMC first then on vcenter just rescan the datastores and check if the size has increased.
refer SSMC user guide for additional information
https://support.hpe.com/hpesc/public/docDisplay?docLocale=en_US&docId=emr_na-a00085217en_us



3. can VV be expanded in the Linux server, just like in Windows disk management console or how do we know that the vv in the Linux server has been Increased ??

1. Identify the partition - "fdisk -l"
2. run "df -h" to identify the "/dev/mapper/" partition and get its size.
3. Add a new virtual hard-disk as follows.
                a. Right click the VM in vSphere.
                b. Select Edit settings and then click the “Add…” option to add the hardware to the VM.
                c. Select the hard disk and click next.
                d. Select create a new virtual disk and click next.
                e. Select an appropriate disk size and click next when this step completes.
                f. Click on Advanced Option and Next.
               g. Review the created disk and click Finish to see the newly created disk in the "hardware devices" tab.

4. Detect this new disk space "fdisk -l".
5. If a reboot and rescan is to be avoided, run 
echo "- - -" > /sys/class/scsi_host/host0/scan
6. Partition the new disk (check out Linux admin guide for more help)
fdisk /dev/sdb
7. Increase the logical volume.
pvcreate /dev/sdb1
8. Extend the volume group
vgextend <volume group> /dev/sdb1
9. Scan all the disks for the physical volume.
pvscan
10. Confirm the name of the logical volume
lvdisplay
11. Extend the logical volume.
lvextend /dev/<volume group>/root /dev/sdb1
12. Re-size the file system.
resize2fs /dev/<volume group>/root

check the following link for additional inofrmation
https://support.hpe.com/hpesc/public/docDisplay?docLocale=en_US&docId=emr_na-c03290624

 

Hope this helps @Techcreeb 

If you feel this was helpful please click the KUDO! thumb below!

Accept or Kudo

I work for HPE.
Techcreeb
Occasional Contributor

Re: Vmware Virtual Machine Storage Volume

Hi Josh, 

You are more than appreciated and Thanks Lot for your Proffesionalism and Your Sincere and Kind Support

Krgds/ #plsStaysafe