Skip to main content
Home
term:~# less tar.gz.ro

Main navigation

  • Home
    • My Yard Projects
  • AIX World
    • AIX Commands
    • HACMP Commands
    • HMC Commands
    • How to assign disks to AIX partition via VIO
    • Misc stuff
    • NIM (Network Installation Management)
    • Virtual I/O (VIO)
  • Apple World
    • News
    • Tips & Tricks
    • iOS
  • CygWin World
    • CygWin Tips and Tricks
    • Cygwin: clone disk with dd
    • Cygwin: how to have multiple tabs in Cygwin's Mintty
    • Cygwin: start and enable sshd
    • config.guess: unable to guess system type
  • ESXi World
    • ESXi 7: Create VMFS Partition Via Command Line
    • ESXi : A bunch of useful commands and information
    • ESXi: How to change the hostname of an ESXi host
    • ESXi: how to change the MTU of vmkernek (vmk) interface (when UI fails)
    • ESXi: how to resize the OS partition
    • How to create a bootable USB installer of ESXi 7.0
  • Games
    • Assetto Corsa Rally vs Real Life – La Bollène-VĂ©subie → Col de Turini | Monte-Carlo Rally
    • Assetto Corsa Rally – Early Access Deep Dive
    • Diablo 3 & Reaper of Souls tips
    • EA Sports WRC Time Trial Locations and Stages
    • EA Sports WRC vs Assetto Corsa Rally | Visual Comparison (Gravel, Asphalt, Wet, Night, Snow)
    • Global Chip Shortage? Build this oddity: PC From 2009 With GeForce GTX 1050ti 4G
    • Left4Dead Lan Play
    • Live Sessions
    • Mafia II Joe's Adventures - Playboy Locations
  • HP-UX World
    • Boot into HPUX L2000
    • How to increase the size of a filesystem in LVM
    • Miscellaneous
    • Performance tools
    • Working with HP VM
  • Hardware
    • 5 Months with iPhone 15 Pro: Not PERFECT But... Must See. From Gaming to ProRes Requirements.
    • Apple Watch Series 9? Not Yet! I Still Love My "Seven of Nine" 19 months later
    • Asus ROG Sheath in 2024: a HUGE Mousepad, Bigger Than Logitech G840 XL
    • Choose Your Perfect Mic / Lavalier | AIQIU M31 vs. Boya BY-M3/BY-M2 & Puluz PU425
    • DJI Mic Mini 2 – Real-World Review and Testing
    • How I Test Mousepads: Glide, Control, and Surface Noise Explained
    • How to build a 25U 600x600 Server Rack
    • I Tested Creative Pebble V2 on My Sim Rig – Surprising Results!
    • Icy Box IB-3805-C31 speed test
    • Is the RX 9060 XT Mercury Class Worth It? Silent Power Meets Real Gameplay
    • Logitech Pro X Wired Gaming Headset (2nd gen): review + mic test with G HUB on Windows 11 and macOS
    • Logitech RS H-Shifter - Amazing Feel, But There’s a Catch (As Always)
    • Mousepad Logitech G840
    • PX8 S2 – A Journey Through Sound, Expectations and Reality
    • Play Steam Games on iPhone with Backbone One Playstation Edition gen2 USB-C / Steam Deck Alternative
    • Qnap TR-004 short review - working with linux
    • Razer Gigantus V2 XXL – 5 Months Later (Still Worth It?)
    • Samsung 870 QVO 2TB: Speed Tests and comparison with Adata SU650 and Kingston K600
    • Server-Ready MS-01 - A Small PC with Everything: SFP+, USB4, 2.5gbps LAN, Enterprise SSD, TPM 2.0
    • The TCL 34R83Q is Insane
    • The TCL 34R83Q is Insane… But There’s a Catch! Honest Review About a Real Product! Read Description.
    • The one with APC Back-UPS BE850G2-GR: Charge Whatever With It, From Phone to Computer And BEYOND :D
    • Thermaltake Pure 20 fan - HUGE and quiet!
    • Ubiquiti EdgeRouter X lift off
    • VIOFO A139 Quad HD Dash Camera - 3 Channels Camera in a 2 Channels Package. Confused?
    • Why Bluetooth Headphones Switch to MONO When Using the Microphone?
    • Why the Logitech PRO Racing Wheel Made Me a Better Driver
  • Home
  • Linux World
    • Alternative to finger command? Sure: pinky :)
    • Backup/restore/reinstall tips
    • Copy one file in linux with progress bar, using pv
    • DNSKEY: verify failed due to bad signature (keyid=19297): RRSIG has expired
    • DRBD: How to replace drbd backend devices
    • Debian 11: Unable to locate package glances
    • Debian 13: missing last command
    • Debian Bullseye (11): zpool command missing
    • Debian DRBD: How to resize drbd and OCFS2 online
    • Debian DRBD: How to resize drbd volume on top of LVM
    • Debian DRBD: Tips, Tricks and Commands
    • Debian Heartbeat: Commands, Tips and Tricks
    • Debian Heartbeat: STONITH errors when configuring CRM cluster
    • Debian Jessie: how to enable and start OpenVPN
    • Debian Tips & Tricks
    • Debian on mac mini: Core temperature above threshold, cpu clock throttled
    • Debian: Can't locate LWP/UserAgent.pm in @INC
    • Debian: HA (cluster) NFS with DRBD and Heartbeat
    • Debian: How to install, configure and manage ZFS
    • Debian: How to split rc.local in rc.local.stop and rc.local.start
    • Debian: Install and configure AFP server
    • Debian: LVM on ISCSI not activated on reboot.
    • Debian: The repository does no longer have a Release file
    • Debian: add and configure VLAN
    • Debian: how to choose default kernel in grub2
    • Debian: how to create bonding device
    • Debian: install open-vm-tools
    • Debian: pdo_mysql.so: undefined symbol: pdo_parse_params in Unknown on line 0
    • Debian: reinstall zfs when changing the linux kernel
    • Debian: ssh key no longer works after upgrading to Debian version 9
    • Docker: Pi-Hole - Failed to set capabilities on file `/usr/bin/pihole-FTL' (Operation not supported)
    • Gnome: Clear "Open With" list
    • How to add a swap file in linux
    • How to add an ISCSI disk from linux server
    • How to add exfat support on RHEL 6
    • How to be sure network interfaces have always the same names
    • How to check which local device is assigned to which iscsi disk
    • How to configure GlusterFS with a volume replicated over 2 nodes
    • How to create an encrypted image
    • How to create bond device under linux
    • How to create/modify a file's timestamp
    • How to give more memory to Lotus Notes in Linux
    • How to install bind (name server) in chroot environment
    • How to install mplayer on RHEL 6
    • How to install openoffice 4.0.1 on Fedora 20/19/18, CentOS/Red Hat (RHEL) 6.5
    • How to install python 2.7 on Red Hat Enterprise Linux Workstation release 6.5 (Santiago)
    • How to modify the hostname on Linux
    • How to mount a HFS partition in linux as Read/Write?
    • How to properly configure oidentd for IRC connections
    • How to read MBR
    • How to remove LVM snapshots if you get message "Can't remove open logical volume"
    • How to setup OpenVPN server for iPhone
    • How to show UUID of a block device, including other attributes too
    • How to speed up things by using tmpfs (your memory)
    • How to switch from pc to efi and recreate boot partition
    • How to test ethernet speed with iperf
    • How to write CD or DVD under linux's console
    • ISCIS: remove disk from linux client
    • LVM
    • Linux Network Tips and Tricks
    • Linux: CPU utilization vs. load average
    • Linux: How to clear (delete) a GUID partition table (GPT)
    • Linux: TCP keepalive or not
    • Linux: Tuning network cards on Linux
    • Linux: how to check if the disk is SSD or not
    • Network Manager - get_secrets_cb(): Couldn't get connection secrets
    • RHEL6: yum update - package is a duplicate with package
    • RPM Tips and Tricks
    • ReiserFS: how to recover deleted files
    • ShellShock - Fix Bash on Debian Lenny
    • ShellShock - Fix Bash on Debian Squeeze
    • Spamassassin: eval/lookup failed: available_nameservers: No DNS servers available!
    • Start restricted graphical apps
    • Systemd startup order
    • Ubuntu: Fast Install With VMware Fusion
    • User Management
    • Using Mdadm
    • Wi-FI KO after upgrade to RHEL 6.5
    • ZFS: Convert a One Disk Pool in Two Disks Mirror
    • ZFS: cannot import 'whatever': no such pool available
    • how to resize iscsi volume in Linux
    • rc.openvpn for slackware
  • Solaris World
    • Tips & Tricks
  • Windows World
    • Active Directory Command Line (CMD) Tips & Tricks
    • Excel: extract text between two different characters
    • Excel: seconds in hours:minutes:seconds
    • PowerShell tips and tricks
    • Windows 7: How to repair boot partition
    • Windows 7: Steam not starting
    • Windows 7: how to disable/enable hibernation
    • Windows CMD commands
  • Tips & Tricks
    • Apache Tips & Tricks
    • Audio / Video *nix Command Line Tricks
    • Bombardier: How to use it to Download Boot Camp Drivers
    • Brigadier: How to use to Download Boot Camp Drivers
    • Citrix XEN: Install VM OS via CLI
    • Citrix Xen CLI Tips & Tricks
    • Citrix Xen: Connect to VM's VNC console
    • Citrix Xen: How to "migrate" VHD lv from one XEN to another with dd
    • Citrix Xen: How to attach an existing vdi to any virtual machine
    • Citrix Xen: How to rename a vm via command line
    • Citrix Xen: How to show vm information via command line
    • Citrix Xen: Modify VM memory value via CLI
    • Docker Tips and Tricks
    • Docker: Create a Custom Image
    • Docker: How to Check Which Docker Container is Using the Space in Linux
    • Docker: How to Run Your Own Docker Registry (e.g. Images Repository)
    • Docker: Install on Debian
    • Docker: Playing with consul
    • Docker: UNIX socket and TCP port
    • Docker: how to enable swap limit capabilities
    • Docker: how to increase php memory "the docker way"
    • Docker: syslog-ng setup
    • Executing commands remotely on multiple systems via SSH
    • FIO Perf Tool Nutshell
    • Flushing the ARP cache
    • FreeNAS console tricks
    • Gallery2 - Gd - How to create thumbnails with fixed width while keeping the aspect ratio (variable height)
    • Gallery2 - Imagemagick - How to create thumbnails with fixed width while keeping the aspect ratio (variable height)
    • Gallery2 - Netpbm - How to create thumbnails with fixed width while keeping the aspect ratio (variable height)
    • How to change the hostid of a Linux operating system
    • How to create a hash password from text
    • How to delete files or directories that contains special characters
    • How to display the output of a file without the blank lines
    • How to enable rstatd
    • How to encrypt a file in linux (or cygwin)
    • How to find out which process is using some port
    • How to login to youtube account via Apple TV if you have Google Authenticator enabled
    • How to resume failed scp transfer
    • How to rotate pdf files with pdftk tool
    • How to send a json from command line
    • How to use an LVM partition as VirtualBox disk
    • IBM DS System Storage common commands examples
    • ImageMagick Tricks
    • Logging ssh sessions
    • Merge mp3 files
    • Miscellaneous
    • MySQL Commands, Tips and Tricks
    • Nagios Stuff
    • Nagios: UNKNOWN: Drive S/N : No health status line found,
    • Networking - questions and answers
    • Oracle: How to connect to the listener and display a parameter's value
    • Oracle: How to list DBA users for a database
    • Oracle: dbfsize Header block magic number is bad
    • Oracle: display tablespace information with sizes
    • PHP: How to display in a table, information from a text file
    • Python: fake smtp server
    • Render Blocking JavaScript and CSS
    • Runlevels
    • SAP useful commands for UNIX administrator
    • SMF Tips and Tricks
    • Script to get memory usage of desired processes
    • Strings or File Manipulation
    • The Hard Link
    • Using Find Command
    • Using VI Editor
    • VirtualBox Tips&Tricks
    • VirtualBox: How to Add Serial Port for Linux Cluster Heartbeat Monitoring
    • VirtualBox: How to work with ISCSI disks
    • dsmc commands
    • iMessage “Waiting for Activation” Error on iPhone
  • Exclamation!
    • Bash CVE-2014-6278 CVE-2014-6277
    • Heartbleed Bug
    • PHP2Shell: Critical PHP Remote Code Execution Vulnerabilities
    • Ransomware KeRanger attached to Transmission app
    • Shellshock (CVE-2014-6271)
  • About This
    • Cookies, Cookies, Cookies!
  • Donate
User account menu
  • Log in
Popular content

Today's:

  • PHP2Shell: Critical PHP Remote Code Execution Vulnerabilities
  • €6,000 MacBook Pro: Should I Throw It Away After 6 Years?
  • Drupal 7 to Drupal 10 Migration and Configuration Notes
  • OS X Misc Stuff
  • How to test ethernet speed with iperf
  • Error: CarbonHeaders is an obsolete port. Please uninstall it.
  • ESXi: How to create a bootable USB installer of ESXi 7.0
  • How to repair a sparsebundle image
  • Assetto Corsa Rally vs Real Life – La Bollène-VĂ©subie → Col de Turini | Monte-Carlo Rally
  • 0301-108 /usr/lib/boot/bin/mkboot_chrp: Unable to read file blocks. Return code: -1

All time:

  • Linux Networking: How to disable/enable offload features, RX/TX checksum, scatter, gather and beyond
  • Tivoli Storage Manager Client Commands (dsmc commands)
  • Centrify Useful Commands and Information
  • Run ZIM on OS X and create Zim.app
  • How to be sure network interfaces have always the same names
  • Linux backup/restore/reinstall
  • How to add exfat support on RHEL 6
  • Mafia II Joe's Adventures - Playboy Locations
  • HMC commands
  • Command Line Software Update in MacOS

Last viewed:

  • Python: fake smtp server
  • 0516-1407 lextendlv Reboot with the 64-bit kernel and try again.
  • Debian: reinstall zfs when changing the linux kernel
  • AIX Misc Commands
  • How to add another script extension for syntax highlighting in gedit
  • PHP2Shell: Critical PHP Remote Code Execution Vulnerabilities
  • Global Chip Shortage? Build this oddity: PC From 2009 With GeForce GTX 1050ti 4G
  • 0301-108 /usr/lib/boot/bin/mkboot_chrp: Unable to read file blocks. Return code: -1
  • OS X Misc Stuff
  • €6,000 MacBook Pro: Should I Throw It Away After 6 Years?

Breadcrumb

  1. Home

How to backup and restore AIX volume group other than rootvg

Profile picture for user root
By root, 17 December, 2014
In this tutorial you can see how to backup a volume group, move a volume group from one system to another, convert jfs to jfs2, shrink and mirror/unmirror filesystems.

In our example, the VG to backup is datavg and we will try to make an image of it from source machine and restore it to target machine.

1. Backup datavg from source machine with savevg command:
NOTE: The option "i" is needed if you want savevg to execute the command mkvgdata and create the data file /tmp/vgdata/datavg/datavg.data. You need that if you want to alter the modification of datavg (e.g. convert jfs to jfs2, modify PP size, transform mirrored vg to normal one, etc.).
source# [color=green]savevg -eiXf /backups-tmp/source-datavg.sysb datavg[/color]

Creating information file for volume group datavg.

Creating list of files to back up 
Backing up 17517 files..............................
3790 of 17517 files backed up (21%)...........................

17517 of 17517 files backed up (100%)
0512-038 savevg: Backup Completed Successfully.

2. Verify and validate the backup image before copying it:
source# [color=green]restbyname -T -q -v -f /backups-tmp/source-datavg.sysb 1>/dev/null[/color]
New volume on /backups-tmp/source-datavg.sysb:
 Cluster 51200 bytes (100 blocks).
    Volume number 1
    Date of backup: Wed Dec 17 11:05:58 2014
    Files backed up by name
    User root
    files archived: 17517
source# ls -la /backups-tmp/source-datavg.sysb
-rw-------    1 root     system   5392998400 Dec 17 11:15 /backups-tmp/source-datavg.sysb
3. Transfer the backup image to the target machine. You can use ssh, scp, ftp, wget, whatever. I leave it to you. The most important is at step 4 to have the image on target machine.
source# scp target:/backups-tmp/source-datavg.sysb .
target's password: 
source-datavg.sysb                             100% 5143MB 10MB/s 0:08:58    
4. In order to restore a volume group, you need free disk(s). You can restore it to as many disks as you want. The most important is to have at least the same total size as the previously backed up volume group. For example, if you want just to restore datavg to hdisk1 and hdisk2, use the following command:
target# restvg -f /tmp/source-datavg.sysb hdisk1 hdisk2
IF YOU ARE SATISFIED WITH YOUR RESTORE, THERE IS NO NEED TO READ FORWARD, UNLESS YOU ARE INTERESTED OR SIMPLY CURIOUS!!! [hr]

Let's say you have a jfs filesystem on source and you want it to be recreated as jfs2 on the target machine. For that, you have 2 possibilities:

A. Go back to the source machine, edit the files /tmp/vgdata/datavg/datavg.data /tmp/vgdata/datavg/filesystems and run again savevg command but this time without the option "i".

PS: If you do not know what exactly to modify in the mentioned files, look for a bit of explanation at the end of this article (section X).
source# savevg -eXf /backups-tmp/source-datavg.sysb datavg
Obviously, you will have to copy again the backup image from source to target server and execute the restore command below without extra options:
target# restvg -f /tmp/source-datavg.sysb hdiskX hdiskY

B. Sometimes it is no more possible to go back to source machine from various reasons so you have to do everything with the existing backup image. For that, prior to restvg command, you have to restore the needed files from the same backup image. Read on.

List and restore the needed files from the backup image:
target# [color=green]listvgbackup -f /tmp/source-datavg.sysb | grep -E "datavg.data|filesystems"[/color]
New volume on /tmp/source-datavg.sysb:
 Cluster 51200 bytes (100 blocks).
    Volume number 1
    Date of backup: Wed Dec 17 11:05:58 2014
    Files backed up by name
    User root
        3393 ./tmp/vgdata/datavg/filesystems
        8941 ./tmp/vgdata/datavg/datavg.data
    files archived: 17517

target# [color=green]restorevgfiles -r -f /tmp/source-datavg.sysb ./tmp/vgdata/datavg/filesystems[/color]
New volume on /tmp/source-datavg.sysb:
 Cluster 51200 bytes (100 blocks).
    Volume number 1
    Date of backup: Wed Dec 17 11:05:58 2014
    Files backed up by name
    User root
x         3393 ./tmp/vgdata/datavg/filesystems
    total size: 3393
    files restored: 1

target# [color=green]restorevgfiles -r -f /tmp/source-datavg.sysb ./tmp/vgdata/datavg/datavg.data[/color]
New volume on /tmp/source-datavg.sysb:
 Cluster 51200 bytes (100 blocks).
    Volume number 1
    Date of backup: Wed Dec 17 11:05:58 2014
    Files backed up by name
    User root
x         8941 ./tmp/vgdata/datavg/datavg.data
    total size: 8941
    files restored: 1
The files will be saved with their full path starting from the directory you are in (if you were in /tmp, your files will be here: /tmp/tmp/vgdata/datavg/) so copy them to /tmp/datavg and edit them as you want. Refer to section X (at the end of this article) for that.
Now here is the tricky part. The command restvg have the option "-d" which allows you to specify a custom data vg file (e.g. /tmp/datavg.data or whatever), but you cannot specify the filesystems file and your jfs2 filesystems will not mount because the /etc/filesystems file will be updated with the information restored from the backup image in /tmp/vgdata/datavg/filesystems and you will get error when executing the restore command.
target# [color=green]restvg -d /tmp/datavg.data -f /tmp/source-datavg.sysb hdisk1[/color]

  Will create the Volume Group: datavg
  Target Disks: hdisk1
  Allocation Policy:
        Shrink Filesystems:     yes
        Preserve Physical Partitions for each Logical Volume:   no


Enter y to continue: y
datavg
lv00
loglv02
fslv00
fslv01
fslv04

[color=red]0512-035 restvg: Failed Mounting the Filesystem /jfs/mount.  Restore of Volume Group canceled.[/color]
Trying to mount manually the filesystem will reveal the "why":
target# mount /jfs/mount
mount: Stat of log device ("/dev/loglv01") failed
And by looking inside /etc/filesystems you will see more exactly why:
target# grep -p /jfs/mount /etc/filesystems
/jfs/mount:
        dev             = /dev/lv00
        [color=red]vfs             = jfs
        log             = /dev/loglv01[/color]
        mount           = true
        options         = rw
        account         = false
Furthermore, if you specify with "-d" the file in it's original location /tmp/vgdata/datavg/datavg.data, assuming you will get the modified filesystem file too from the same path, both will be overwritten automatically with the ones from the backup image so you will arrive nowhere. In this situation, we forget about "-d" option and follow the steps below (unofficial, probably unsupported but it simply works):
Run the command restvg but DO NOT TYPE "y"+"ENTER" when you are asked to:
target# [color=green]restvg -f /tmp/source-datavg.sysb hdisk1[/color]

  Will create the Volume Group: datavg
  Target Disks: hdisk1
  Allocation Policy:
        Shrink Filesystems:     no
        Preserve Physical Partitions for each Logical Volume:   no


Enter y to continue:  [b][color=red]<- STOP HERE[/color][/b]
Instead, open another terminal and copy the modified files over the ones restored from the image:
target# ls -la /tmp/datavg
total 48
drwx------    2 root     system          256 Dec 18 09:45 .
drwxrwxrwt   40 bin      bin            8192 Dec 18 10:45 ..
-rw-------    1 root     system         8596 Dec 18 09:45 datavg.data
-rw-------    1 root     system         3395 Dec 18 09:45 filesystems
target# [color=green]cp /tmp/datavg/datavg.data /tmp/vgdata/datavg/datavg.data[/color]
target# [color=green]cp /tmp/datavg/filesystems /tmp/vgdata/datavg/filesystems[/color]
target# [color=green]ls -la /tmp/vgdata/datavg/datavg.data /tmp/vgdata/datavg/filesystems[/color]
-rw-------    1 root     system         8596 Dec 18 10:46 /tmp/vgdata/datavg/datavg.data
-rw-------    1 root     system         3395 Dec 18 10:46 /tmp/vgdata/datavg/filesystems
Now go back to the terminal where you initiated restvg command and move forward (by typing y and ENTER). Magically, the restore will go trough and you will have the desired jfs2 filesystems:
target# [color=green]restvg -f /tmp/source-datavg.sysb hdisk1[/color]

  Will create the Volume Group: datavg
  Target Disks: hdisk1
  Allocation Policy:
        Shrink Filesystems:     no
        Preserve Physical Partitions for each Logical Volume:   no


Enter y to continue: y
datavg
lv00
loglv02
fslv00
fslv01
fslv04
New volume on /tmp/source-datavg.sysb:
 Cluster 51200 bytes (100 blocks).
    Volume number 1
    Date of backup: Wed Dec 17 11:05:58 2014
    Files backed up by name
    User root

[...USELESS OUTPUT SURPRESSED...]

    total size: 7735916130
    files restored: 17517
target# lsvg -l datavg
datavg:
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
[color=green]lv00                jfs2       48      48      1    open/syncd    /jfs/mount[/color]
loglv02             jfs2log    1       1       1    open/syncd    N/A
fslv00              jfs2       64      64      1    open/syncd    /home/db2inst1
fslv01              jfs2       24      24      1    open/syncd    /db2/backup
fslv04              jfs2       24      24      1    open/syncd    /db2/log

HOORAY, YOU ARE DONE! You have your files restore on this new system and all filesystems which were previousy jfs as jfs2.

[hr]

X. This part is ONLY if you need special modifications of datavg.data and filesystems files.

Edit the file /tmp/datavg/datavg.data and modify all that you need. In my example, I just modified jfs filesystems to jfs2: - replaced all TYPE= jfs with TYPE= jfs2; - replaced all FS_TAG= log=/dev/loglv01 with FS_TAG= vfs=jfs2:log=/dev/loglv02. - delete the jfslog lv stanza because you won't need it anymore. - edit at the end of the file the stanza(s) for jfs filesystem(s) as in the example below: from:
fs_data:
        FS_NAME= /jfs/mount
        FS_SIZE= 6291456
        FS_MIN_SIZE= 4433864
        FS_LV= /dev/lv00
        FS_FS= 4096
        FS_NBPI= 4096
        FS_COMPRESS= no
        FS_BF= false
        FS_AGSIZE= 8
to:
fs_data:
        FS_NAME= /jfs/mount
        FS_SIZE= 6291456
        FS_MIN_SIZE= 4433864
        FS_LV= /dev/lv00
        FS_JFS2_BS= 4096
        FS_JFS2_SPARSE= yes
        FS_JFS2_INLINELOG= no
        FS_JFS2_SIZEINLINELOG= 0
        FS_JFS2_EAFORMAT= v1
        FS_JFS2_QUOTA= no
        FS_JFS2_DMAPI= no
        FS_JFS2_VIX= no
- modify all entries related to jfs filesystem in /tmp/datavg/filesystems like in the example below: from:
/jfs/mount:
        dev             = /dev/lv00
        vfs             = jfs
        log             = /dev/loglv01
        mount           = true
        options         = rw
        account         = false
to:
/jfs/mount:
        dev             = /dev/lv00
        vfs             = jfs2
        log             = /dev/loglv02
        mount           = true
        options         = rw
        account         = false
- If you need to create the filesystems as small as possible, you can modify SHRINK= no to SHRINK= yes. - In case your source vg was on mirrored VG and you want to restore it on a simple one, modify on ALL LVs COPIES value to 1, and the PP value equal to the LPs value: - COPIES = 2 to COPIES = 1 - PP= with the exact number of LPs=

Extra TIP:

If during the restoration progress you found out something is not as you want, you can simply remove datavg and start all over:
target# for i in $(lsvg -l datavg | grep -vE "datavg|MOUNT|N/A" | awk '{print $7}'); do umount $i; done
target# varyoffvg datavg
target# exportvg datavg
  • Log in to post comments
  • 45475 views

Thou shalt not steal!

If you want to use this information on your own website, please remember: by doing copy/paste entirely it is always stealing and you should be ashamed of yourself! Have at least the decency to create your own text and comments and run the commands on your own servers and provide your output, not what I did!
Or at least link back to this website.

Popular content

Today's:

  • PHP2Shell: Critical PHP Remote Code Execution Vulnerabilities
  • €6,000 MacBook Pro: Should I Throw It Away After 6 Years?
  • Drupal 7 to Drupal 10 Migration and Configuration Notes
  • OS X Misc Stuff
  • How to test ethernet speed with iperf
  • Error: CarbonHeaders is an obsolete port. Please uninstall it.
  • ESXi: How to create a bootable USB installer of ESXi 7.0
  • How to repair a sparsebundle image
  • Assetto Corsa Rally vs Real Life – La Bollène-VĂ©subie → Col de Turini | Monte-Carlo Rally
  • 0301-108 /usr/lib/boot/bin/mkboot_chrp: Unable to read file blocks. Return code: -1

All time:

  • Linux Networking: How to disable/enable offload features, RX/TX checksum, scatter, gather and beyond
  • Tivoli Storage Manager Client Commands (dsmc commands)
  • Centrify Useful Commands and Information
  • Run ZIM on OS X and create Zim.app
  • How to be sure network interfaces have always the same names
  • Linux backup/restore/reinstall
  • How to add exfat support on RHEL 6
  • Mafia II Joe's Adventures - Playboy Locations
  • HMC commands
  • Command Line Software Update in MacOS

Last viewed:

  • Python: fake smtp server
  • 0516-1407 lextendlv Reboot with the 64-bit kernel and try again.
  • Debian: reinstall zfs when changing the linux kernel
  • AIX Misc Commands
  • How to add another script extension for syntax highlighting in gedit
  • PHP2Shell: Critical PHP Remote Code Execution Vulnerabilities
  • Global Chip Shortage? Build this oddity: PC From 2009 With GeForce GTX 1050ti 4G
  • 0301-108 /usr/lib/boot/bin/mkboot_chrp: Unable to read file blocks. Return code: -1
  • OS X Misc Stuff
  • €6,000 MacBook Pro: Should I Throw It Away After 6 Years?