LVM Move: - We tin motility entire LVM Volume grouping to approximately other Linux System.
It may require when yous are going to upgrade your electrical flow OS to the latest or at that spot is approximately lawsuit alongside electrical flow Server hardware or going to role novel server hardware.
Why Move LVM: -
1- There is approximately hardware lawsuit alongside electrical flow server
2- We convey novel Server hardware
3- Current OS is onetime version
Prerequisites:-
1- Influenza A virus subtype H5N1 user alongside sudoers access over onetime System
2- user alongside sudoers privileges over novel System
Move LVM: - We need to perform next steps to motility LVM
My Current scenario as follows:
VG Name: VG01
PV Name: /dev/sdb1 in addition to /dev/sdc1
LV Name: LV01 in addition to LV02
Note: -first, brand certain no i is accessing the file on the active book inwards the book grouping nosotros are going to move.
Step 1: - Unmount LV logical volume
Before, nosotros commence moving LVM necessitate to unmount let's role below ascendence to unmount LV
Now nosotros necessitate to brand VG inactive, role below command.
Step 4: - Shutdown System in addition to unplugged disk
After System Shutdown unplugged both the disk. Let's role init 0 ascendence to shutdown system.
Step 5: - Plugged disk to novel organization in addition to ability it on
After putting both the disk to the novel system, I am going to ability it on in addition to volition exhibit yous how to import Volume Group.
Disk , VG in addition to LV details equally follows:
Step 6: - VG Import
After putting all the disk to novel organization nosotros necessitate to import Volume Group, let's role below ascendence to Import VG using ascendence vgimport
Volume Group has successfully Imported to novel organization in addition to working equally expected. We tin brand fstab entry to mountain Logical Volume permanently.
Step 11: - Make Fstab entry to mountain LV permanently
Let's role below ascendence to mountain it permanently.
Step 12: - Use ascendence mountain -a to apply changes
After making alter inwards fstab file nosotros necessitate to restart organization to apply changes, merely nosotros tin role ascendence mountain -a to apply changes without restart system.
!!!That's all close VG Moving!!!! Thank yous then much for reading.
Sumber https://linuxhowtoguide.blogspot.com/
It may require when yous are going to upgrade your electrical flow OS to the latest or at that spot is approximately lawsuit alongside electrical flow Server hardware or going to role novel server hardware.
Why Move LVM: -
1- There is approximately hardware lawsuit alongside electrical flow server
2- We convey novel Server hardware
3- Current OS is onetime version
Prerequisites:-
1- Influenza A virus subtype H5N1 user alongside sudoers access over onetime System
2- user alongside sudoers privileges over novel System
Move LVM: - We need to perform next steps to motility LVM
My Current scenario as follows:
VG Name: VG01
PV Name: /dev/sdb1 in addition to /dev/sdc1
LV Name: LV01 in addition to LV02
Note: -first, brand certain no i is accessing the file on the active book inwards the book grouping nosotros are going to move.
Step 1: - Unmount LV logical volume
Before, nosotros commence moving LVM necessitate to unmount let's role below ascendence to unmount LV
root@Server16: # umount /mnt/FLV
Step 2: - Make VG inactive Now nosotros necessitate to brand VG inactive, role below command.
root@Server16: # vgchange -a n VG01
Step 3: - Export Volume Group
root@Server16: # vgexport VG01 Volume grouping VG01 is exported Cannot procedure book grouping VG01
After exporting VG, the Physical Volume volition exhibit upward equally beingness exported book grouping when yous volition execute command pvscan.Step 4: - Shutdown System in addition to unplugged disk
After System Shutdown unplugged both the disk. Let's role init 0 ascendence to shutdown system.
Step 5: - Plugged disk to novel organization in addition to ability it on
After putting both the disk to the novel system, I am going to ability it on in addition to volition exhibit yous how to import Volume Group.
Disk , VG in addition to LV details equally follows:
Step 6: - VG Import
After putting all the disk to novel organization nosotros necessitate to import Volume Group, let's role below ascendence to Import VG using ascendence vgimport
root@US16: # vgimport VG01 Volume grouping "VG01" successfully imported
Step 7: - Activate Volume Group
After successful import of VG, We necessitate to active Volume Group using ascendence below
root@US16: # vgchange -a y VG01 ii logical volume(s) inwards book grouping "VG01" instantly active
Step 8: - Create mountain point
Now Volume Group has successfully import in addition to activated, let's practise mountain betoken then nosotros tin mountain in addition to commence using Logical Volume.
root@US16: # mkdir /mnt/lvm1 root@US16: # mkdir /mnt/lvm2
Mount betoken successfully created.
Step 9: - Mount Logical Volume
root@US16: # mount /dev/VG01/LV01 /mnt/lvm1/
Step 10: Check onetime information of LV01 Logical Volume
Volume Group Import has done successfully, in addition to Logical Volume mounted equally well.
let's cheque existing information inwards the mounted LV.
Volume Group has successfully Imported to novel organization in addition to working equally expected. We tin brand fstab entry to mountain Logical Volume permanently.
Step 11: - Make Fstab entry to mountain LV permanently
Let's role below ascendence to mountain it permanently.
root@US16: # vi /etc/fstabAppend trouble below inwards the goal of fstab file
/dev/VG01/LV01 /mnt/lvm1 ext4 errors=remount-ro 0 0
Your fstab file looks similar belowStep 12: - Use ascendence mountain -a to apply changes
After making alter inwards fstab file nosotros necessitate to restart organization to apply changes, merely nosotros tin role ascendence mountain -a to apply changes without restart system.
root@US16: # mount -a
Logical Volume has been successfully mounted permanently.!!!That's all close VG Moving!!!! Thank yous then much for reading.
Tidak ada komentar:
Posting Komentar