Join us at the Everyday AI Conference in London, New York & Bengaluru! REGISTER NOW

DSS VM disk size issue

Solved!
TNB
Level 2
DSS VM disk size issue

Hi,

I'm currently working with DSS 10 on Windows thanks to VirtualBox and DSS VM.

My issue is that i'm currently working with a lot of csv files ( approx 150 GB).

As the default size of my VM is 24GB i'm currently having out of memory error.

How can i incread the allocated memory of my VM knowing that my local computer have a 2TB sata drive?

I've tried to increase the storage size on VirtualBox but this doesn't change the allocate memory of the DSS VM (i've verrified that with the df -h command on the VM).

Thanks


Operating system used: windows

0 Kudos
1 Solution
sergeyd
Dataiker
Dataiker

Hi @TNB 

First of all, I am recommending cloning the VM before doing anything to the VM so you have a backup. 

Next, here are the steps I used to extend the FS size: 

# Add new VM hard disk whatever size you need. Check the VirtualBox manual on how to do this.  

# Check the new drive existence (in my case, it was sdb)
lsblk

# Create a Physical Volume
pvcreate /dev/sdb

# Identify the Volume Group
vgs

# Extend the Volume Group
vgextend centos /dev/sdb

# Verify: 
vgdisplay

# Check logical volumes
lvs

# Extend the Logical Volume
lvextend -l +100%FREE /dev/centos/root

# Verify: 
lvdisplay

# Extend the filesystem
resize2fs /dev/centos/root

 

Hope this helps. 

View solution in original post

0 Kudos
7 Replies
sergeyd
Dataiker
Dataiker

Hi @TNB 

In case you are using the default VM we provide, you will need to add extra space to the volume group and extend it. There are articles online on how you can do that: 

https://www.tecmint.com/extend-and-reduce-lvms-in-linux/

https://www.redhat.com/sysadmin/resize-lvm-simple

 

0 Kudos
TNB
Level 2
Author

In addition, to follow the explanation provied i need to be logged on the root admin of the VM.

How can i do that?

@sergeyd 

0 Kudos
sergeyd
Dataiker
Dataiker

just type "sudo su" and provide the same pass: "dataiku"

0 Kudos
TNB
Level 2
Author

hi sergeyd,

 

thanks for your reply, sorry again but i dont realy how to easily extend the size of the VM. and yes i'm using the default VM provided on the website.

 

Thomas

0 Kudos
sergeyd
Dataiker
Dataiker

Hi @TNB 

First of all, I am recommending cloning the VM before doing anything to the VM so you have a backup. 

Next, here are the steps I used to extend the FS size: 

# Add new VM hard disk whatever size you need. Check the VirtualBox manual on how to do this.  

# Check the new drive existence (in my case, it was sdb)
lsblk

# Create a Physical Volume
pvcreate /dev/sdb

# Identify the Volume Group
vgs

# Extend the Volume Group
vgextend centos /dev/sdb

# Verify: 
vgdisplay

# Check logical volumes
lvs

# Extend the Logical Volume
lvextend -l +100%FREE /dev/centos/root

# Verify: 
lvdisplay

# Extend the filesystem
resize2fs /dev/centos/root

 

Hope this helps. 

0 Kudos
TNB
Level 2
Author

@sergeyd 

 

thanks a lot that was a wonderful explantation and i fixed my issue this morning.

0 Kudos
sergeyd
Dataiker
Dataiker

Hi @TNB 

Glad to hear this. Please mark this as an accepted solution then. 

0 Kudos