Re: clonezilla or equivalent
On 01/29/2015 12:32 AM, Yasha Karant wrote: The target hard drive is supposed to have no file system format (just the low level format from the manufacturer) -- not MS Windows, Mac OS X, or any other file system format. It is supposed to be brand new raw. The way I've always prepped a disk for cloning is to run (booted from a live CD and with no other drives in the system for safety): dd if=/dev/zero of=/dev/sdX bs=10240k count=100 where X is the actual device letter. This zeroes out the first 1GB of space; you can do more, or less, as long as you zero out the first few tens of MB you should be ok.
Re: clonezilla or equivalent
On Wed, Jan 28, 2015 at 6:08 PM, Yasha Karant ykar...@csusb.edu wrote: Any advice would be appreciated. Clonezilla Live does support USB 3.0. Out of curiosity, is the external drive you connected formatted as FAT32? The 4 GB file size limit would explain why dd would be failing. Brandon Vincent
Re: clonezilla or equivalent
In the past I use to use a utility called mkcdrec which has a successor project called relax and recover (rear for short) I haven't used the new version but it should work well. That said if you can package every thing in rpms you could use spacewalk or katello to create identical builds including copying config files. As a long term solution I like this option because it allows you to quickly rebuild after a catastrophic failure in a very clean precise way. It also allows for quick expansion of an existing environment. In my environment the typical spacewalk build takes 20 minutes and in most cases includes every thing needed to bring the box up immediately aside from state data such as database content and my normal database recovery scripts handle that and in many cases spacewalk even automatically executes them after the install is complete. Sent from my BlackBerry 10 smartphone. Original Message From: Yasha Karant Sent: Wednesday, January 28, 2015 20:09 To: scientific-linux-users@fnal.gov Subject: clonezilla or equivalent We are in the process of migrating one of our compute engines (a CUDA Nvidia GPU close coupled multichassis unit using Infiniband for the compute fabric) to SL7 from SL6. I have a fully operational SL 7 installation on my workstation that also has a CUDA Nvidia GPU. We will first migrate the head node of the compute engine to SL 7 and then continue with the rest of the nodes (the head node has the 802.3 connection to the LAN and then Internet/WAN). We plan to clone the SL7 boot harddrive from my workstation rather than go through a full install from media -- we have done this before and find cloning and then readjusting partitions to be the fastest method in our circumstances. In the past, we have physically removed drives and used an external cloning device -- easy to do on the primary servers as these all have drives in externally removable carriers -- but this would require me to open up and tear down my workstation. I have mounted a new drive -- upon which we shall be putting SL7 for the compute engine -- in an external USB3 interface. My workstation detects the drive; under SL7, it is /dev/sdj . However, a dd does not work -- it seems not to want to clone beyond 4 GBytes, rather than the full drive (the destination hard drive has sufficient capacity to hold the entire image of the source hard drive). My workstation has multiple bootable harddrives -- I am booting from a different drive than the one from which I am cloning and the clone source and target drives are not mounted during the cloning (obviously, still visible in /dev ). My next approach -- before disassembly -- will be to try clonezilla or the equivalent. As I understand clonezilla, I boot from the clonezilla dvd and then clone from source to target. Does clonezilla permit cloning over a USB3 interface, or only a USB 2 (that I also can use)? We are using ext4 partitions. Does anyone have a preferred utility over clonezilla? Any advice would be appreciated. Yasha Karant
Re: clonezilla or equivalent
On Wed, 28 Jan 2015 17:08:06 -0800 Yasha Karantlt;ykar...@csusb.edugt; wrote My next approach -- before disassembly -- will be to try clonezilla or the equivalent. As I understand clonezilla, I boot from the clonezilla dvd and then clone from source to target.Does clonezilla permit cloning over a USB3 interface, or only a USB 2 (that I also can use)? We are using ext4 partitions. Does anyone have a preferred utility over clonezilla? Any advice would be appreciated. Yasha Karant Hi Yasha, I adore clonezilla. It just works. You boot off a CD (not DVD). The ISO also will create a decent flash drive. I used Fedora Liveusb-creator, which does run under SL 6.x: https://fedorahosted.org/liveusb-creator/ I have done both USB2 and USB3. They must be plugged in before booting. Also, the target disk must be the same size or bigger than the source. When I have had smaller targets, I have had to go in with Xfce Fedora Live CD and reduce the partition size of the source with gparted first. Clonezilla will give you the exact same partition size that you had to start with. Use the same gparted to get the rest of your larger partition back. I got to help you for once. Cool. :-) Good luck, -T Always do an fsck (or chkdsk /f if ntfs) before attempting to clone. I have done fat, ntfs, ext4 so far, but not xfs.
Re: clonezilla or equivalent
On Wed, 28 Jan 2015 17:08:06 -0800 Yasha Karant lt;ykar...@csusb.edugt; wrote gt; However, a dd does not work -- it seems not to want to gt; clone beyond 4 GBytes, rather than the full drive (the destination hard gt; drive has sufficient capacity to hold the entire image of the source gt; hard drive) Boot into Xfce Fedora 21 Live DVD, go into gparted and nuke the original contents. If it is apple partitioned (G-Drives etc.), pull down gdisk with yum, go into the extended features (may be called something else) and nuke the GPT partition
Re: clonezilla or equivalent
On 01/28/2015 07:21 PM, Brandon Vincent wrote: On Wed, Jan 28, 2015 at 6:08 PM, Yasha Karant ykar...@csusb.edu wrote: Any advice would be appreciated. Clonezilla Live does support USB 3.0. Out of curiosity, is the external drive you connected formatted as FAT32? The 4 GB file size limit would explain why dd would be failing. Brandon Vincent The target hard drive is supposed to have no file system format (just the low level format from the manufacturer) -- not MS Windows, Mac OS X, or any other file system format. It is supposed to be brand new raw. Will gparted work to remove any high level format? It should -- the drive can be accessed as /dev/sdj (over the USB 3 interface to the external disk holding unit). Yasha Karant
Re: clonezilla or equivalent
On Wed, Jan 28, 2015 at 10:32 PM, Yasha Karant ykar...@csusb.edu wrote: Will gparted work to remove any high level format? It should -- the drive can be accessed as /dev/sdj (over the USB 3 interface to the external disk holding unit). Yes. The easiest way to do this is to create a new partition table on the disk. [1] [1] http://gparted.org/display-doc.php?name=help-manual#gparted-create-partition-table Brandon Vincent
Re: clonezilla or equivalent
CLearing the remnants of a a filesystem can be awkward. In order to clear previously used partitions for clean OS installation, I used to use lvm (to get a list of known volumes and devices, activate them enough to write to, an dthem delete them *all* with extreme prejudice). Then i'd use parted to partition, as desired, and then mkfs to set up partitions. Doing this as a well scripted '%pre' operation can save enormous complexity in trying to trick the very limited and underdocumented 'anaconda' tools into doing the wreite things. Unfortunately, the parted that came with CentOS 5 installation media was not as powerful as that which came with the operating system, so some extra chicanery was sometimes required. On Thu, Jan 29, 2015 at 12:32 AM, Yasha Karant ykar...@csusb.edu wrote: On 01/28/2015 07:21 PM, Brandon Vincent wrote: On Wed, Jan 28, 2015 at 6:08 PM, Yasha Karant ykar...@csusb.edu wrote: Any advice would be appreciated. Clonezilla Live does support USB 3.0. Out of curiosity, is the external drive you connected formatted as FAT32? The 4 GB file size limit would explain why dd would be failing. Brandon Vincent The target hard drive is supposed to have no file system format (just the low level format from the manufacturer) -- not MS Windows, Mac OS X, or any other file system format. It is supposed to be brand new raw. Will gparted work to remove any high level format? It should -- the drive can be accessed as /dev/sdj (over the USB 3 interface to the external disk holding unit). Yasha Karant