Kir Posted November 27, 2018 Share Posted November 27, 2018 Since the in-place encryption is not currently supported, I added a new drive to the array, formatted it to xfs/enc, and in the process of moving data as such: mv /mnt/disk1 /mnt/disk4 My plan is to format disk1 to xfs/enc after the data transfer is completed. What would be the proper procedure of doing it, considering that I have 2 parity drives in the array? My thoughts would be: 1. Stop the array 2. Select disk1 and change the format to xfs/enc 3. Start the array and format the drive ... but how would the array react to it, would it try to reconstruct it with empty data after it's back online? Quote Link to comment
John_M Posted November 27, 2018 Share Posted November 27, 2018 31 minutes ago, Kir said: ... but how would the array react to it, would it try to reconstruct it with empty data after it's back online? No. You can stop the array, change the format of a disk and start the array without any problems. It wouldn't rebuild the disk unless you deliberately unassigned it, started the array with it unassigned, stopped the array and reassigned it. 1 Quote Link to comment
Kir Posted November 27, 2018 Author Share Posted November 27, 2018 PS: Just found something weird.... I just found a new user share - disk1 (shows up encrypted). It's not empty, and I definitely did not create it myself. What can I do with it? Quote Link to comment
JonathanM Posted November 27, 2018 Share Posted November 27, 2018 1 minute ago, Kir said: PS: Just found something weird.... I just found a new user share - disk1 (shows up encrypted). It's not empty, and I definitely did not create it myself. What can I do with it? Pretty sure you did create it. I'll bet you copied the disk1 folder instead of the contents of disk1 to disk4 at some point, and any folder in the root of an array drive is a user share. What is inside it? Quote Link to comment
Kir Posted November 27, 2018 Author Share Posted November 27, 2018 That's all I did. Still in progress, actually: mv /mnt/disk1 /mnt/disk4 Ahh... damn... well, looks like I forgot the trailing "/", so now it's /mnt/disk4/disk1 😳 Quote Link to comment
John_M Posted November 27, 2018 Share Posted November 27, 2018 Let it finish. You can fix it quickly later. Quote Link to comment
JonathanM Posted November 27, 2018 Share Posted November 27, 2018 No biggie. After the move is complete, just move all the content of the new disk1 into the root of disk4. Since the source and destination are on the same disk, it's really a rename, and will happen pretty much instantaneous. Be sure you are working on the disk, not the user share. Quote Link to comment
Kir Posted November 29, 2018 Author Share Posted November 29, 2018 Well, the data transfer finished, so I issued this command: "mv /mnt/disk4/disk1/ .." and got lots of messages "mv: error writing No space left on device" (I thought it would work as rename, so no additional space needed?) Interrupted the command, and now array is gone. Main page shows "Array undefined" Syslog: lots of messages "Nov 29 12:21:02 Storage root: error: /webGui/include/DeviceList.php: uninitialized csrf_token" followed by: Nov 29 12:21:07 Storage rc.diskinfo[5243]: PHP Warning: file_put_contents(): Only 0 of 3049 bytes written, possibly out of free disk space in /etc/rc.d/rc.diskinfo on line 499 Help? Quote Link to comment
itimpi Posted November 29, 2018 Share Posted November 29, 2018 6 minutes ago, Kir said: Well, the data transfer finished, so I issued this command: "mv /mnt/disk4/disk1/ .." and got lots of messages "mv: error writing No space left on device" (I thought it would work as rename, so no additional space needed?) Interrupted the command, and now array is gone. Main page shows "Array undefined" Syslog: lots of messages "Nov 29 12:21:02 Storage root: error: /webGui/include/DeviceList.php: uninitialized csrf_token" followed by: Nov 29 12:21:07 Storage rc.diskinfo[5243]: PHP Warning: file_put_contents(): Only 0 of 3049 bytes written, possibly out of free disk space in /etc/rc.d/rc.diskinfo on line 499 Help? I think the command should be "mv /mnt/disk4/disk1/* ..". (note the extra asterisk)! Quote Link to comment
trurl Posted November 29, 2018 Share Posted November 29, 2018 20 minutes ago, Kir said: mv /mnt/disk4/disk1/ .. or 11 minutes ago, itimpi said: mv /mnt/disk4/disk1/* .. both have .. as the destination. But .. is relative to the directory you are typing the command in, not relative to the source directory. No way for us to know where you put that stuff. Might even be in RAM so you better find it before rebooting. Do you know what directory you were in when you did the mv? 1 minute ago, Kir said: So what should I do now... with the "Array undefined" Where are you seeing that? Possibly you overwrote the OS which can be solved with a reboot probably but where did those files go? Quote Link to comment
Kir Posted November 29, 2018 Author Share Posted November 29, 2018 (edited) "Array undefined" shows up at the bottom Can't even download the diagnostics, nothing happens. Should I do something before risking the reboot? Edited November 29, 2018 by Kir Quote Link to comment
trurl Posted November 29, 2018 Share Posted November 29, 2018 7 minutes ago, Kir said: "Array undefined" shows up at the bottom Bottom of what? The webUI? The terminal window? The console screen? Do you have a backup of those files you were trying to move? Quote Link to comment
trurl Posted November 29, 2018 Share Posted November 29, 2018 Do you still have the terminal (in whatever form) open so you can see where you typed that command? Quote Link to comment
Kir Posted November 29, 2018 Author Share Posted November 29, 2018 (edited) 2 minutes ago, trurl said: Bottom of what? The webUI? Yes, bottom of the webUI. The files appear to still be in the original place. The original command was executed in /mnt Edited November 29, 2018 by Kir Quote Link to comment
trurl Posted November 29, 2018 Share Posted November 29, 2018 Just now, Kir said: Yes, bottom of the webUI. The files appear to still be in the original place. Probably most would be since it ran out of space. But are you sure all are? Quote Link to comment
Kir Posted November 29, 2018 Author Share Posted November 29, 2018 Just now, trurl said: But are you sure all are? I can't really be sure since there were almost 8Tb of them. However, I don't see them anywhere in /mnt Quote Link to comment
trurl Posted November 29, 2018 Share Posted November 29, 2018 Just now, Kir said: I can't really be sure since there were almost 8Tb of them. However, I don't see them anywhere in /mnt I wouldn't expect them to be in /mnt unless your current working directory were in /mnt. But there are a lot of other places you could have been when you typed that command. If you were in /boot/config for example, then .. would have referred to /boot, which would be the top folder of your flash drive. If you were in /mnt, then .. would be in the root of the OS filesystem, where lots of folders exist that are actually in RAM and have nothing do with your storage. The error you got Quote possibly out of free disk space in /etc/rc.d/rc.diskinfo I don't know if that meant it was trying to write into that folder in /etc (which is one of those OS folders in RAM) or if that just means it was out of space somewhere. You mentioned a syslog. Do you have any more of it you could share? Maybe just reboot and hope for the best. Quote Link to comment
trurl Posted November 29, 2018 Share Posted November 29, 2018 Probably you wouldn't have actually overwritten anything in the OS since a file path collision would be very unlikely. But I don't know why it would think the array was undefined in that case. And there is still the possibility that some of your files were moved to RAM even if they didn't overwrite anything. Quote Link to comment
trurl Posted November 29, 2018 Share Posted November 29, 2018 And if you were actually in /mnt/disk1 for example, then .. would be /mnt. But /mnt itself is actually just a folder where the disks and user shares are mounted. The folder /mnt itself is another of the OS-in-RAM folders Quote Link to comment
trurl Posted November 29, 2018 Share Posted November 29, 2018 So, is the terminal window still open? Can you get us any more of the Quote Syslog: lots of messages Quote Link to comment
Kir Posted November 29, 2018 Author Share Posted November 29, 2018 Sure... Plus it didn't take the reboot command from webUI... Nov 29 13:27:15 Storage root: error: /webGui/include/DeviceList.php: uninitialized csrf_token Nov 29 13:27:15 Storage root: error: /webGui/include/DeviceList.php: uninitialized csrf_token Nov 29 13:27:15 Storage root: error: /plugins/dynamix.system.temp/include/SystemTemp.php: uninitialized csrf_token Nov 29 13:27:15 Storage root: error: /webGui/include/DeviceList.php: uninitialized csrf_token Nov 29 13:27:15 Storage root: error: /plugins/preclear.disk/Preclear.php: uninitialized csrf_token Nov 29 13:27:15 Storage root: error: /plugins/preclear.disk/Preclear.php: uninitialized csrf_token Nov 29 13:27:15 Storage root: error: /plugins/preclear.disk/Preclear.php: uninitialized csrf_token Nov 29 13:27:15 Storage root: error: /plugins/unassigned.devices/UnassignedDevices.php: uninitialized csrf_token Nov 29 13:27:15 Storage root: error: /plugins/unassigned.devices/UnassignedDevices.php: uninitialized csrf_token Nov 29 13:27:15 Storage root: error: /plugins/unassigned.devices/UnassignedDevices.php: uninitialized csrf_token Nov 29 13:27:15 Storage root: error: /webGui/include/Notify.php: uninitialized csrf_token Nov 29 13:27:16 Storage root: error: /plugins/preclear.disk/Preclear.php: uninitialized csrf_token Nov 29 13:27:16 Storage root: error: /webGui/include/Notify.php: uninitialized csrf_token Nov 29 13:27:17 Storage root: error: /plugins/unassigned.devices/UnassignedDevices.php: uninitialized csrf_token Nov 29 13:27:18 Storage root: error: /plugins/unassigned.devices/UnassignedDevices.php: uninitialized csrf_token Nov 29 13:27:19 Storage root: error: /webGui/include/DeviceList.php: uninitialized csrf_token Nov 29 13:27:19 Storage root: error: /plugins/unassigned.devices/UnassignedDevices.php: uninitialized csrf_token Nov 29 13:27:20 Storage root: error: /plugins/unassigned.devices/UnassignedDevices.php: uninitialized csrf_token Nov 29 13:27:21 Storage root: error: /plugins/preclear.disk/Preclear.php: uninitialized csrf_token Nov 29 13:27:21 Storage root: error: /plugins/unassigned.devices/UnassignedDevices.php: uninitialized csrf_token Nov 29 13:27:22 Storage root: error: /webGui/include/DeviceList.php: uninitialized csrf_token Nov 29 13:27:22 Storage root: error: /plugins/unassigned.devices/UnassignedDevices.php: uninitialized csrf_token Nov 29 13:27:23 Storage root: error: /plugins/unassigned.devices/UnassignedDevices.php: uninitialized csrf_token Nov 29 13:27:24 Storage root: error: /plugins/unassigned.devices/UnassignedDevices.php: uninitialized csrf_token Nov 29 13:27:25 Storage root: error: /webGui/include/DeviceList.php: uninitialized csrf_token Nov 29 13:27:25 Storage root: error: /plugins/dynamix.system.temp/include/SystemTemp.php: uninitialized csrf_token Nov 29 13:27:25 Storage root: error: /plugins/unassigned.devices/UnassignedDevices.php: uninitialized csrf_token Nov 29 13:27:26 Storage root: error: /plugins/preclear.disk/Preclear.php: uninitialized csrf_token Nov 29 13:27:26 Storage root: error: /plugins/preclear.disk/Preclear.php: uninitialized csrf_token Quote Link to comment
trurl Posted November 29, 2018 Share Posted November 29, 2018 Well those aren't really helpful, they really sort of add to the mystery of what got broken. 28 minutes ago, trurl said: Do you still have the terminal (in whatever form) open so you can see where you typed that command? Quote Link to comment
Kir Posted November 29, 2018 Author Share Posted November 29, 2018 4 minutes ago, trurl said: Do you still have the terminal (in whatever form) open so you can see where you typed that command? Yes, I think I answered it already - in /mnt Quote Link to comment
trurl Posted November 29, 2018 Share Posted November 29, 2018 So if you were actually in /mnt, which is one of the top level OS folder in RAM, the .. would be at the root of the OS RAMfs. Do you still have the terminal open? If so, then what do you get when you type this? ls / Quote Link to comment
Kir Posted November 29, 2018 Author Share Posted November 29, 2018 root@Storage:/mnt# ls / bin/ dev/ etc/ init@ lib64/ proc/ run/ sys/ usr/ boot/ disk1/ home/ lib/ mnt/ root/ sbin/ tmp/ var/ Aha... so there is disk1 there. Now to find what actually got moved... Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.