Presenting current LUNs to new OS. RHEL 7, LVM


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Presenting current LUNs to new OS. RHEL 7, LVM
# 1  
Old 10-02-2019
Presenting current LUNs to new OS. RHEL 7, LVM

All,

We have a physical server (Lenovo 3950) that we need to upgrade the OS from RHEL 6 to RHEL 7. We do not want to do an in-place upgrade but rather start with a fresh OS install. The plan is to remove the two local drives (Raid 1) and install two new drives for the fresh RHEL 7 install. The idea being we can put the original drives back in the server if anything goes wrong. This part is pretty straight forward, but our question concerns the presentation of the LUNs that are used for the database (SAP HANA) on the old OS.

After the installation of the OS we will want to present snapshots of the original LUNs to the new RHEL 7 system. The LUNs reside on an EMC Xtreme IO array. The LUNs have LVM VGs and LVs with XFS filesystems. We would like to understand what we should expect with the LUNs presented to the new OS.

- Would this process be as simple as using the same /etc/fstab line from the old OS in the new OS and it recognize the LVM configuration and data as before? We are defining the mount via UUID on the current RHEL 6 OS.

- Do we need to or would it be better practice to do some type of lvconvert (mirror) or similar on the new OS? I recall doing a "mklvcopy" for this type of need in AIX, similar in RHEL 7?

We are going to test this in a sandbox environment but any guidance or any advise from experience would be greatly appreciated.

Thanks in advance,

HB
# 2  
Old 10-03-2019
With the costs of disks so cheap these days, you are better to clone the disks and put them in a development / test server instead of removing the critical disks and testing them, with a plan to rush them back to the original server if something goes wrong.

This is especially true if you are talking about a critical production asset.

If you are talking about a "mom and pop" server which does not serve a critical business need, then you can certainly consider some "quick, disk shuffle" method, but not for a business-critical production server.

Just fully recreate the current computer with clones of the application and data disks in a your new OS build / server; and then cut over too it when all is tested and ready to go live (syncing data as necessary).
This User Gave Thanks to Neo For This Post:
# 3  
Old 10-03-2019
Thank you for the response.

We were not planning on testing the removal of the disks and installing a the new OS. That part is not a concern. We will test the presentation of the snapped LUNs to a new server/OS.

Our unknown is the presentation of the LUNs and how RHEL 7 will 'see' the LVM and data. We want to have all of the steps defined for when we are ready to do the process in the critical environment..

HB
# 4  
Old 10-03-2019
Presenting snapshot luns will work fine, as long as you don't present source and snapshots to the same box.

Rescan the fabric, followed by pvscan, then vgimport <your_group_from_pvscan>
Take care of the /etc/fstab with a help of blkid to list the UUIDs od the logical volumes.

Hope that helps
Regards
Peasant.
This User Gave Thanks to Peasant For This Post:
# 5  
Old 10-16-2019
Thank you @Peasant for the reply. I wanted to provide an update...

The process was actually much easier than expected. We just needed to:

1. Snapshot the original LUN.
2. Create the same mount point on the new server.
3. Copy the /etc/fstab entry from original server and write it to the /etc/fstab on the new server.
4. Present the snapshot LUN to the new server.
5. Reboot the new server.

This allowed us to to see the original data as expected.

Thanks again for the help..

HB
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Presenting data in column format

I have written a script that that takes file names and breaks them apart. File names are : aal_mock.war.deployed AuroralMockService-1.0.war.deployed consumerProfile.war.deployed EbillMock.war.deployed IAMAOGServices.war.deployed IAMPermission.war.deployed... (5 Replies)
Discussion started by: Junaid Subhani
5 Replies

2. Red Hat

How to reduce the LVM Size in RHEL/Centos 7 ?

Hi All, I have one logical volume with size as 900G and it is mounted as xfs file system. Now I want to reduce this partition to 500G. So I followed the below steps. unmount the mount point /home Reduced the volume using the command Now I remounted the partition. But the problem... (3 Replies)
Discussion started by: kalpeer
3 Replies

3. Red Hat

Error throwing while installing vsftpd package in rhel 6. using rhel 6 dvd.

Hi all, Im studying rhcsa as of now, so yum installation and dependencies are messing me to not workit out. i have dual os, win 7 & rhel 6. i have tried this installation of vsftpd package with rhel 6 dvd in VM rhel 6 in win 7 as well as host rhel 6.still the same issue. below error... (6 Replies)
Discussion started by: redhatlbug
6 Replies

4. UNIX for Dummies Questions & Answers

How to convert non LVM root partition to LVM?

Hi Guys, I m using redhat 6, I have installed root partition as non-LVM . Is there any way i can convert it to LVM? (1 Reply)
Discussion started by: pinga123
1 Replies

5. Red Hat

Does RHEL 5 provide a command to collect RHEL system log in single compress file?

Hi, I heard a command that can collect all RHEL 5 log in a single compress file before I forget. Does any body know...What the command is ? Thanks. (4 Replies)
Discussion started by: nnnnnnine
4 Replies

6. HP-UX

How to reduce LVM to create another LVM

Hi, I'm new to HP-UX. I have LVM on /var with 92Gig. I would like to reduce it to create another LVM for Oracle client with 800 meg or so. How to do it. I'm running 11.iv3 Thanks (4 Replies)
Discussion started by: lamoul
4 Replies

7. Filesystems, Disks and Memory

Migrating from RHEL LVM to VxVM

Hiya, Is there a known method from converting LVM data to VxVM data.. ie we have a load of local and SAN (HPDM) mounts on RHEL 4u5/5u1 servers which are now required to be clustered with SFS (VxFS,VxVM,CFS,VCS etc) I've come across the vxvmconvert, but thought that was HP-UX only? Many... (3 Replies)
Discussion started by: itsupplies
3 Replies

8. Red Hat

Migrating from RHEL LVM to VxVM

Hiya, Is there a known method from converting LVM data to VxVM data.. ie we have a load of local and SAN (HPDM) mounts on RHEL 4u5/5u1 servers which are now required to be clustered with SFS (VxFS,VxVM,CFS,VCS etc) I've come across the vxvmconvert, but thought that was HP-UX only? Many... (0 Replies)
Discussion started by: itsupplies
0 Replies

9. Shell Programming and Scripting

Presenting the user a menu in Bash ...

Hello, I am trying to write a bash script function to present the user a menu of options. The following is what I have so far: function MainMenu { while ] do echo "--------------------------------------------------------------------------------" echo... (4 Replies)
Discussion started by: ckoeber
4 Replies
Login or Register to Ask a Question