| | 19 | === Removing a host from nebulous permanently === |
| | 20 | |
| | 21 | If the RAID fails on the data partition and we lose the data from that partition, we need to do the following in the nebulous database: |
| | 22 | |
| | 23 | 1. Remove the entry in the {{{mountedvol}}} table (should be auto-removed by {{{nebdiskd}}}): |
| | 24 | * {{{DELETE FROM mountedvol WHERE vol_id = XX;}}} |
| | 25 | 1. Convert the entry in the {{{volume}}} table to point to a dummy location: |
| | 26 | * {{{UPDATE volume SET name = 'ippNNN.0X', path = '/data/ippNNN.0X/nebulous', mountpoint = '/data/ippNNN.0X' WHERE vol_id = XX;}} |
| | 27 | 1. Add the new volume: |
| | 28 | * {{{neb-voladd --vname ippXXX.0 --vhost ippXXX --uri file:///data/ippXXX.0/nebulous --mountpoint /data/ippXXX.0 --db nebulous --user nebulous --pass XXX}}} |
| | 29 | * {{{neb-voladm --vname ippXXX.0 --cab_id X --db nebulous --user nebulous --pass XXX}}} |