DriveClone for Linux User’s Guide

Content Copyright Notice ______________________________________________________ 3 Chapter 1: Introduction ________________________________________________ 4 1.1 DriveClone for Linux____________________________________________________ 4 1.2 Features of DriveClone for Linux __________________________________________ 4 1.3 Technical support ______________________________________________________ 5

Chapter 2: Installation and operation _____________________________________ 5 2.1 System requirements ___________________________________________________ 5 2.2 Installing DriveClone for Linux ____________________________________________ 5 2.3 Running DriveClone for Linux ____________________________________________ 6 2.4 Removing the program _________________________________________________ 7

Chapter 3: Terminology ________________________________________________ 7 Chapter 4: Main program interface under X Window System __________________ 7 Chapter 5: Clone ______________________________________________________ 8 5.1 Clone Under X Window _________________________________________________ 8 5.2 DriveClone Text Mode _________________________________________________ 11

Appendix: Use Linux command line to create partition/soft Raid/LVM _________ 12 USER LICENSE AGREEMENT ____________________________________________ 14

Copyright Notice No part of this publication may be copied, transmitted, stored in a retrieval system or translated into any language in any form or by any means without the expressed written permission of FarStone Technology, Inc. FarStone grants you the right to use one copy of the enclosed software program (“SOFTWARE”) on a single computer. If the SOFTWARE is installed on a network, or more than one user can run the SOFTWARE at the same time, you must purchase an additional license for each additional user or computer. Trademark FarStone® is a trademark of FarStone Technology, Inc. Microsoft, Windows® and MS-DOS® are registered trademarks of Microsoft Corporation. Other product names mentioned in this User’s Guide may be trademarks or registered trademarks of their respective companies. FarStone Technology, Inc. U.S. Headquarters: 184 Technology Drive, Suite 205 Irvine, CA 92618 Phone: 949-336-4321 Fax: 949-334-1321 www.farstone.com

Asia-Pacific Offices 5F., No.34, Sec. 3 Zhongshan N. Rd. Taipei City 104, Taiwan Phone: 886-2-2585-1077 Fax: 886-2-2585-1054 www.farstone.com.tw Technical Support Answers to frequently asked questions are posted on our website at http://www.farstone.com/support/general-faq.php. For other support issues, please

contact FarStone Technical Support at http://www.farstone.com/support/user-profile/support-ticket.php. Copyright© 2000-2015 FarStone Technology, Inc. All rights reserved.

Chapter 1: Introduction 1.1 DriveClone for Linux You have come to rely on your servers to run your business and retain key enterprise data. DriveClone for Linux provides comprehensive, reliable, and cost-effective system protection and recovery for corporate servers, running Linux. With DriveClone for Linux you have peace of mind knowing you are protected.

DriveClone can rapidly clone your current Linux systems to another hard drive or RAID device, so you can keep that for rainy days, update your hard drive to a bigger or more powerful one, or install it to another computer to facilitate your deployment.

Supports Cutting Edge Technology Businesses today are moving to leverage the latest technologies, dual-core 64 bit processors and 64 bit operating systems. With DriveClone for Linux, you can protect these new machines, as well as legacy ones, running one solution.

Leverages Existing Technology Investments The product can leverage your current storage infrastructure by supporting a wide variety of storage media, so you can avoid costly hardware purchases to implement the solution. The product supports key storage technologies such as: USB, DAS connection or RAID.

1.2 Features of DriveClone for Linux • Image creation without system shutdown •Support for a wide variety of IDE, SATA, SCSI, USB, and other storage media. •Support unknown partitions such as NTFS, FAT • Support GPT hard drives and UEFI motherboards • Support for all Linux file systems, including Linux Ext2/Ext3/Ext4 and VFAT

• Comprehensive wizards simplify even the most complex operations • Migrate data from one drive to another • Support cloning to a smaller-size storage

1.3 Technical support Users of legally purchased copies of DriveClone for Linux are entitled to free technical support from FarStone. If you experience problems installing or using FarStone products that you can’t solve yourself by using this guide, then please FarStone Technical Support. For more information please visit http://www.farstone.com/support/.

Chapter 2: Installation and operation 2.1 System requirements DriveClone for Linux requires the following hard-/software: • Pentium or compatible PC • 512 MB RAM • CD-RW drive for rescue CD creating • Mouse (recommended) • GTK lib • Fedora Core 8, Fedora Core 9, Fedora Core 10, Fedora Core 11, Fedora Core 12, Fedora Core 13, Fedora Core 14, Fedora Core 20,Fedora core 21,RedHat EL 5, RedHat EL 6, CentOS 4 & 5, CentOS 5.5, SLES 11, Debian 6.0, OpenSuse 11.4, Ubuntu 10.10, Ubuntu 12.04,Ubuntu13.10,Ubuntu14.04,Mandriva 2010.2 are fully tested and supported. For other Linux operation systems, please try them first; or tell us to support them in the next version.

2.2 Installing DriveClone for Linux To install DriveClone for Linux: • Assign to the setup file the attribute “Executable”

Note: #> chmod +x DCLinux_Setup_en Root privilege is needed to run above command.

• Run the setup process

Note: #>./ DCLinux_Setup_en

• Follow setup program instructions. • Default install to:

/usr/DCLinux

After download DCLinux_Setup_en to your system, if you have no execute permission, please modify file attributes of DCLinux_Setup_en and add the execute permission, then run the application under the terminal.

2.3 Running DriveClone for Linux To run the program under the X Window System interface, please first login to the system with account of root privilege. If you are not log in by root user, you need to open terminal window in X-Window environment before run it: #> su -

Note: The “-“ after "su", input user password to enter root environment temporarily.

Then, use the below command or select DriveClone for Linux from the system tools menu. Run below command to popup main UI #> /usr/DCLinux/dclinux

2.4 Removing the program To remove DriveClone for Linux, do the following: (1)Run uninstallation command line:/usr/DCLinux/DCLinux_uninstall (2)Or Run installation command line with parameter “-u”: DCLinux_Setup_en_xxxxxxxx –u

Chapter 3: Terminology The following table lists the common terms and descriptions used in this document. RAID Data is distributed across the drives in one of several ways, referred to as RAID levels, depending on the specific level of redundancy and performance required. The different schemes or architectures are named by the word RAID followed by a number (e.g. RAID 0, RAID 1). Each scheme provides a different balance between the key goals: reliability, availability, performance, and capacity. RAID levels greater than RAID 0 provide protection against unrecoverable (sector) read errors, as well as whole disk failure. LVM LVM (Logical Volume Management) provides a method of allocating space on mass-storage devices that is more flexible than conventional partitioning schemes. In particular, a volume manager can concatenate, stripe together or otherwise combine partitions into larger virtual ones that administrators can re-size or move, potentially without interrupting system use.

Chapter 4: Main program interface under X Window System DriveClone for Linux features a user-friendly interface under X Window System. The main program window contains the main area. The main area contains operation icons.

The Main Console contains the following operations:

Clone: completely clone one disk/partition to another disk/partition.Manual: look up manual for software guidance. About: check software version and other info. Enter Serial Number: enter a serial number to get a formal version.

Chapter 5: Clone 5.1 Clone Under X Window Clone Drive/Partition(s) supports cloning from hard drive/partition to another hard drive/partition and from a smaller hard drive to a bigger one. 1. Clone hard drive Select a source hard drive and destination one.

2. Clone partition

DriveClone is designed to completely copy one disk/partition to another disk/partition. When clone a smaller disk to a larger one, you may check “resize target partition proportionally” to automatically adjust and resize partitions during cloning process, or manually partition the free space after cloning by yourself. During cloning process, DriveClone may automatically obtain the partition contains Grub configuration info, if there is any, to ensure that the destination disk is bootable. Should DriveClone obtained the partition contains Grub configuration info mistakenly, please click “Change Device” to select the correct one.

5.2 DriveClone Text Mode The absolute path of command prompt program after installation: /usr/DCLinux/drivecloneCMD Command Line Options: drivecloneCMD [OPTION...] Mandatory arguments to long options are mandatory for short options too. -r, --resize Resize target partition proportionally -g, --grub number Install boot loader to clone device The sequence number of the grub data partition -n, --nogrub not install boot loader to clone device -s, --sn serial number -h, --help give this help list Examples: 1. Simple cloning drivecloneCMD /dev/sda /dev/sdb This example clones a device named“/dev/sda” to another “/dev/sdb”. 2. Proportional resizing cloning

drivecloneCMD -r /dev/sda /dev/sdb It supports cloning bigger disks to smaller disks or smaller ones to bigger ones, but destination disk should have enough free space for data if cloning from a bigger disk to a smaller one. 3. Registering serial number via command line drivecloneCMD /dev/sda /dev/sdb -s DCLBA-xxxxx-xxxxx-xxxxx-xxxxx The serial number will be added into source hard drive. 4. Add Grub information into designated partition drivecloneCMD -g 2 dev/sda /dev/sdb If your grub doesn’t reside in the default first partition of your drive, use this option to specify its partition number.

Appendix: Use Linux command line to create partition/soft Raid/LVM This Appendix will provide you some examples to create partition/soft Raid/LVM. Before running restoration command , users need prepare their storage with these disk commands. 1. Create partition (Take dividing ext3 primary partition from a blank disk as an example) # fdisk /dev/sda Command (m for help)

n

enter command “n” to select create partition

Command action

prompt to select the partition type to create, here we choose primary partition

e

extended

p

primary partition

Partition number (1-4)

1

First cylinder (1-****.,default 1)

select partition number, here is 1 select initialcylinder according to actual requirement, you can choose the default one

Last cylinder (1-****,default *)

select end cylinder according to the need, it defaults to the last cylinder

Command (m for help) w fdisk#mkfs.ext3 /dev/sda1

enter

command

w , write

in

disk

and

exit

format it as ext3 partition

2. Create and recover a software Raid Run “mdadm” to create software RAID, which resides on partitions or hard disks.

Here is an example, create RAID “/dev/md0” based on “/dev/sdb” and “/dev/sdc” mdadm–C/dev/md0–level=0 –raid-devices=2 /dev/sdb /dev/sdc --level Set RAID level --raid-devices=the number of devices (partitions or disks) which constitute raid If the software RAID partition of Linux was existed on the disk, use following command to restore RAID: mdadm–A /dev/md0 –raid-devices=2 /dev/sdb /dev/sdc 3. Create hardware RAID Different RAID cards have different steps to create hardware RAID, please refer to corresponding vendor’s manual to create it. 4. Create LVM The following example shows create LVM on disk sdd 1) Create LVM partition Here we create two partitions (1 and 2), use the same way to create more # fdisk /dev/sdd Command (m for help) nenter command choose to create partition Command action prompt to select the type of new created partition, here is primary partition e extended p primary partition Partition number (1-4) 1 select partition number, here is 1 First cylinder (1-****.,default 1) select initialcylinder according to actual requirement, you can choose the default one Last cylinder (1-****,default *) select end cylinder according to the need, it defaults to the last cylinder Command (m for help) t change partition type, enter 8e change partition to LVM according to tips Command (m for help) w enter commandw, write in disk and exit fdisk

partitions. # fdisk /dev/sde Command (m for help) nenter command n choose to create partition Command action prompt to select the type of new created partition, here is primary partition e extended p primary partition Partition number (1-4) 1 select partition number, here is 1 First cylinder (1-****.,default 1) select initial cylinder according to actual requirement, you can choose the default one Last cylinder (1-****,default *) select end cylinder according to the need, it defaults to the last cylinder Command (m for help) t change partition type, enter 8e change partition to LVM according to tips Command (m for help) w enter command w, write in disk and exit fdisk

2) Create Physical volume on partition # pvcreate /dev/sdd1 /dev/sde1 3) Create Volume group on Physical volume # vgcreate /dev/sdd1 /dev/sde1 4) Create LVM at last lvcreate -L [sizeMG] -n [LVname] VGname -L:It is followed the capacity. The unit of capacity can be M, G and so on, but note that the capacity need to be in accordance with the actual capacity of vg, or it will prompt error. -n:It is followed the name of Logic Volume

#lvcreate –L 18g –n lvtest vg0 If the command runs successfully, you’ll see its returns “Logical volume “lvtest” created”

USER LICENSE AGREEMENT BY ACCEPTING, YOU (ORIGINAL PURCHASER) INDICATE YOUR ACCEPTANCE OF THESE TERMS. IF YOU DO NOT WISH TO ACCEPT THE PRODUCT UNDER THESE TERMS, YOU MAY CHOOSE NOT TO ACCEPT BY SELECTING "I decline..." AND NOT INSTALLING THE SOFTWARE. The FarStone® DriveClone for Linux (the Software) is Copyright © FarStone, Inc., 2000-2015. All rights are reserved. The ORIGINAL PURCHASER is granted a LICENSE to use the software only, subject to the following restrictions and limitations. 1. The license is to the original purchaser only, and is not transferable without prior written permission from FarStone. 2. The original purchaser may use the software on a single computer owned or leased by the original purchaser. You may not use the software on more than a single machine, even if you own or lease all of them, without the written consent of FarStone. 3. The original purchaser may not engage in, nor does permit third party to engage in, any of the following: A. Providing or permitting use of or disclosing the software to third parties. B. Providing use of the software in a computer service business, network, and timesharing or multiple-user arrangement to users who are not individually

licensed by FarStone. C. Making alterations or copies of any kind in the software (except as specifically permitted above). D. Attempting to un-assemble, de-compile or reverse engineer the software in any way. E. Granting sublicenses leases or other rights in the software to others. F. Making copies or verbal or media translations of the user’s guide. G. Making telecommunication data transmission of the software.

FarStone has the right to terminate this license if there is a violation of its terms or default by the original purchaser. Upon termination for any reason, all copies of the software must be immediately returned to FarStone, and the original purchaser shall be liable to FarStone for any and all damages suffered as a result of the violation or default.

ENTIRE RISK THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU THE PURCHASER. FARSTONE DOES NOT WARRANT THAT THE SOFTWARE OR ITS FUNCTIONS WILL MEET YOUR REQUIREMENTS OR THAT THE OPERATION OF THE SOFTWARE WILL BE UNINTERRUPTED OR ERROR FREE OR THAT ANY DEFECTS WILL BE CORRECTED. NO LIABILITY FOR CONSEQUENTIAL DAMAGES - IN NO EVENT SHALL FARSTONE OR ITS VENDORS BE LIABLE FOR ANY DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR THE LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION, OR ANY OTHER PECUNIARY LOSS) ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE, EVEN IF FARSTONE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

SOFTWARE USAGE TERMS AND CONDITIONS Under current legislation, the «License Agreement»is considered a contract between you and Farstone Inc. The contract is a legal document and its violation may result in legal action. Illegal use and/or distribution of this software will be prosecuted.