I – In Which Case Should We Use This Process?
II – How To Fix Lost iSCSI Configration File By Recovering Old Configration (Winscp)
III - How To Fix Lost iSCSI Configration File By Recovering Old Configration (Putty)
IV – How To Fix Unstable RAID 6 Build By Recovering Old Configration (Putty)
.
I – In Which Case Should We Use This Process?
With Qnap 4.1 Firmware, I realize that Qnap backup configration files (not data) once in every week, and good part is you can restore any configration, or complete configration easly with a few steps!
.
When should we use this?
We easly fix 2 cases by this way;
Case 1: We have iscsi image files, but iscsi_trgt.conf was currupted -> We restore with only copying iscsi_trgt.conf
Case 2: RAID 6 & users rights on Qnap was corrupted -> We restore with complete configration restoring
Must warn that this process will not recover accidently deleted files, but can fix RAID problems or accidently lost folder permissions configration easly.
MY ADVİCE İS DONT DO THİS ALONE IF YOUR NOT SURE WHAT YOUR DOİNG. THİS MAY CAUSE QNAP UNEXPECTED CORRUPTİON, AND PLEASE CONTACT WİTH OFFİCAL QNAP SUPPORT TEAM IF YOU GET THİS KİND OF PROBLEMS!
.
II – How To Fix Lost iSCSI Configration File By Recovering Old Configration (Winscp)
1 – Download Winscp & connect with admin;
http://winscp.net/eng/download.php
.
2 – Go to share -> “MD0_DATA” or “CACHEDEV1_DATA” and find .@backup_config folder.
.
3 – You’ll see that Qnap get backup configration once in a week. 0_20141203 means this is the last backedup config file which is created on 3 October 2014.
4 – Drag & Drop this file to your desktop & unzip config file data you want;
.
5 – Now go to original configration folder, which places under “etc/config/”. double click on this folder.
.
6 – Before replacing files, first, select whole file on right side, and drag & drop them to left side in a folder
.
7 – Now, go to old configration backup folder, select corrupted config file and drag& drop right side
8 – restart Qnap
.
III – How To Fix Lost iSCSI Configration File By Recovering Old Configration (Putty)
1 – Go to .@backup_cofig Folder;
[~] # cd /share/MD0_DATA/.@backup_config
.
2 – List your config files;
[/share/MD0_DATA/.@backup_config] # ll
drwxr-xr-x 2 admin administ 4.0k Dec 3 03:04 ./
drwxrwxrwx 28 admin administ 4.0k Dec 3 09:11 ../
-rw-r–r– 1 admin administ 33.3k Dec 3 03:04 0_20141203_0304.tar.gz
-rw-r–r– 1 admin administ 35.5k Nov 26 01:04 1_20141126_0304.tar.gz
-rw-r–r– 1 admin administ 35.5k Nov 19 01:04 2_20141119_0304.tar.gz
-rw-r–r– 1 admin administ 35.5k Nov 12 01:04 3_20141112_0304.tar.gz
-rw-r–r– 1 admin administ 35.5k Nov 5 01:04 4_20141105_0304.tar.gz
-rw-r–r– 1 admin administ 35.5k Oct 29 01:04 5_20141029_0304.tar.gz
-rw-r–r– 1 admin administ 35.5k Oct 22 01:04 6_20141022_0304.tar.gz
-rw-r–r– 1 admin administ 35.5k Oct 15 01:04 7_20141015_0304.tar.gz
-rw-r–r– 1 admin administ 35.5k Oct 8 01:04 8_20141008_0304.tar.gz
-rw-r–r– 1 admin administ 35.5k Oct 1 01:04 9_20141001_0304.tar.gz
and you’ll see your config backup files which automaticly backedup every week
.
3 – unzip backup files
This one is backed up at 3 December 2014 (20141203)
-rw-r–r– 1 admin administ 33.3k Dec 3 03:04 0_20141203_0304.tar.gz
so type this command;
[/share/MD0_DATA/.@backup_config] # tar zxvf 1_20141126_0304.tar.gz
.
4 – Copy & Paste Configration file
[/share/MD0_DATA/.@backup_config] # cp etc/config/iscsi_trgt.conf
.
Here is complete iscsi config recovery putty log;;
.
Result;
.
IV – How To Fix Unstable RAID 6 Build By Recovering Old Configration (Putty)
[/share/CACHEDEV4_DATA] # cd .@backup_config
[/share/CACHEDEV4_DATA/.@backup_config] # ll
drwxr-xr-x 2 admin administ 4.0k Nov 26 03:04 ./
drwxrwxrwx 20 admin administ 4.0k Nov 28 17:59 ../
-rw-r–r– 1 admin administ 235.3k Nov 26 03:04 0_20141126_0304.tar.gz
-rw-r–r– 1 admin administ 236.9k Nov 19 03:04 1_20141119_0304.tar.gz
-rw-r–r– 1 admin administ 236.6k Nov 12 03:04 2_20141112_0304.tar.gz
-rw-r–r– 1 admin administ 236.6k Nov 5 03:04 3_20141105_0304.tar.gz
-rw-r–r– 1 admin administ 236.6k Oct 29 03:04 4_20141029_0304.tar.gz
-rw-r–r– 1 admin administ 236.3k Oct 22 03:04 5_20141022_0304.tar.gz
-rw-r–r– 1 admin administ 236.4k Oct 15 03:04 6_20141015_0304.tar.gz
-rw-r–r– 1 admin administ 236.1k Oct 8 03:04 7_20141008_0304.tar.gz
-rw-r–r– 1 admin administ 235.2k Oct 1 03:04 8_20141001_0304.tar.gz
-rw-r–r– 1 admin administ 276.2k Sep 24 03:04 9_20140924_0304.tar.gz
[/share/CACHEDEV4_DATA/.@backup_config] # tar xvf 0_20141126_0304.tar.gz
[/tmp/config] # cp uLinux.conf /etc/config/
[/etc/config] # reboot
.
Here is complete putty log;
How To Recover Corrupted Configration / iSCSI Configration / RAID Configration On QTS 4.1 FirmwareBozulmuş Konfigrasyon / iSCSI Konfigrasyonu / RAID Konfigrasyonunu 4.1 Firmware'inde Nasıl Geri Getirebilirsiniz,