From Wanos Wiki
Jump to: navigation, search
(Created page with "==Change DataStore Location== Wanos offers the option to modify your DataStore location by switching partitions or by switching physical disks. ===How to change DataStore Lo...")
 
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
<font size=5> Document migrated. An updated [http://wanos.co/docs/docs/wanos-admin-guide/optional-configuration/change-datastore-drive/ Change Datastore Drive Guide] can be found in the [http://wanos.co/docs Wanos Documentation site] </font>
 +
<font color=#dddddd>
 +
 
==Change DataStore Location==
 
==Change DataStore Location==
  
Wanos offers the option to modify your DataStore location by switching partitions or by switching physical disks.
+
Wanos offers the option to modify your DataStore location by switching partitions, physical disks or USB drives/sticks.
  
 
===How to change DataStore Location===
 
===How to change DataStore Location===
<ul>Determine your new partition or drive by running:
+
1. Determine your new partition or drive by running:
 
<pre>
 
<pre>
 
fdisk -l
 
fdisk -l
 
</pre>
 
</pre>
In this example, a new disk called '''sdb''' has been added.
+
In this example, a new disk called '''sdb''' has been added. <br />
http://wanos.co/misc/wiki/assets/datastore/fdisk.png
+
http://wanos.co/misc/wiki/assets/datastore/fdisk.png <br />
<ul>Initilize the new
+
2. Run the following commands in the exact order:
 
+
<pre>
 
+
/tce/etc/wanos/wanos-fdisk sdX
/tce/etc/wanos/wanos-fdisk sda
+
</pre>
 +
Replace "X" in sdX with the correct value on the target drive. In this example, '''b''' was used = '''sdb'''.
 +
<pre>
 
reboot
 
reboot
mkfs.ext3 /dev/sda2
+
</pre>
 +
<pre>
 +
mkfs.ext3 /dev/sdXX
 +
</pre>
 +
Replace "XX" in sdXX with the correct value of the target drive and partition. In this example,  '''b''' and '''1''' was used = '''sdb1'''. if unsure, run the '''fdisk -l''' command.
 +
<pre>
 
reboot
 
reboot
set the datastore to sda2 in the UI
+
</pre>
 +
3. Set the DataStore in Wanos web UI. '''Configure > System Settings''' In this example,  '''sdb1''' was used.<br />
 +
http://wanos.co/misc/wiki/assets/datastore/datastore1.png <br />
 +
Scroll to the bottom part of the page, click the '''Submit''' button, click '''OK''' on the dialog box and Wanos will reboot. <br />
 +
http://wanos.co/misc/wiki/assets/datastore/datastore2.png <br />
 +
 
 +
'''Note:''' When clearing the DataStore, remember to do so manually on all the peers.
 +
 
 +
=== Example Commands ===
 +
<pre>
 +
sudo /tce/etc/wanos/wanos-fdisk sda
 +
sudo reboot
 +
sudo mkfs.ext3 /dev/sda2
 +
sudo reboot
 +
</pre>
 +
Set the datastore to sda2 in the gui
 +
 
 +
</font>

Latest revision as of 11:31, 9 February 2017

Document migrated. An updated Change Datastore Drive Guide can be found in the Wanos Documentation site

Change DataStore Location

Wanos offers the option to modify your DataStore location by switching partitions, physical disks or USB drives/sticks.

How to change DataStore Location

1. Determine your new partition or drive by running:

fdisk -l

In this example, a new disk called sdb has been added.
fdisk.png
2. Run the following commands in the exact order:

/tce/etc/wanos/wanos-fdisk sdX

Replace "X" in sdX with the correct value on the target drive. In this example, b was used = sdb.

reboot
mkfs.ext3 /dev/sdXX

Replace "XX" in sdXX with the correct value of the target drive and partition. In this example, b and 1 was used = sdb1. if unsure, run the fdisk -l command.

reboot

3. Set the DataStore in Wanos web UI. Configure > System Settings In this example, sdb1 was used.
datastore1.png
Scroll to the bottom part of the page, click the Submit button, click OK on the dialog box and Wanos will reboot.
datastore2.png

Note: When clearing the DataStore, remember to do so manually on all the peers.

Example Commands

sudo /tce/etc/wanos/wanos-fdisk sda
sudo reboot
sudo mkfs.ext3 /dev/sda2
sudo reboot

Set the datastore to sda2 in the gui