Author Topic: Changing the DataStore Location on a Physical Device  (Read 7555 times)

mcooper06

  • Member
  • ***
  • Posts: 10
    • View Profile
Changing the DataStore Location on a Physical Device
« on: March 27, 2014, 02:30:17 PM »
This post demonstrates my lack of Linux skill more than anything -

I wrote the base image to a 120GB SATA disk and it works fine, but I would like to use the remaining capacity for caching as well.  So my disk had a single partition of 4~GB labeled /dev/sda1.  I created a second primary partition, /dev/sda2 using the remaining space.

I used this command to create a path: "sudo mkdir /mnt/sda2"
I then mounted the partition using: mount "sudo /dev/sda2 /mnt/sda2/"
I then created a subdirectory on this newly mounted drive using this command: "sudo mkdir -p /mnt/sda2/wanos/ds0"
I then edited the bootlocal.sh script using the command: "sudo vi /opt/bootlocal.sh"
  I have added the line: "mount /dev/sda2 /mnt/sda2"
  I have added the line: "ln -s /mnt/sda2/wanos /wanos"
  I have commented out the line: "ln -s /mnt/sda1/wanos /wanos"

I thought this would do the trick, and the system boots fine, but when I go into the interface, I am shown that the Datastore Disk is still /dev/sda1 and I was thinking it should be /dev/sda2.

Michael



Wanos

  • Team Wanos
  • Administrator
  • Full Member
  • *****
  • Posts: 56
    • View Profile
Re: Changing the DataStore Location on a Physical Device
« Reply #1 on: March 27, 2014, 02:37:58 PM »
Hi Michael,

Looks like you are doing everything 100% right. That sda1 in the GUI could be a cosmetic bug. You can verify where the datastore is actually at by running 'ls -la /wanos'
Note: Forum posts may be outdated. Please see the latest documentation at wanos.co/docs

mcooper06

  • Member
  • ***
  • Posts: 10
    • View Profile
Re: Changing the DataStore Location on a Physical Device
« Reply #2 on: March 27, 2014, 02:52:02 PM »

/wanos -> /mnt/sda2/wanos/

OK - So it seems like it's good then!  Thank you so much.

Michael

Wanos

  • Team Wanos
  • Administrator
  • Full Member
  • *****
  • Posts: 56
    • View Profile
Re: Changing the DataStore Location on a Physical Device
« Reply #3 on: March 27, 2014, 03:03:10 PM »
Ok, thanks for the feedback, fixed in 0.1.8
« Last Edit: June 05, 2014, 01:06:53 PM by ahenning »
Note: Forum posts may be outdated. Please see the latest documentation at wanos.co/docs

ahenning

  • Team Wanos
  • Administrator
  • Full Member
  • *****
  • Posts: 629
    • View Profile
Re: Changing the DataStore Location on a Physical Device
« Reply #4 on: March 10, 2015, 12:32:17 AM »
Since v2.0.2

steps:

Quote
sudo su
/tce/etc/wanos/wanos-fdisk sda
reboot
mkfs.ext3 /dev/sda2
reboot
set the datastore to sda2 in the UI


This is based on the assumption that the only drive installed is sda and that is where the un-partitioned free space is located.
« Last Edit: June 11, 2015, 03:09:13 PM by ahenning »
CCIE RS, CCIE SP, Mnet&sys

Note: Forum posts may be outdated. Please see the latest documentation at wanos.co/docs