15.1 and External USB disk docking station

Re: 15.1 and External USB disk docking station

Postby mdi » Mon Mar 03, 2014 8:57 pm

Hi Jocko,
I will try that formatting you suggest, but I don't really understand why they are necessary. -j means to create an ext3 journal. Shouldn't it be supposed to be an ext4 journal instead? The -m 1, I don't understand it, but I can try.

Just after unplugging everything (only the docking station) and restarting after more than 1m, the dmesg is the following:
Code: Select all
[   14.967700] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   14.974209] Register Driver 'orion-ehci'
[   14.978375] orion-ehci orion-ehci.0: Marvell Orion EHCI
[   14.983612] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[   14.991432] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[   15.015417] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[   15.021409] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   15.028193] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   15.035406] usb usb1: Product: Marvell Orion EHCI
[   15.040092] usb usb1: Manufacturer: Linux 3.9.5 ehci_hcd
[   15.045403] usb usb1: SerialNumber: orion-ehci.0
[   15.050498] hub 1-0:1.0: USB hub found
[   15.054251] hub 1-0:1.0: 1 port detected
[   15.071382] Initializing USB Mass Storage driver...
[   15.076344] Register Driver 'usb-storage'
[   15.080588] usbcore: registered new interface driver usb-storage
[   15.086637] USB Mass Storage support registered.
[   15.101109] Register Driver 'usblp'
[   15.104792] usbcore: registered new interface driver usblp
[   15.123823] iSCSI Enterprise Target Software - version trunk
[   15.129703] iscsi_trgt: Registered io type fileio
[   15.134393] iscsi_trgt: Registered io type blockio
[   15.139209] iscsi_trgt: Registered io type nullio
[   15.156105] Loading iSCSI transport class v2.0-870.
[   15.167353] iscsi: registered transport (tcp)
[   15.375522] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   15.909083] usb 1-1: New USB device found, idVendor=152d, idProduct=2551
[   15.917171] usb 1-1: New USB device strings: Mfr=1, Product=11, SerialNumber=3
[   15.925522] usb 1-1: Product: USB Mass Storage
[   15.935497] usb 1-1: Manufacturer: JMicron
[   15.939595] usb 1-1: SerialNumber: 00000000007E
[   15.947361] scsi2 : usb-storage 1-1:1.0
[   16.948518] scsi 2:0:0:0: Direct-Access     HDD                       0000 PQ: 0 ANSI: 2 CCS
[   16.957214] fvdw1 disk index before get_sd_name = 1
[   16.962072] No LaCie disk map available
[   16.965935] fvdw2 disk index after get_sd_name = 1
[   16.970704] fvdw3 prefix[0]=s  prefix[1]=d
[   16.974782] fvdw4 diskname = sdb
[   16.979000] sd 2:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[   16.987245] scsi 2:0:0:1: Direct-Access     HDD                       0000 PQ: 0 ANSI: 2 CCS
[   16.995973] fvdw1 disk index before get_sd_name = 2
[   17.000878] No LaCie disk map available
[   17.004736] fvdw2 disk index after get_sd_name = 2
[   17.009598] sd 2:0:0:0: [sdb] Write Protect is off
[   17.014379] sd 2:0:0:0: [sdb] Mode Sense: 28 00 00 00
[   17.014441] fvdw3 prefix[0]=s  prefix[1]=d
[   17.018597] fvdw4 diskname = sdc
[   17.022233] sd 2:0:0:0: [sdb] No Caching mode page present
[   17.028247] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[   17.034495] sd 2:0:0:1: [sdc] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[   17.043612] sd 2:0:0:1: [sdc] Write Protect is off
[   17.048487] sd 2:0:0:1: [sdc] Mode Sense: 28 00 00 00
[   17.049486] sd 2:0:0:1: [sdc] No Caching mode page present
[   17.054995] sd 2:0:0:1: [sdc] Assuming drive cache: write through
[   17.062597] sd 2:0:0:0: [sdb] No Caching mode page present
[   17.068130] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[   17.088854] sd 2:0:0:1: [sdc] No Caching mode page present
[   17.094331] sd 2:0:0:1: [sdc] Assuming drive cache: write through
[   17.182570]  sdb: sdb1
[   17.188145]  sdc: sdc1
[   17.191481] sd 2:0:0:0: [sdb] No Caching mode page present
[   17.197322] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[   17.203482] sd 2:0:0:0: [sdb] Attached SCSI disk
[   17.210088] sd 2:0:0:1: [sdc] No Caching mode page present
[   17.215578] sd 2:0:0:1: [sdc] Assuming drive cache: write through
[   17.221651] sd 2:0:0:1: [sdc] Attached SCSI disk
[   35.152065] EXT3-fs (sda8): warning: maximal mount count reached, running e2fsck is recommended
[   35.160871] kjournald starting.  Commit interval 5 seconds
[   35.175919] EXT3-fs (sda8): using internal journal
[   35.255550] EXT3-fs (sda8): recovery complete
[   35.259893] EXT3-fs (sda8): mounted filesystem with ordered data mode
[   35.340631] udevd (796): /proc/796/oom_adj is deprecated, please use /proc/796/oom_score_adj instead.
[   35.349945] udev: starting version 130
[   40.023230] EXT4-fs (sdb1): recovery complete
[   40.028543] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
[   42.008124] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   43.633981] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
[   43.643773] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   44.692542] EXT4-fs (sdc1): recovery complete
[   44.697786] EXT4-fs (sdc1): mounted filesystem with ordered data mode. Opts: (null)


Sounds ok to me.
mdi
Donator VIP
Donator VIP
 
Posts: 193
Joined: Tue Oct 11, 2011 1:20 pm

Re: 15.1 and External USB disk docking station

Postby Jocko » Mon Mar 03, 2014 9:10 pm

Your dmesg seems ok

So wait...
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: 15.1 and External USB disk docking station

Postby mdi » Mon Mar 03, 2014 9:12 pm

Formatted with your command in the meantime :snicker
dmesg seems slightly different:
Code: Select all
[   15.280914] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   15.287423] Register Driver 'orion-ehci'
[   15.291593] orion-ehci orion-ehci.0: Marvell Orion EHCI
[   15.296826] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[   15.304644] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[   15.327722] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[   15.333715] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   15.340499] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   15.347714] usb usb1: Product: Marvell Orion EHCI
[   15.352398] usb usb1: Manufacturer: Linux 3.9.5 ehci_hcd
[   15.357702] usb usb1: SerialNumber: orion-ehci.0
[   15.362796] hub 1-0:1.0: USB hub found
[   15.366550] hub 1-0:1.0: 1 port detected
[   15.383681] Initializing USB Mass Storage driver...
[   15.388644] Register Driver 'usb-storage'
[   15.392888] usbcore: registered new interface driver usb-storage
[   15.398935] USB Mass Storage support registered.
[   15.413411] Register Driver 'usblp'
[   15.417088] usbcore: registered new interface driver usblp
[   15.436125] iSCSI Enterprise Target Software - version trunk
[   15.442013] iscsi_trgt: Registered io type fileio
[   15.446701] iscsi_trgt: Registered io type blockio
[   15.451516] iscsi_trgt: Registered io type nullio
[   15.468387] Loading iSCSI transport class v2.0-870.
[   15.479653] iscsi: registered transport (tcp)
[   15.687828] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   15.849036] usb 1-1: New USB device found, idVendor=152d, idProduct=2551
[   15.855734] usb 1-1: New USB device strings: Mfr=1, Product=11, SerialNumber=3
[   15.876005] usb 1-1: Product: USB Mass Storage
[   15.887862] usb 1-1: Manufacturer: JMicron
[   15.891960] usb 1-1: SerialNumber: 00000000007E
[   15.909498] scsi2 : usb-storage 1-1:1.0
[   17.431483] scsi 2:0:0:0: Direct-Access     HDD                       0000 PQ: 0 ANSI: 2 CCS
[   17.440182] fvdw1 disk index before get_sd_name = 1
[   17.445045] No LaCie disk map available
[   17.448883] fvdw2 disk index after get_sd_name = 1
[   17.453650] fvdw3 prefix[0]=s  prefix[1]=d
[   17.457767] fvdw4 diskname = sdb
[   17.461833] sd 2:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[   17.470302] sd 2:0:0:0: [sdb] Write Protect is off
[   17.475087] sd 2:0:0:0: [sdb] Mode Sense: 28 00 00 00
[   17.475801] sd 2:0:0:0: [sdb] No Caching mode page present
[   17.481345] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[   17.487722] scsi 2:0:0:1: Direct-Access     HDD                       0000 PQ: 0 ANSI: 2 CCS
[   17.496309] fvdw1 disk index before get_sd_name = 2
[   17.501415] No LaCie disk map available
[   17.505274] fvdw2 disk index after get_sd_name = 2
[   17.510169] fvdw3 prefix[0]=s  prefix[1]=d
[   17.514289] fvdw4 diskname = sdc
[   17.519563] sd 2:0:0:0: [sdb] No Caching mode page present
[   17.525031] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[   17.531592] sd 2:0:0:1: [sdc] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[   17.548579] sd 2:0:0:1: [sdc] Write Protect is off
[   17.553407] sd 2:0:0:1: [sdc] Mode Sense: 28 00 00 00
[   17.554578] sd 2:0:0:1: [sdc] No Caching mode page present
[   17.560134] sd 2:0:0:1: [sdc] Assuming drive cache: write through
[   17.591450] sd 2:0:0:1: [sdc] No Caching mode page present
[   17.596967] sd 2:0:0:1: [sdc] Assuming drive cache: write through
[   17.665288]  sdb: sdb1
[   17.674082] sd 2:0:0:0: [sdb] No Caching mode page present
[   17.679669] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[   17.685785] sd 2:0:0:0: [sdb] Attached SCSI disk
[   17.692284]  sdc: sdc1
[   17.697552] sd 2:0:0:1: [sdc] No Caching mode page present
[   17.703130] sd 2:0:0:1: [sdc] Assuming drive cache: write through
[   17.709229] sd 2:0:0:1: [sdc] Attached SCSI disk
[   31.693740] EXT3-fs (sda8): warning: maximal mount count reached, running e2fsck is recommended
[   31.702476] kjournald starting.  Commit interval 5 seconds
[   31.712264] EXT3-fs (sda8): using internal journal
[   31.787811] EXT3-fs (sda8): recovery complete
[   31.792157] EXT3-fs (sda8): mounted filesystem with ordered data mode
[   31.938465] udevd (796): /proc/796/oom_adj is deprecated, please use /proc/796/oom_score_adj instead.
[   31.947757] udev: starting version 130
[   35.335370] EXT4-fs (sdc1): mounted filesystem with ordered data mode. Opts: (null)
[   38.639884] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   39.773846] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
[   40.286527] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
[   40.296313] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready


I will let you know if it resist :)
Should I assume that with -j the journal is created and managed by the NAS, otherwise not, creating problems when accessing the disk?
mdi
Donator VIP
Donator VIP
 
Posts: 193
Joined: Tue Oct 11, 2011 1:20 pm

Re: 15.1 and External USB disk docking station

Postby Jocko » Mon Mar 03, 2014 9:23 pm

I don't see where is the change in your last dmesg :scratch
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: 15.1 and External USB disk docking station

Postby mdi » Mon Mar 03, 2014 9:38 pm

It seems to me that on the newest dmesg there's no "recovery complete" message on the external disks, while there was before.

I also read around that -j is actually redundant and I understood what -m is used for. Thanks for teaching me something interesting! :)

Tonight I have a backup scheduled to be run. Let's see the results tomorrow. I will let you know. Sorry for my continue need for help, but you're helpful :)
mdi
Donator VIP
Donator VIP
 
Posts: 193
Joined: Tue Oct 11, 2011 1:20 pm

Re: 15.1 and External USB disk docking station

Postby Jocko » Mon Mar 03, 2014 10:01 pm

Indeed option j is useless for ext4 (by default it already has one)
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: 15.1 and External USB disk docking station

Postby mdi » Tue Mar 04, 2014 8:36 am

:dontknow
Now I'm a bit stuck. This morning the disks were again both unmounted and dmesg shows a lot of I/O errors, their fs remounted as ro and then again errors.

They would be just "tests" but I can try the followings:
- just attach 1 disk to the docking station;
- using a USB extension to try if it helps the NAS with the power absorption of the USB3 of the docking station;
- directly connecting 1 disk with a sata-USB cable (so it will be USB2);

At least the above could help to know if it's the docking station causing the issue.... :sob
mdi
Donator VIP
Donator VIP
 
Posts: 193
Joined: Tue Oct 11, 2011 1:20 pm

Re: 15.1 and External USB disk docking station

Postby Jocko » Tue Mar 04, 2014 10:20 am

Hi mdi,


maybe tune2fs command could return some informations :scratch
Code: Select all
tune2fs -l /dev/sdc1


You can try to add the option 'debug' in the mount command to get more information in dmseg (or in messages file):

So umount the usb disk (twice : in /mnt and /share/1000) and use this command to mount them again
Code: Select all

mount -t ext4 -o -o noatime,debug /dev/sdb1 /rw_fs/tmp/mnt/data1_1
mount --bind /rw_fs/tmp/mnt/data1_1 /share/1000/data1_1
(to repeat with sdc)
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: 15.1 and External USB disk docking station

Postby mdi » Tue Mar 04, 2014 7:04 pm

I mounted like suggested. Here the output for tune2fs -l /dev/sdb1:

Code: Select all
root@nas:/mnt # tune2fs -l /dev/sdb1
tune2fs 1.41.14 (22-Dec-2010)
Filesystem volume name:   data1
Last mounted on:          /share/1000/data1_1
Filesystem UUID:          4c640884-5df5-450c-8c69-cfea7cf40c5c
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem flags:         unsigned_directory_hash
Default mount options:    (none)
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              122101760
Block count:              488378637
Reserved block count:     4883786
Free blocks:              480042348
Free inodes:              122101627
First block:              0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      907
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8192
Inode blocks per group:   512
Flex block group size:    16
Filesystem created:       Mon Mar  3 22:03:24 2014
Last mount time:          Tue Mar  4 20:00:19 2014
Last write time:          Tue Mar  4 20:00:19 2014
Mount count:              3
Maximum mount count:      33
Last checked:             Mon Mar  3 22:03:24 2014
Check interval:           15552000 (6 months)
Next check after:         Sat Aug 30 22:03:24 2014
Lifetime writes:          145 MB
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:               256
Required extra isize:     28
Desired extra isize:      28
Journal inode:            8
Default directory hash:   half_md4
Directory Hash Seed:      28baf175-b81e-40f1-93b6-f24431ab9260
Journal backup:           inode blocks


And for sdc1:
Code: Select all
root@nas:/mnt # tune2fs -l /dev/sdc1
tune2fs 1.41.14 (22-Dec-2010)
Filesystem volume name:   data2
Last mounted on:          <not available>
Filesystem UUID:          42e3e13d-6db5-48fb-9731-57150b0e6a9b
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem flags:         unsigned_directory_hash
Default mount options:    (none)
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              122101760
Block count:              488378637
Reserved block count:     4883786
Free blocks:              480665218
Free inodes:              122101749
First block:              0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      907
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8192
Inode blocks per group:   512
Flex block group size:    16
Filesystem created:       Mon Mar  3 22:04:11 2014
Last mount time:          Tue Mar  4 20:00:31 2014
Last write time:          Tue Mar  4 20:00:31 2014
Mount count:              3
Maximum mount count:      26
Last checked:             Mon Mar  3 22:04:11 2014
Check interval:           15552000 (6 months)
Next check after:         Sat Aug 30 22:04:11 2014
Lifetime writes:          144 MB
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:               256
Required extra isize:     28
Desired extra isize:      28
Journal inode:            8
Default directory hash:   half_md4
Directory Hash Seed:      4c7e3199-88bb-4bde-96a1-85a003704db6
Journal backup:           inode blocks


Strange that sdc1 seems unmounted... it is mounted.

dmesg says:
Code: Select all
[...]
[78462.093870] EXT4-fs (sdc1): mounted filesystem with ordered data mode. Opts: (null)
[78467.280428] EXT4-fs (sdb1): recovery complete
[78467.285643] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
[78628.914615] [EXT4 FS bs=4096, gc=14905, bpg=32768, ipg=8192, mo=8802c818, mo2=0000]
[78630.157393] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: debug
[78640.951632] [EXT4 FS bs=4096, gc=14905, bpg=32768, ipg=8192, mo=8802c818, mo2=0000]
[78642.216546] EXT4-fs (sdc1): mounted filesystem with ordered data mode. Opts: debug
mdi
Donator VIP
Donator VIP
 
Posts: 193
Joined: Tue Oct 11, 2011 1:20 pm

Re: 15.1 and External USB disk docking station

Postby Jocko » Tue Mar 04, 2014 7:42 pm

Thank mdi,

I don't understand nothing i have the same outputs than you for my ext4 disk :scratch and I don't have the unmount issue...

Indeed it's amazing that tune2fs doesn't find the last mount point of your sdc1.

So wait if the disks are unmounted again and see what trace there is in dmesg or in the syslog journal with the debug mode...


Note : You must also start syslogd
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

PreviousNext

Return to Lacie Network Space vs2 and max version

Who is online

Users browsing this forum: No registered users and 4 guests