Ask Your Question
0

Help With Local Storage

asked 2018-11-06 10:55:37 -0600

schap gravatar image

updated 2018-11-07 08:26:29 -0600

Hey Everyone so when I go to Compute>Hypervisors I only see 49GB of local storage. But on each node I have

Filesystem                         Size  Used Avail Use% Mounted on
/dev/mapper/centos_openstack-root   50G  3.3G   47G   7% /
devtmpfs                            16G     0   16G   0% /dev
tmpfs                               16G  4.0K   16G   1% /dev/shm
tmpfs                               16G   17M   16G   1% /run
tmpfs                               16G     0   16G   0% /sys/fs/cgroup
/dev/loop0                         1.9G  6.1M  1.7G   1% /srv/node/swiftloopback
/dev/mapper/centos_openstack-home  2.9T   33M  2.9T   1% /home
/dev/sda2                         1014M  180M  835M  18% /boot
/dev/sda1                          200M   12M  189M   6% /boot/efi
tmpfs                              3.2G     0  3.2G   0% /run/user/0

How do I use the total 2.9T?

What did I miss?

Thank yoU!

edit retag flag offensive close merge delete

Comments

Can you format command output as code? Highlight the text and click the button that looks like 101010.

The way your question is formatted right now, it's unreadable.

Bernd Bausch gravatar imageBernd Bausch ( 2018-11-06 16:29:27 -0600 )edit

3 answers

Sort by ยป oldest newest most voted
0

answered 2018-11-09 12:13:12 -0600

brainbarker gravatar image

Glad you found a solution. In case you're interested, I solved that same issue by collecting the unused drives on my server into a new LVM volume, and mounting that volume over /var/lib/nova/instances.

https://ask.openstack.org/en/question/116822/help-nova-cant-write-to-varlibnovainstances-if-its-on-a-separate-lvm-mount-point/

edit flag offensive delete link more
0

answered 2018-11-07 17:39:08 -0600

You seem to have found a solution, but let me add a comment. The problem is that space for instances is, by default, under /var/lib/nova/instances. Your home directory doesn't count.

Either you allocate some or all of the home directory space to /var (which is what you did), or you move the instance directory to /home. The configuration variable in /etc/nova/nova.conf is instances_path.

edit flag offensive delete link more
0

answered 2018-11-07 08:26:56 -0600

schap gravatar image

I figured it out, had to run this to move it all.

yum -y install xfsdump

xfsdump -f /home.image /dev/mapper/centos_osnode11-home

umount /dev/mapper/centos_osnode11-home

lvremove /dev/centos_osnode11/home

lvcreate -L 70G -n home centos_osnode11

mkfs.xfs /dev/centos_osnode11/home

mount /dev/centos_osnode11/home /home

xfsrestore -f /home.image /home

Reboot

lvresize -L +2500G /dev/centos_osnode11/root

xfs_growfs /dev/centos_osnode11/root

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2018-11-06 10:55:37 -0600

Seen: 17 times

Last updated: Nov 09