How to extend storage in Swift(OpenStack) service? - amazon-s3

I installed a SAIO(swift all in one) in my server, it's a ubuntu 14.04 system.
I create a loopback device for storage by following commands:
sudo mkdir /srv
sudo truncate -s 20GB /srv/swift-disk
sudo mkfs.xfs /srv/swift-disk
(http://docs.openstack.org/developer/swift/development_saio.html)
Now, I don't have enough disk to storage, I want to extand swift storage, what can I do for it?

Do you have disk space to create another virtual disk?
If so you can create another virtual disk (follow the steps in the link you provided. It's the same steps you took to create the first virtual disk) and add the new virtual disk to the ring, using the "swift-ring-build" command.

Related

Share a folder between my EC2 windows instance to my local PC

I have a process that creates an EXCEL file on a local folder on my local PC.
I want to share this folder \ file with my EC2 instance on AWS.
FXs it's not an option because the costs are very high, file size is smaller than a 100MB.
any idea?
The answer is secure copy AKA: SCP.
SCP uses SSH (hence the name secure copy bit) because you are using a windows machine you'll need to make some changes to your machine first.
You should either look into WSL(windows subsystem for linux) or use native PowerShell, specifically this pkg

How to mount windows volume without letter in "Linux for Windows"

I have the following task:
I installed Linux for Windows in Windows 10 Pro computer;
I installed Ubuntu 18.04 LTS;
I have a separate volume in Windows computer, which doesn't have a drive letter assigned to it;
I need to find a way to mount this Windows volume without letter in WSL Ubuntu.
I know the volume id in case it is required.
Any ideas how to achieve this?
Thx, Vlad.
First of all, my question wasn't completely right, I wrote Linux for Windows but in fact I was talking about "Windows Subsystem for Linux".
The idea is to have 1 disk drive as hardware configured RAID 0 storage which is built with 2x Samsung SSD 1Tb. But for protection of data on RAID 0, I want to use HDD which will sync data with rsync or any cloud service. I selected ownCloud.
Finally, I want to hide the HDD from the system and configure WSL to use it.
Hereby how it works for me:
1) I created a folder here: c:\Users\Public\wsl
2) I mounted the HDD in the folder created above.
3) After the HDD is mounted, I created a subfolder for my favorite Linux distribution: c:\Users\Public\wsl\ubuntu
4) I installed Ubuntu 18.04 in this folder as it described here: Installing WSL on Windows 10 without MS Store
5) The point above allows to install ownCloud server on hidden HDD. Now, in order to get it running at system boot, one can create scripts as described here: how to autoload apache2 and mysql in WSL at Windows boot
6) And finally, to get ownCloud Server running at system boot, even before any user login, one needs to do as follows:
*) Open Windows task scheduler;
*) add a task which runs autostart.sh (see how to make this script on a link above) on system boot;
*) use wscript.exe (from windows system32) as the command to run and the vbs script as parameter. Check this link if you need more details;
7) Finally, we need to setup ownCloud client on the computer and connect it with the server by using http://localhost as the server url.
So, as result of this setup, one gets faster disk system based on 2x SSH configured in RAID 0 and to protect data, one uses a local cloud server in virtual machine to get personal content synchronized with standard HDD.
If the system uses actively SSD, the cloud won't get time for syncing data. But as soon as resources are available, system will sync data in background mode into the HDD, which requires more time to write the same data.
This setup allows to use SSD system at full speed as it is required by applications and it does not limit dramatically the performance of SSD subsystem while keep syncing data in slow HDD as computer resources are available and SSD resources are available.

Why can't I use the persistent disk's storage I just bought on Google Cloud Compute Engine?

I have just set up my first Google Cloud Compute Engine instance so I can run some Python scripts on large files. As part of the setup I added a 1TB persistent disk:
When I SSH into the the virtual machine I don't see the storage added. This means I can't download my dataset.
How do I access the persistent disk?
Thanks.
When you add an additional persistent disk that makes the disk available to your compute engine but you must then format it and mount it before use. This is similar to the notion of adding an additional physical disk to your desktop. Just adding a disk means it is there from a hardware perspective but it must still be defined to the operating system.
There is documentation on the recipe here (Adding or resizing zonal persistent disks)
In summary:
Use sudo lslbk to find the device id.
Format the disk using sudo mkfs.ext4.
Use sudo mkdir to create a mount point.
Use sudo mount to mount the file system.
You can also edit /etc/fstab to mount the file system at boot time.

How to load package to openwrt in virtualbox

I have created an image of OpenWRT(x86-64) which I am running on Virtualbox. I have created a custom package and build it for my Virtual Machine. The thing is that I can not figure out how to copy the package file to the virtual machine's disk space.
I tried using using Guest Additions for Virtualbox but I think OpenWRT does not support it because I can not mount the file to install Guest Additions.
Is there any other way or am I doing something wrong?
To answer my own question, you can use Secure Copy (scp) to transfer your files.
Here is the link. SCP Example
SCP uses ssh to transfer files. Make sure that you have root password enabled in your remote host as this is needed to make a connection.
I hope that this may help someone in the future.

Length of time to install setup.exe on a virtual machine

I create my setup.exe's using Burn, and my whatever.msi's using Candle (WiX). I test them on clean virtual machines (Hyper-V, Server 2012, regular 7200 RPM physical disk, differencing "auto-expanding" virtual disk). What I've noticed is that each install takes about an hour on the virtual machine.
But then, I installed it on a real physical machine/real physical hard drive, and it only took a few minutes.
Why is it 10 times slower to install on the virtual machine? Could I be doing something wrong with my VM setup?
It is all related to I/O performance on your disks.
When you are installing something, there will be system restore-points created,
lots temporary files written, backup files for rollbacks and log files.
to speedup, you could try
- to disable the system-restore.
- to maximize the cache e.g. add more ram to host.
- to get 10k rpm drives/sdd's and/or use (hardware-)raid
never forget, when you are using a single disk, the i/o is shared between host and vm's.