TS-412 RAID10 power outage SSH OK - NO WEB

Post your questions about Web Server usage and Apache + PHP + MySQL/SQLite web applications.
FSC830
Experience counts
Posts: 2043
Joined: Thu Mar 03, 2016 1:11 am

Re: TS-412 RAID10 power outage SSH OK - NO WEB

Post by FSC830 »

Ok, so you need to run the

Code: Select all

mdadm --assemble --scan
again.

Strange. Best is may be to open a QNAP ticket, may the utage has caused some corruption.

Regards
User avatar
dolbyman
Guru
Posts: 35269
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: TS-412 RAID10 power outage SSH OK - NO WEB

Post by dolbyman »

mount it again and try if you can backup your files bia winscp directly from the mount

then rebuild the nas and directly create a backup strategy
code141
Starting out
Posts: 15
Joined: Thu Jun 02, 2022 8:04 pm

Re: TS-412 RAID10 power outage SSH OK - NO WEB

Post by code141 »

Don't know how mount md0
can't see partitions Multimedia,Web,Usb,Public,etc....

Code: Select all

[~] # fdisk -l
Disk /dev/sda: 2000.3 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1          66      530125   83  Linux
/dev/sda2              67         132      530142   83  Linux
/dev/sda3             133      243138  1951945693   83  Linux
/dev/sda4          243139      243200      498012   83  Linux

Disk /dev/sda4: 469 MB, 469893120 bytes
2 heads, 4 sectors/track, 114720 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/sda4 doesn't contain a valid partition table

Disk /dev/sdb: 2000.3 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1          66      530125   83  Linux
/dev/sdb2              67         132      530142   83  Linux
/dev/sdb3             133      243138  1951945693   83  Linux
/dev/sdb4          243139      243200      498012   83  Linux

Disk /dev/sdc: 2000.3 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1          66      530125   83  Linux
/dev/sdc2              67         132      530142   83  Linux
/dev/sdc3             133      243138  1951945693   83  Linux
/dev/sdc4          243139      243200      498012   83  Linux

Disk /dev/sdd: 2000.3 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1          66      530125   83  Linux
/dev/sdd2              67         132      530142   83  Linux
/dev/sdd3             133      243138  1951945693   83  Linux
/dev/sdd4          243139      243200      498012   83  Linux

Disk /dev/md9: 542 MB, 542769152 bytes
2 heads, 4 sectors/track, 132512 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md9 doesn't contain a valid partition table

Disk /dev/md0: 0 MB, 0 bytes
2 heads, 4 sectors/track, 0 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md0 doesn't contain a valid partition table
[~] # 

Code: Select all

[~] # cat /proc/mounts 
rootfs / rootfs rw 0 0
/dev/root / ext2 rw,relatime,errors=continue 0 0
/proc /proc proc rw,relatime 0 0
none /dev/pts devpts rw,relatime,gid=5,mode=620 0 0
sysfs /sys sysfs rw,relatime 0 0
tmpfs /tmp tmpfs rw,relatime,size=32768k 0 0
none /proc/bus/usb usbfs rw,relatime 0 0
/dev/sda4 /mnt/ext ext3 rw,relatime,errors=continue,data=writeback 0 0
/dev/md9 /mnt/HDA_ROOT ext3 rw,relatime,errors=continue,data=writeback 0 0
tmpfs /.eaccelerator.tmp tmpfs rw,relatime,size=32768k 0 0

Code: Select all

[/mnt/HDA_ROOT] # cat .conf
QNAP = TRUE
hd_name = /dev/sdd
mirror = 1
serial_no1 = S2HGJ90BA05916      
serial_no2 = S2HGJ90BA05919      
serial_no3 = S2HGJ90BA05734      
serial_no4 = S2HGJ90BA05878      
hw_addr = 00:08:9B:CB:3C:7E

Code: Select all

[/mnt/HDA_ROOT/.config] # cat volumeStatus.conf 
[Multimedia]
Used Size = 3193252229120
Directory Count = 556
File Count = 6425
[Web]
Used Size = 24576
Directory Count = 0
File Count = 3
[Usb]
Used Size = 16384
Directory Count = 0
File Count = 2
[Public]
Used Size = 61440
Directory Count = 8
File Count = 5
[Recordings]
Used Size = 4096
Directory Count = 0
File Count = 0
[Download]
Used Size = 4096
Directory Count = 0
File Count = 0
[Network Recycle Bin 1]
Used Size = 4096
Directory Count = 0
File Count = 0
[Work]
Used Size = 164119097344
Directory Count = 19376
File Count = 158146
[Private]
Used Size = 13436227584
Directory Count = 35
File Count = 836
[Photo]
Used Size = 323019628544
Directory Count = 16189
File Count = 52458
User avatar
dolbyman
Guru
Posts: 35269
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: TS-412 RAID10 power outage SSH OK - NO WEB

Post by dolbyman »

same command as before, then use WinSCP to navigate to your data, no need for shares at this point
code141
Starting out
Posts: 15
Joined: Thu Jun 02, 2022 8:04 pm

Re: TS-412 RAID10 power outage SSH OK - NO WEB

Post by code141 »

filezilla: ECONNREFUSED

I think the FTP service isn't loaded (as web service)
User avatar
dolbyman
Guru
Posts: 35269
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: TS-412 RAID10 power outage SSH OK - NO WEB

Post by dolbyman »

That's why I said WinSCP

using SCP protocol (based on SSH)
code141
Starting out
Posts: 15
Joined: Thu Jun 02, 2022 8:04 pm

Re: TS-412 RAID10 power outage SSH OK - NO WEB

Post by code141 »

WinSCP is a program for Windows OS. I don't have window OS.
The Web admin control service isn't corectly started.
An Nmap don't even display FTP open

Code: Select all

PORT      STATE SERVICE
22/tcp    open  ssh
139/tcp   open  netbios-ssn
443/tcp   open  https
445/tcp   open  microsoft-ds
548/tcp   open  afp
631/tcp   open  ipp
873/tcp   open  rsync
3493/tcp  open  nut
8090/tcp  open  opsmessaging
49153/tcp open  unknown
So i suppose WinSCP won't hit more than filezilla.

I'v try

Code: Select all

[~] # /etc/init.d/services.sh stop                                                                                      Default volume not found.                                                                                               Stop qpkg service: Default volume not found.                                                                            .   
Stop service: vpn_openvpn.sh vpn_pptp.sh ldap_server.sh antivirus.sh iso_mount.sh qsyncman.sh rsyslog.sh snmp nvrd.sh lunportman.sh iscsitrgt.sh smb.sh nfs crond.sh Qthttpd.sh twonkymedia.sh init_iTune.sh ImRd.sh StartMediaService.sh bt_scheduler.sh btd.sh ftp.sh atalk.sh mysqld.sh recycled.sh .
[~] #  /etc/init.d/services.sh start
Start services: recycled.sh mysqld.sh atalk.sh ftp.sh bt_scheduler.sh btd.sh StartMediaService.sh ImRd.sh init_iTune.sh twonkymedia.sh Qthttpd.sh crond.sh nfs smb.sh lunportman.sh iscsitrgt.sh nvrd.sh snmp rsyslog.sh qsyncman.sh iso_mount.sh antivirus.sh ldap_server.sh vpn_pptp.sh vpn_openvpn.sh .
Start qpkg service: .
Default volume not found.
But nothing to wake correctly my services.
Where could i find somes logs about why Qthttpd.sh is not correctly up ?
code141
Starting out
Posts: 15
Joined: Thu Jun 02, 2022 8:04 pm

Re: TS-412 RAID10 power outage SSH OK - NO WEB

Post by code141 »

Qfinder can discover the nas throught the network.
but all interactions are impossible. no repsponse from the server....
code141
Starting out
Posts: 15
Joined: Thu Jun 02, 2022 8:04 pm

Re: TS-412 RAID10 power outage SSH OK - NO WEB

Post by code141 »

If i can't access data with SSH, I will not be able with WinSCP.
If I had access to my data with ssh, I would have use SCP directly to save them.
User avatar
dolbyman
Guru
Posts: 35269
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: TS-412 RAID10 power outage SSH OK - NO WEB

Post by dolbyman »

You never specified your computer OS, so WinSCP was a shot with a 95% success rate chance.

FTP,SMB,etc will only work if you have shares mounted, without shares nothing will show.

When the raid is mounted, the data (not the shares) should be under MD0_DATA or share/MD0_DATA (I don't have an old CAT1 on hand right now to check)
FSC830
Experience counts
Posts: 2043
Joined: Thu Mar 03, 2016 1:11 am

Re: TS-412 RAID10 power outage SSH OK - NO WEB

Post by FSC830 »

Without the default volume nothing will start.
If MD0 is found (by command from above), try if volume can be mounted manually.
Entry from mount command is as follows (TS-459 with QTS 4.2.6):

Code: Select all

[~] # mount
/proc on /proc type proc (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
sysfs on /sys type sysfs (rw)
tmpfs on /tmp type tmpfs (rw,size=64M)
tmpfs on /dev/shm type tmpfs (rw)
tmpfs on /share type tmpfs (rw,size=16M)
none on /proc/bus/usb type usbfs (rw)
/dev/sda4 on /mnt/ext type ext3 (rw)
/dev/md9 on /mnt/HDA_ROOT type ext3 (rw,data=ordered)
/dev/md0 on /share/MD0_DATA type ext4 (rw,usrjquota=aquota.user,jqfmt=vfsv0,user_xattr,data=ordered,delalloc,noacl)
tmpfs on /mnt/rf/nd type tmpfs (rw,size=1m)
nfsd on /proc/fs/nfsd type nfsd (rw)
Regards
code141
Starting out
Posts: 15
Joined: Thu Jun 02, 2022 8:04 pm

Re: TS-412 RAID10 power outage SSH OK - NO WEB

Post by code141 »

Wow.

Code: Select all

mount -t ext4 /dev/md0 ./MD0_DATA/
Heard disks scratch for minutes.... squeeze the buttocks...
Prompt return, here we are.
Image

MD0_DATA is mounted. Things strangely seems to be at right place, like an old temple reopen after aeon.

I haven't for the moment the right storage capacity to do backup of all this stuff.
So now that I have got my part of sweating, what do you recommend to save correctly my stuff ? Duplicate my raid system in multiples separate redundant hardware backup ?
Like having multiples NAS that sync themselves once a week and stay off rest of time ?
I was wondering to buy server bay with UPS, then buy 2 or 3 server for redundance. With three i can always have one off and totaly isolated.
Except in case of fire looks, like security. I was thinking my raid 10 was bulletproof until i had this probleme few months ago.
I would like to build a serious setup to realy never having this probleme anymore. Does the redundance hardwar of backup is the key ?

Thank both of you guys.
User avatar
dolbyman
Guru
Posts: 35269
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: TS-412 RAID10 power outage SSH OK - NO WEB

Post by dolbyman »

As CAT1 is limited to 16TB volumes, a (or several) sufficient large USB drive(s) should work for backups

You don;t need a server with a UPS, just a UPS connected to the NAS (all my NAS are connected to a UPS)
FSC830
Experience counts
Posts: 2043
Joined: Thu Mar 03, 2016 1:11 am

Re: TS-412 RAID10 power outage SSH OK - NO WEB

Post by FSC830 »

As already written above: neither a NAS nor a raid is a substitute for a backup.
At first you should buy an USB drive and connect to NAS for backup. An USB drive with 4, 8 or more TB is not so expensive nowadays.
This drive I would use for copying all important data.
A next solution could be to use a scondary NAS for an automatic backup (push or pull, whatever is preferred).
Anyhow a raid6 provides better security than a raid10 (IMHO). Both raids are surviving if two disks fail, but if in raid10 the "wrong" two disks fail, data is gone!

Also a raid prevents only redundancy for failed disks, if NAS is failing, raid is useless. And a NAS should be secured by an UPS to be protected against an power outage, as you just learned :wink: .

Regards
code141
Starting out
Posts: 15
Joined: Thu Jun 02, 2022 8:04 pm

Re: TS-412 RAID10 power outage SSH OK - NO WEB

Post by code141 »

"USB drive and connect to NAS for backup. An USB drive with 4, 8 or more TB is not so expensive nowadays."
Yeah that's what i'm seeing....

I think i will leave NAS world because i'v hated the fact that is not a 'real' computer with real OS.
Most of commands don't exist or are really limited on a NAS. And i don't like the way of thinking that all is managed by an webOs.... I don't use 10% of options, and when there is ** on fan, my ssh is poor...

I will build server with own OS and own control. I have to for many other project/idea, and I like the way of working with a nearly empty computer (ghostable in few minutes), so i'm gonna continue to learn about how store/manage correctly distant server.

In fact. To be as honest as I can, i was managing data from my NAS mounted on my desktop with CIFS. With daily habits, from the shell, forgotten i was on the nas, run as root an 'rm -rf ./*' at bad place, wondering why do so long time, heard my nas scratch, then "OH MY GOD ! i'm on the nas !" CTRL-C nothing to do.... jump on the back of the nas tear out power (that the part of 'power outage' i'v mentioned before). Then, nothing.
Realising i was storing 'personal' data as family picture, years of 3d modelling, etc... just on this same device than my stupid multimedia .mkv garbage. Both smocked up in few seconds by a succession of protocol violations.
So now, glad having my data back. Won't be catched twice. Will create differents user for differents level of access. Backup correctly. That lesson have learn me more than one rule i hope.

Must learn more ! Thanks a lot guys ! (Should i click somewhere to mark as resolved or an admin will ?)
Post Reply

Return to “Web Server & Applications (Apache + PHP + MySQL / SQLite)”