Categories
Knowledge Support Support exacqVision Server Categories Products

Replacing a Drive in Ubuntu 20.04 or later, Using GParted (Legacy)

This procedure is applicable to replacing the primary hard drive of a Linux-based exacqVision system. It assumes that the operating device is installed to an on-board flash device. Do NOT use this procedure when simply adding a drive to a system.

  1. Run GParted from System, Administration, GParted. Select the empty hard drive from the drop-down list in the top-right corner. Note that the drive is unallocated, which indicates that you have selected the correct hard drive. Select Create Partition Table from the Device menu.


  2. Select gpt from the Select New Partition Table Type drop-down list. Click Apply.


  3. Right-click in the unallocated space and select New to open the Create New Partition window. Select 20000 (or more) in the New Size (MiB) box. Select linux-swap in the File System drop-down list. In the Label field, type swap. Click Add.


  4. Right-click the unallocated space and select New to open the Create New Partition window. Select 10000 (or more) in the New Size (MiB) box. Select ext4 in the File System drop-down list. In the Label field, type /mnt/export. Click Add.


  5. Right-click the unallocated space and select New to open the Create New Partition window. Select the highest available number in the Set New Size (MiB) box. Make sure Free Space Preceding and Free Space Following are both zero. Select ext4 in the File System drop-down list. In the Label field, type /mnt/edvr/1. Click Add.


  6. Click the green checkmark and then click Apply. Wait for the operations to complete.
  7. Open a Terminal window by selecting ApplicationsAccessories, and then Terminal. Enter the following command:

    sudo gedit /etc/fstab
  8. Add the following lines to the end of the fstab file:

    LABEL=swap none swap sw 0 0
    tmpfs /tmp tmpfs defaults,size=10g 0 0
    tmpfs /var/tmp tmpfs defaults
    LABEL=/mnt/export /mnt/export ext4 relatime,errors=remount-ro 0 0
    LABEL=/mnt/edvr/1 /mnt/edvr/1 ext4 relatime,errors=remount-ro 0 0


  9. In the terminal window, enter the following commands.

    sudo /etc/init.d/edvrserver stop
    sudo udevadm trigger

    sudo mount -a

    To create your export directories and change ownership:
    Note: in the following commands both “admin” and “user” should be changed to the relevant account names for the machine having issues.

    sudo mkdir /mnt/export/admin
    sudo mkdir /mnt/export/user
    sudo chown admin /mnt/export/admin
    sudo chown user /mnt/export/user
    sudo /etc/init.d/edvrserver start
  10. In a Terminal window, enter the following commands:
    Note: in the following commands both “admin” and “user” should be changed to the relevant account names for the machine having issues.

    sudo rm -r /home/admin/exacqVision\ Files
    sudo rm -r /home/user/exacqVision\ Files
    sudo ln -s /mnt/export/admin /home/admin/exacqVision\ Files
    sudo ln -s /mnt/export/user /home/user/exacqVision\ Files
  11. Run exacqVision Client and check the Storage configuration. You should see the new drive in the list of attached storage devices

Categories
Knowledge Support Support exacqVision Hardware

Using gdisk to Fix Backup GPT Table Errors in Linux  

Description 

When experiencing Errors partitioning additional storage after a RAID array has been expanded or partition issues with either Archiving or Extended storage drives on an S-Series Server.  Check the partitions for errors using parted. 

Product 

  • exacqVision Server
  • Linux 

Steps to Reproduce 

  • Open Terminal from the machine hosting the storage drives. 
  • Run the parted command to list the partition layout on all block devices.
parted command example

Expected Results 

The results return the partition layout on all block devices with no Errors  

Actual Results 

  • The command returns an Error 
  • The language may vary but the GPT table is always indicated.
    •     Error: The backup GPT table is not at the end of the disk
    •     Error: The backup GPT table is corrupt, but the primary appears OK, so that will be used.
In this example the GPT Table error is referring to the partition listed immediately after you are required to type OK to continue, in this case /dev/sdb.

Solution

  • From Terminal run the gdisk command on the partition with the GPT Table Error
  • You will be prompted with the following, the responses are in bold
    • Command (? for help): x
    • Expert command (? for help):
    • Expert command (? for help): w   
    • Do you want to proceed? (Y/N): Y 
  • Once the command completes, reboot the system.
  • Run parted -l again (see above) to ensure there are no more GPT Table Errors. 
gdisk command example
Categories
Knowledge Support Support exacqVision Server exacqVision Hardware

ExacqVision Corrupt Backup GPT Table or GPT Header

Title

ExacqVision Corrupt Backup GPT Table or GPT Header

Description 

Meaning of Corrupt Backup GPT Table or GPT Header message

Product 

ExacqVision Server

Information

Similar to a ‘Bad Superblock’, this metadata information about a partition can normally be restored without losing data.


Solution

Run ‘gdisk’

See Knowledge Base Article #7812 “Using gdisk to Fix Backup GPT Table Errors in Linux”