| | 1 | == Setting the state for a volume == |
| | 2 | |
| | 3 | Volumes that are up are both accessible and files will be allocated to them, volumes that are down are neither accessible nor will files be allocated to them, and volumes that are in a state of repair are accessible, but no new files will be allocated to them. |
| | 4 | |
| | 5 | {{{ |
| | 6 | neb-host ippXXX up |
| | 7 | neb-host ippXXX down |
| | 8 | neb-host ippXXX repair |
| | 9 | }}} |
| | 10 | |
| | 11 | |
| | 12 | == Adding a new volume to the cluster == |
| | 13 | {{{ |
| | 14 | neb-voladd --vname ippXXX.0 --vhost ippXXX --uri file:///data/ippXXX.0/nebulous --mountpoint /data/ippXXX.0 --db nebulous --user nebulous --pass XXX |
| | 15 | neb-voladm --vname ippXXX.0 --cab_id X --db nebulous --user nebulous --pass XXX |
| | 16 | }}} |
| | 17 | == Readding a volume that has lost all disks == |
| | 18 | In SQL: |
| | 19 | {{{ |
| | 20 | DELETE FROM mountedvol WHERE vol_id = XX; |
| | 21 | UPDATE volume SET name = 'oldnameX', path = 'oldpathX/nebulous', mountpoint = 'oldmountX' WHERE vol_id = XX; |
| | 22 | }}} |
| | 23 | |
| | 24 | Then add the remade volume as above. |