Wednesday 19 March 2014

Further exploration in the wonderful world of Network Attached Storage

Following on from an earlier post: -


I've been using my Synology DS414 as a backup for my Mac, using Time Machine, for the past few months.

Before you ask, it's one of a number of backups, including two external USB drives, one using Time Machine, one using SuperDuper as well as my company's Tivoli Storage Manager cloud-based service.

So, this evening, I thought it'd be neat to backup my backup drive to the Synology.

To be more precise, one of my many external USB drives, a Lenovo 500 GB encrypted drive, contains all of the IBM software that I typically install, including WebSphere Application Server, IBM Business Process Manager, IBM Operational Decision Manager etc. plus productivity tools such as IBM Notes etc.

Therefore, it seems quite logical to have a backup of that stuff, in case something nasty happens to the little chap :-(

So, knowing that the Synology has USB ports ( including a USB3 port ), I plugged the drive in, entered the passcode, and c'est voila, up came the drive.

Now the USB drive itself is formatted with the Apple Mac OS X HFS+ format, which the DS414 recognised out of the box.

This is what I'm currently running: -


As you can see, there is an update pending, which I'll apply later, once the copy has completed :-)

I'm doing the copy via the command-line - is there any other way ?

For the record, this is what the underlying DS414 OS shows me: -

DiskStation> dmesg


[ 1439.024126] usb 1-1: new high-speed USB device number 2 using ehci_marvell
[ 1439.210699] scsi6 : usb-storage 1-1:1.0
[ 1440.214948] scsi 6:0:0:0: Direct-Access     ThinkPad Secure 500GB 3.0         0119 PQ: 0 ANSI: 6
[ 1440.227667] sd 6:0:0:0: [sdq] 976773168 512-byte logical blocks: (500 GB/465 GiB)
[ 1440.237658] sd 6:0:0:0: [sdq] Write Protect is off
[ 1440.242474] sd 6:0:0:0: [sdq] Mode Sense: 2b 00 10 08
[ 1440.246599] sd 6:0:0:0: Attached scsi generic sg2 type 0
[ 1440.247748] sd 6:0:0:0: [sdq] Write cache: enabled, read cache: enabled, supports DPO and FUA
[ 1442.149619]  sdq: sdq1 sdq2
[ 1442.158283] sd 6:0:0:0: [sdq] Attached SCSI disk


DiskStation> fdisk -l

fdisk: device has more than 2^32 sectors, can't use all of them

Disk /dev/sda: 2199.0 GB, 2199023255040 bytes
255 heads, 63 sectors/track, 267349 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sda1               1      267350  2147483647+ ee EFI GPT
fdisk: device has more than 2^32 sectors, can't use all of them

Disk /dev/sdb: 2199.0 GB, 2199023255040 bytes
255 heads, 63 sectors/track, 267349 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sdb1               1      267350  2147483647+ ee EFI GPT

Disk /dev/sdq: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sdq1               1       60802   488386583+ ee EFI GPT

DiskStation> mount

/dev/root on / type ext4 (rw,relatime,user_xattr,nosynoacl,barrier=1,journal_checksum,data=ordered)
none on /dev/pts type devpts (gid=4,mode=620)
/sys on /sys type sysfs (0)
/tmp on /tmp type tmpfs (0)
/proc/bus/usb on /proc/bus/usb type usbfs (0)
/dev/vg1000/lv on /volume1 type ext4 (usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,synoacl)
/dev/sdq1 on /volumeUSB1/usbshare1-1 type vfat (utf8,umask=000,shortname=mixed,uid=1024,gid=100)
/dev/sdq2 on /volumeUSB1/usbshare1-2 type hfsplus (ro,force,uid=1024,gid=100,umask=000)


and you can see the hfsplus partition, from which I'm copying the software: -

DiskStation> cd volume1/Software/
DiskStation> cp -Rf /volumeUSB1/usbshare1-2/Software/* .

I'm going to leave the copy running, whilst I have a nice glass of something ….

No comments:

Visual Studio Code - Wow 🙀

Why did I not know that I can merely hit [cmd] [p]  to bring up a search box allowing me to search my project e.g. a repo cloned from GitHub...