• Register
    • Login
    • Search
    • Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Using Partclone to image MBR linux client using Resize option

    Linux Problems
    2
    4
    141
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      chris_unit last edited by

      I have a centos 7.6 client i’m trying to take an image of

      it’s a only about 78gb on a 447gb disk

      when i try to use single disk resizeable i get
      no resizeable partitions found

      here’s some information about the disk

      NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
      sda 8:0 0 447.1G 0 disk
      ├─sda1 8:1 0 1G 0 part /boot
      └─sda2 8:2 0 446.1G 0 part
      ├─centos-root 253:0 0 392.1G 0 lvm /
      └─centos-swap 253:1 0 4G 0 lvm [SWAP]
      [root@GPU-01 ~]# fdisk -l

      Disk /dev/sda: 480.1 GB, 480103981056 bytes, 937703088 sectors
      Units = sectors of 1 * 512 = 512 bytes
      Sector size (logical/physical): 512 bytes / 4096 bytes
      I/O size (minimum/optimal): 4096 bytes / 4096 bytes
      Disk label type: dos
      Disk identifier: 0x000d172e

      Device Boot Start End Blocks Id System
      /dev/sda1 * 2048 2099199 1048576 83 Linux
      /dev/sda2 2099200 937701375 467801088 8e Linux LVM

      Disk /dev/mapper/centos-root: 421.0 GB, 421045207040 bytes, 822353920 sectors
      Units = sectors of 1 * 512 = 512 bytes
      Sector size (logical/physical): 512 bytes / 4096 bytes
      I/O size (minimum/optimal): 4096 bytes / 4096 bytes

      Disk /dev/mapper/centos-swap: 4294 MB, 4294967296 bytes, 8388608 sectors
      Units = sectors of 1 * 512 = 512 bytes
      Sector size (logical/physical): 512 bytes / 4096 bytes
      I/O size (minimum/optimal): 4096 bytes / 4096 bytes

      Screenshot 2021-07-21 at 14.27.24.png

      i’m really keen to use the resizeable option as its taking nearly an abour to take an image for 78gb of data.

      Model: ATA INTEL SSDSC2KB48 (scsi)
      Disk /dev/sda: 480GB
      Sector size (logical/physical): 512B/4096B
      Partition Table: msdos
      Disk Flags:

      Number Start End Size Type File system Flags
      1 1049kB 1075MB 1074MB primary xfs boot
      2 1075MB 480GB 479GB primary lvm

      Model: Linux device-mapper (linear) (dm)
      Disk /dev/mapper/centos-swap: 4295MB
      Sector size (logical/physical): 512B/4096B
      Partition Table: loop
      Disk Flags:

      Number Start End Size File system Flags
      1 0.00B 4295MB 4295MB linux-swap(v1)

      Model: Linux device-mapper (linear) (dm)
      Disk /dev/mapper/centos-root: 421GB
      Sector size (logical/physical): 512B/4096B
      Partition Table: loop
      Disk Flags:

      Number Start End Size File system Flags
      1 0.00B 421GB 421GB xfs

      Looks like it a MBR partition table

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator last edited by

        @chris_unit With some solid Linux knowledge you surely can convert an LVM install to a plain one but probably re-installing is a lot faster if the system is not highly customized.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • C
          chris_unit @Sebastian Roth last edited by

          @sebastian-roth said in Using Partclone to image MBR linux client using Resize option:

          LVM

          Is there a way that i could take an image (as lvm) and then put it back at ext4 ?

          1 Reply Last reply Reply Quote 0
          • S
            Sebastian Roth Moderator last edited by

            @chris_unit As we can see from the output you posted this machine was setup with LVM (default in CentOS I think). FOG is not able to capture LVM setups natively. You can only capture as RAW/dd image type and deploy to the exact same disk size (same sector count).

            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

            C 1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post

            188
            Online

            10.4k
            Users

            16.4k
            Topics

            150.5k
            Posts

            Copyright © 2012-2023 FOG Project