Author Topic: How to clone MITEL SSD?  (Read 2988 times)

Offline hack3rcon

  • Contributer
  • *
  • Posts: 23
  • Country: it
  • Karma: +0/-0
    • View Profile
How to clone MITEL SSD?
« on: November 27, 2020, 10:34:33 AM »
Hello,
I want to create a backup of my MITEL SSD. The system is:
Code: [Select]
lsblk -f
NAME FSTYPE LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINT

sdc                                                                   
├─sdc1
│    vfat   /sysro
│                 020C-0000                                           
├─sdc2
│    vfat   /db   0257-0000                                           
├─sdc3
│    vfat   /vmail
│                 02F6-0000                                           
├─sdc4
│                                                                     
├─sdc5
│    vfat   /sysro
│                 036A-0000                                           
├─sdc6
│    vfat   /db   037F-0000                                           
└─sdc7
     vfat   /unused
                  03FA-0000                                           
I did:
Code: [Select]
$ sudo dd if=/dev/sdc of=/home/jason/SSD.dd
234441648+0 records in
234441648+0 records out
120034123776 bytes (120 GB, 112 GiB) copied, 2850.17 s, 42.1 MB/s
$ file SSD.dd
SSD.dd: DOS/MBR boot sector; partition 1 : ID=0x6, active, start-CHS (0x0,1,1), end-CHS (0x8f,254,63), startsector 63, 2313297 sectors; partition 2 : ID=0xb, start-CHS (0x90,0,1), end-CHS (0x3ea,254,63), startsector 2313360, 13799835 sectors; partition 3 : ID=0xc, start-CHS (0x3eb,0,1), end-CHS (0x3ff,254,63), startsector 16113195, 29543535 sectors; partition 4 : ID=0xf, start-CHS (0x3ff,0,1), end-CHS (0x3ff,254,63), startsector 45656730, 188784918 sectors
Then:
Code: [Select]
# dd if=/home/jason/SSD.dd of=/dev/sdc
But, device not booted. How can I clone it?

Thank you.


Offline sunspark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 986
  • Country: mx
  • Karma: +16/-1
    • View Profile
Re: How to clone MITEL SSD?
« Reply #1 on: November 27, 2020, 12:45:50 PM »
I don't think this method is part of Mitel's best practice, I suggest you make a backup of your system, and in case of failure -> restore your database.

Offline acejavelin

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4100
  • Country: us
  • Karma: +133/-0
  • High-tech, heavy metal redneck!
    • View Profile
    • Like what I do and wanna help out? Send me a donation!
Re: How to clone MITEL SSD?
« Reply #2 on: November 27, 2020, 07:47:14 PM »
Unfortunately this won't work. The best way is to either use a Mitel RAID and dual SSD's, or get everything running on one drive, backup, then remove the drive and insert a new one and do a clean install, then restore the database.

To my knowledge you can't clone the drive to another one... And I don't think it is as simple changing the UUID in the bootloader either. I haven't been able to do this with Mitel products since we used to clone floppies for SX-200's back in the day.

Offline hack3rcon

  • Contributer
  • *
  • Posts: 23
  • Country: it
  • Karma: +0/-0
    • View Profile
Re: How to clone MITEL SSD?
« Reply #3 on: November 28, 2020, 04:53:42 AM »
Thank you.
If I just have one SSD drive or my SSD drive failed, then my phone system take down. No solution?
Why MITEL doesn't provide any tool for it?

Offline hack3rcon

  • Contributer
  • *
  • Posts: 23
  • Country: it
  • Karma: +0/-0
    • View Profile
Re: How to clone MITEL SSD?
« Reply #4 on: November 29, 2020, 12:48:32 AM »
Hello,
The MITEL operating system is on this SSD drive or embedded in the switch?

Offline acejavelin

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4100
  • Country: us
  • Karma: +133/-0
  • High-tech, heavy metal redneck!
    • View Profile
    • Like what I do and wanna help out? Send me a donation!
Re: How to clone MITEL SSD?
« Reply #5 on: November 29, 2020, 10:11:15 AM »
Mitel does provide a more resilient solution for this, it's their RAID controller and doing backups, a virtual controller, or a second controller.

Honestly, a drive can be replaced in about an hour if a recent backup is available, but they rarely fail... I have been working on the Mitel 3300 since Release 4 (not MCD 4, but since the mid 90's) and rarely see a drive fail, even an old spinning drive, in fact I can only think of one SSD failure I have seen in the last 5 years. In the hundreds of systems I have maintained over the 25 or so years I have worked on these, I doubt I have seen 10 drive failures total, and most that did fail were 10+ years old or had outside conditions effect them.

Invest in a second drive and keep it updated, or if uptime is critical get the RAID kit installed, move to virtual environment, or add a redundant controller because that is how this system was intended to work.

The bootloader is embedded in the controller, the OS and all databases is on the drive.

Offline hack3rcon

  • Contributer
  • *
  • Posts: 23
  • Country: it
  • Karma: +0/-0
    • View Profile
Re: How to clone MITEL SSD?
« Reply #6 on: November 30, 2020, 03:48:05 AM »
Mitel does provide a more resilient solution for this, it's their RAID controller and doing backups, a virtual controller, or a second controller.

Honestly, a drive can be replaced in about an hour if a recent backup is available, but they rarely fail... I have been working on the Mitel 3300 since Release 4 (not MCD 4, but since the mid 90's) and rarely see a drive fail, even an old spinning drive, in fact I can only think of one SSD failure I have seen in the last 5 years. In the hundreds of systems I have maintained over the 25 or so years I have worked on these, I doubt I have seen 10 drive failures total, and most that did fail were 10+ years old or had outside conditions effect them.

Invest in a second drive and keep it updated, or if uptime is critical get the RAID kit installed, move to virtual environment, or add a redundant controller because that is how this system was intended to work.

The bootloader is embedded in the controller, the OS and all databases is on the drive.
Thank you so much.
Is MITEL using a special version of Linux operating system?
Virtual environment? Are you meaning Virtualization? If yes, how?

Offline kokolino23

  • Contributer
  • *
  • Posts: 27
  • Karma: +0/-0
    • View Profile
Re: How to clone MITEL SSD?
« Reply #7 on: November 30, 2020, 04:51:54 AM »

Offline acejavelin

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4100
  • Country: us
  • Karma: +133/-0
  • High-tech, heavy metal redneck!
    • View Profile
    • Like what I do and wanna help out? Send me a donation!
Re: How to clone MITEL SSD?
« Reply #8 on: November 30, 2020, 08:06:48 AM »
Mitel does provide a more resilient solution for this, it's their RAID controller and doing backups, a virtual controller, or a second controller.

Honestly, a drive can be replaced in about an hour if a recent backup is available, but they rarely fail... I have been working on the Mitel 3300 since Release 4 (not MCD 4, but since the mid 90's) and rarely see a drive fail, even an old spinning drive, in fact I can only think of one SSD failure I have seen in the last 5 years. In the hundreds of systems I have maintained over the 25 or so years I have worked on these, I doubt I have seen 10 drive failures total, and most that did fail were 10+ years old or had outside conditions effect them.

Invest in a second drive and keep it updated, or if uptime is critical get the RAID kit installed, move to virtual environment, or add a redundant controller because that is how this system was intended to work.

The bootloader is embedded in the controller, the OS and all databases is on the drive.
Thank you so much.
Is MITEL using a special version of Linux operating system?
Virtual environment? Are you meaning Virtualization? If yes, how?
If your Mitel is running MiVB 8.x or older, it is a custom OS based on QNX, not Linux at all. As of MiVB 9, the physical controllers run a special version of Linux and the "3300" is a software blade running on that platform. Note the Linux is special because of the architecture, it's not ARM or x86, it's some other custom embedded architecture.

The 3300 can absolutely run as a VM in something like VMware... Once connections are taken into account like analog lines/stations, PRI, etc. You just buy and apply the virtualization license, deploy the OVA in your cluster, then restore the database and adjust programming as necessary for me hardware for physical connections (which may require additional hardware and licensing). That's a very simplified explanation of it.

Sent from my Pixel 4a using Tapatalk


Offline hack3rcon

  • Contributer
  • *
  • Posts: 23
  • Country: it
  • Karma: +0/-0
    • View Profile
Re: How to clone MITEL SSD?
« Reply #9 on: December 01, 2020, 07:44:30 AM »
How can I sure about MiVB? How can I check it?
Thus, MITEL using QNX operating system?
How about CPU? What does "embedded architecture" mean?

Thanks.

Offline hack3rcon

  • Contributer
  • *
  • Posts: 23
  • Country: it
  • Karma: +0/-0
    • View Profile
Re: How to clone MITEL SSD?
« Reply #10 on: December 01, 2020, 07:50:50 AM »
How can I obtain "OVA" file? It just for VMware? How about Xen and Citrix?
Is this scenario possible?
Quote
I want to launch a Virtual MITEL system that when my SSD drive failed then my phone system use this Virtualized system.

Offline sunspark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 986
  • Country: mx
  • Karma: +16/-1
    • View Profile
Re: How to clone MITEL SSD?
« Reply #11 on: December 01, 2020, 08:25:04 AM »
How can I obtain "OVA" file? It just for VMware? How about Xen and Citrix?
Is this scenario possible?
Quote
I want to launch a Virtual MITEL system that when my SSD drive failed then my phone system use this Virtualized system.

you need to deal with a mitel partner to download Ova for vmware or  the files for hyper V

Offline acejavelin

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4100
  • Country: us
  • Karma: +133/-0
  • High-tech, heavy metal redneck!
    • View Profile
    • Like what I do and wanna help out? Send me a donation!
Re: How to clone MITEL SSD?
« Reply #12 on: December 01, 2020, 11:43:23 AM »
Embedded Architecture is the processor used... it isn't x86 (Intel/AMD) or ARM, it is something else proprietary. Early controllers used a Motorola 68xxx series CPU, but I don't know what the more modern ones use.

All you need to do to know which OS your Mitel uses is login and look at the software level of your system. Another way would be connected to the same subnet as the controller with a laptop and go to https://{IP of controller}/server-manager and if you get a login page, you are on Linux, if it errors out then you on the custom OS.

Mitel supports VMware and HyperV only. The OVA file would come from your authorized Mitel vendor along with the associated licensing needed. This isn't just a simple install and restore thing, there is a lot more to it than that especially if you want to set it up for resiliency. If you want to move to a virtual environment, I suggest working with your vendor now to migrate from your physical hardware to a virtual platform BEFORE the SSD fails, if it does. As I said, these SSD's seem to last a long time, other than voicemail there isn't a lot of writing that occurs to the drive, and even in a busy system it is far less than a typical user's workstation by a huge margin to the point your will likely see fan or power supply failure occur before an SSD failure in most cases.

This is not something to be taken lightly and you should reach out to your authorized vendor about the RAID setup or moving to a virtual environment. Neither is really a thing that an admin level user can handle in most cases, even someone with advanced Linux and IT skills, it is quite specialized actually. 

Offline hack3rcon

  • Contributer
  • *
  • Posts: 23
  • Country: it
  • Karma: +0/-0
    • View Profile
Re: How to clone MITEL SSD?
« Reply #13 on: December 15, 2020, 03:38:15 AM »
Hello,
I back with some new result. The cloned SSD Drive halted in below state:
Code: [Select]
MITEL SYSTEM ROM R3.1/10 Aug  5 2011 (83 - POWER_ON_RESET)

CCA Number                      : 56009581 Ra.4
System Model                    : 00620001 F2500
CPU Model                       : 8360 R80480021
Reset Config Low                : 0804008c
Reset Config High               : b4500006
Coherent System Bus Clock (MHz) : 266
CPM Clock (MHz)                 : 399
Core Clock (MHz)                : 533
DDR Clock (MHz)                 : 133
Local Bus Clock (MHz)           : 66
Input Clock (MHz)               : 33
Internal Memory Map             : f0000000
Main Memory (MB)                : 512
Local Memory (MB)               : 0
Flash Memory (MB)               : 4
MAC Address                     : 08000f640a40
POST Bypass                     : 0
Watchdog Bypass                 : 0
Slot Id                         : 0

Starting POST...

SDRAM CS1 Data Bit Walk 1................... PASSED
SDRAM CS1 Data Bit Walk 0................... PASSED
SDRAM CS1 Address  Walk 1................... PASSED
SDRAM CS1 Address  Walk 0................... PASSED
SDRAM CS1 March Test........................ PASSED

Starting vxWorks...

Decompressing FPGA image...615412 bytes decompressed successfully

Programming the FPGA image...OK

FPGA version 0002:6123 loaded

SATA RAID Controller Not Present.











                            VxWorks System Boot


Copyright 1984-2002  Wind River Systems, Inc.





CPU: Mitel MMC-C PPC83XX F2500
Version: VxWorks5.5.2
BSP version: 3.1/10
Creation date: Aug  5 2011, 18:41:11




Press <SPACE><SPACE><SPACE> to stop auto-boot AFTER countdown starts...
<7><6><5><4><3><2><1><0>
auto-booting...


boot device          : ata=0
unit number          : 0
processor number     : 0
host name            : bootHost
file name            : /partition1/RTC8260
inet on ethernet (e) : 172.18.6.5:fffffff0
host inet (h)        : 192.168.137.10
gateway inet (g)     : 172.18.6.14
user (u)             : ftp
ftp password (pw)    : ftp
flags (f)            : 0x0
target name (tn)     : MyPhone
other (o)            : qefcc


Disk Configuration Started.
Creating block device for controller  0 drive 0... done.
Creating CBIO device for controller  0 drive 0... done.
0KB added to /partition1 partition
free disk space after partition 0 is 0KB
0KB added to /partition2 partition
free disk space after partition 1 is 0KB
0KB added to /partition3 partition
free disk space after partition 2 is 0KB
0KB added to /partition4 partition
free disk space after partition 3 is 0KB
Attaching to partition table for 4 partitions on controller 0 drive 0... done.
Creating Cache Layer for partition 0 (/partition1) on controller 0 drive 0... done.
Creating Cache Layer for partition 1 (/partition2) on controller 0 drive 0... done.
Creating Cache Layer for partition 2 (/partition3) on controller 0 drive 0... done.
Creating Cache Layer for partition 3 (/partition4) on controller 0 drive 0... done.
Creating Dos FS device for partition 0 (/partition1) on controller 0 drive 0... done.
Creating Dos FS device for partition 1 (/partition2) on controller 0 drive 0... done.
Creating Dos FS device for partition 2 (/partition3) on controller 0 drive 0... done.
Creating Dos FS device for partition 3 (/partition4) on controller 0 drive 0... done.
Disk Configuration Complete.
Loading /partition1/RTC8260...66125120
Starting at 0x6857c8...
Any idea?

Offline Dogbreath

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 396
  • Country: gb
  • Karma: +18/-0
    • View Profile
Re: How to clone MITEL SSD?
« Reply #14 on: December 17, 2020, 04:57:23 AM »
Mitel do provide tools to reinstall the OS on to a fresh drive in the controller, but they're not available to the general public. You will need to be a Mitel partner to acquire them.


 

Sitemap 1 2 3 4 5 6 7 8 9 10