LVM vgexport

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat LVM vgexport
# 1  
Old 02-27-2010
LVM vgexport

Hi all
I am working on a scenario to safely mount a SAN volume from a RHEL 5 host (HOSTA) to another RHEL 5 host (HOSTB) in case if HOSTA crashes.I have used LVM vgexport and vgimport utilities which are not helpful in case of system crash.
Everytime you have to deactivate volume groume on HOSTA and manually or by using some automated scripts export the volume group to HOSTB.Following link can explain it more well:
http://kbase.redhat.com/faq/docs/DOC-4124
Any information on this scenario wil be highly appreciated.
# 2  
Old 02-27-2010
cluster

I think what you really want to do is a cluster with shared file system. You can use VERITAS or RedHat cluster to do this. I think there is free version of Veritas SF that allows you to mount one file system, not sure if cluster is included in this. And you realize that KB link is talking about physically moving a local disk, not a SAN disk. The disk on the SAN would still need to be zoned to both hosts.
# 3  
Old 02-27-2010
Thanks for the reply. We don't want to use any cluster software. Just wants to mount the SAN volume to the new failover node. Yes, although KB link talks about local disk, but I was successfull in testing it for SAN LUN.
# 4  
Old 03-01-2010
You may not think you "want to" but the inconsistencies you may experience with this, at the most inopportune times, will be a possibility. This is one of the very reasons that a clustered file system exists.


Have you thought, perhaps, instead of just using drbd?
# 5  
Old 03-01-2010
Mark

running these commands on hostb after shutting down hosta solved my issue.

Pvscan
vgacan

vmimport -f $vggroupname

thank you guys for your time.
# 6  
Old 03-01-2010
The rule to do a "poor man's cluster" is to not use the same names of vg..
Since the LVM comes from HP, if it works the same way, you need knowing how to use vgimport vgexport vgchange, there is no need to vgexport each time when changing server (which means you need to vgimport again etc...) once both boxes are set, you only use vgexport/vgimport if you have changed disks configuration... otherwise its useless:
How can you vgexport on a crashed system?
You use vgchange! to activate/deactivate a volume group.
One thing to remember a true cluster has a special mode E (exclusive), you have nothing of the sort and in case or error (mounted both side) you loose everything (trust me -I tried for you long ago...)
# 7  
Old 03-01-2010
Vbe

I am not able to understand you.My appologies.
My method is right or wrong.
I specified earlier as I don't need to setup any cluster.
My scenario just talks about using a failover server if primary crashes. I won't be using same volume on primary and failover server same time.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Need LVM Help

Hello, I need some help, it is slightly urgent so any help is appreciated. We were doing a data migration, during a migratepv command, our SAN ran out of quota space and locked all of the filesystems, now I'm left with a few errors and am not able to do migratepv again. /:migratepv... (2 Replies)
Discussion started by: BG_JrAdmin
2 Replies

2. 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

3. AIX

Help with lvm

i have os 5.1 and i do mirror with hdisk0 and hdisk1 on rootvg at the end i get error in mail that: At least one partition mirror is broken please call sysadmin hd5 boot 1 2 2 closed/stale N/A the other fs seems ok and sync what to do about the hd5??? (4 Replies)
Discussion started by: amitt74
4 Replies

4. 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

5. AIX

lvm

Hi. can anyone define about VGDA,VGSA,and quorum in aix.. (1 Reply)
Discussion started by: sumathi.k
1 Replies

6. Red Hat

Lvm

Hi, can we create logical volume from 2 different volume groups. (1 Reply)
Discussion started by: gopalredhat
1 Replies

7. Red Hat

lvm with -- on the name

Hi All, I created an lvm filesystem with a name with dash in the middle, like xxx-yyy (note, that it's only one dash). I was able to create it smoothly with this instructions. lvcreate -L 1G uservg -n xxx-yyy ls /dev/uservg/xxx-yyy (check) mkfs.ext3 /dev/uservg/xxx-yyy mount... (1 Reply)
Discussion started by: itik
1 Replies

8. AIX

Type of Logical Volume lost after vgexport/gvimport process

Hi, I have the next doubt about of lost of characteristic of LV in my original configuration # lsvg -l ifxvg ifxvg: LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT aw64m_01 jfs 1 1 1 open/syncd N/A aw64m_02 jfs 1... (1 Reply)
Discussion started by: cerber0
1 Replies

9. Linux

LVM Help

Hi guys, I have been Linux for quite a while yet, but am only getting into the LVM world just now, so I do want to ask a pretty basic question (I believe for someone with experience with it) I have a physical volume of /dev/sdc1 which contains a volume group call backup that contains 2 logical... (0 Replies)
Discussion started by: pasha
0 Replies

10. AIX

Help with LVM

Sorry for the noob question; my experience is with Solaris. Am I reading this right? Are these disks completely unused? Not possibly raw disks for informix or something? hdisk5 0K-08-ff-0,1 Optimal RAID 10 Array 285.7GB pdisk20 0K-08-00-2,0 Active Array Member 142.8GB... (2 Replies)
Discussion started by: filosmith
2 Replies
Login or Register to Ask a Question