Sponsored Content
Full Discussion: How to mount lvm
Top Forums UNIX for Dummies Questions & Answers How to mount lvm Post 302120146 by onthetopo on Monday 4th of June 2007 02:37:35 PM
Old 06-04-2007
How to mount lvm

Hi, I'm stuck in an awkward situation please help

I have two identical Seagate 80GB harddrives.
My objective is a bit strange.
1.I want to have a cloned disk as bootable backup
2.When booting using the master drive, I also want to mount the cloned backup disk so I can do incremental backup of certain files . and use the clone disk as free disk space.

I used "dd if=/dev/hda of=/dev/hdb" to clone the harddrive and the cloning worked fine.
Now fdisk lists partition as the following:

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 9729 78043770 8e Linux LVM

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 13 104391 83 Linux
/dev/hdb2 14 9729 78043770 8e Linux LVM

The clone works fine but I cannot mount both harddrives at the same time. LVM pvdisplay gives:
Found duplicate PV EKctcS4RyHWiw1JlI3FwWdTe8H0iLbxx: using /dev/hdb2 not /dev/hda2

Suppose hda is the master copy and hdb is the clone. Is there anyway to change the LVM fingerprint of hdb so:
1.hdb2 is mountable, say mount hdb2's home directory as /backup/home when booting using hda2
2.hdb is bootable on its own when hda is physically dead.


I'm using Fedroca Core 3. Thanks a lot!!
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how to mount a hotswap scsi drive on a solaris 2.6 netra box using the mount command?

Hi... question is this: How do I mount an LVD hotswap scsi drive in bay #2 on a netra using the mount command? volmgt doesn't seem to mount it and/or I don't know how to view the drives data if it's formatted which it may not be. This drive is not new out of the box so I'm not sure. ... (4 Replies)
Discussion started by: soulshaker
4 Replies

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

3. UNIX for Advanced & Expert Users

mount LVM duplication drives

Hi, I'm stuck in an awkward situation please help :) I have two identical Seagate 80GB harddrives. My objective is a bit strange. 1.I want to have a cloned disk as bootable backup 2.When booting using the master drive, I also want to mount the cloned backup disk so I can do incremental... (6 Replies)
Discussion started by: onthetopo
6 Replies

4. UNIX for Advanced & Expert Users

mount -t cifs permission denied by mount -t smbfs works fine

I am having trouble mounting with cifs, but mounting the exact same command with smbfs works fine. The share is on another samba server and is set to full public guest access. # mount -t cifs //servername/sharename /mnt/temp -o password="" mount error 13 = Permission denied Refer to the... (3 Replies)
Discussion started by: humbletech99
3 Replies

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

6. IP Networking

Can't see home folder on one NFS mount but can in another mount on another share

Hello, I have a few Ubuntu 9.10 laptops I'm trying to learn NFS sharing with. I am just experimenting on this right now, so no harsh words about the security of what I'm playing with, please ;) Below are the configs /etc/exports on host /home/woodnt/Homeschool... (2 Replies)
Discussion started by: Narnie
2 Replies

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

8. Shell Programming and Scripting

Script to mount nas-share using generated credentials (mount EC 13,32)

Heyas At home i have 1 nas with 3 shares, of which i used to mount 2 of them using a script with hardcoded password and username in it. EDIT: Turns out, its not the script, but 'how i access' the nas share.. (-o user=XY,password=... VS. -o credentials=...). Figured about credential files,... (0 Replies)
Discussion started by: sea
0 Replies

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

10. UNIX for Beginners Questions & Answers

How to create a new mount point with 600GB and add 350 GBexisting mount point? IN AIX

How to create a new mount point with 600GB and add 350 GBexisting mount point Best if there step that i can follow or execute before i mount or add diskspace IN AIX Thanks (2 Replies)
Discussion started by: Thilagarajan
2 Replies
lvmadm(1M)																lvmadm(1M)

NAME
lvmadm - display limits associated with a volume group version SYNOPSIS
vg_vers] DESCRIPTION
The command is used to perform the actions below: o Display the limits associated with a volume group version. o Display the LVM configuration that is contained in and files for the indicated volume group version. o Update the entries of the bootable volume group and the boot information present in the boot disk either during or after boot. With the boot disk's physical location changing prior to reboot or when the system is booted with a cloned disk, the entries of the bootable volume group and the boot information present in the boot disk may be out of sync with the kernel. In such a situation, follow- ing root volume group activation (either during boot or post boot) use the command in migrate mode option) to update the information present in the file and the boot information present in the boot disk with the kernel. See lvm(7) for more details. Options and Arguments recognizes the following options: Display a table of limits for the indicated volume group version. Display limits or configuration for volume group version vg_vers. The default is to display limits for all supported volume group versions. Display the LVM configuration that is contained in the and files. Produce a compact listing of fields described in The output is a list of colon separated fields formatted as: Update the information present in the file for the bootable volume group and the boot information present in the boot disk, with the information present in the kernel, if there is any mismatch. Display With -t Option For each volume group version to be displayed (one if is specified, all if is omitted) displays the following. VG Version The volume group version. Max VG Size (Tbytes) The maximum size of a volume group in terabytes. Max LV Size (Tbytes) The maximum size of a logical volume in terabytes. Max PV Size (Tbytes) The maximum size of a physical volume in terabytes. Max VGs The maximum number of volume groups this volume group version supports on a system. Max LVs The maximum number of logical volumes in a volume group. Max PVs The maximum number of physical volumes in a volume group. Max Mirrors The maximum number of mirrors for a logical volume. Max Stripes The maximum number of stripes for a logical volume. Max Stripe Size (Kbytes) The maximum stripe size for a logical volume in kilobytes. Max LXs per LV The maximum number of extents in a logical volume. Max PXs per PV The maximum number of extents in a physical volume. Max Ext Size (Mbytes) The maximum size of an extent in megabytes. Display with -l Option For each volume group version to be displayed (one if is specified, all if is omitted) displays the following: o The list of volume groups that exist on the system, and o The list of physical volumes belonging to each of the volume groups. The LVM configuration displayed by this option is from data contained in the and files. The command fails if these files are missing or corrupt. Compact Listing (-F Option) The option generates a compact and parsable listing of the command output in colon separated fields formatted as The option is designed to be used by scripts. The resulting command output may be split across multiple lines. The output may include new keys and/or values in the future. If a key is deprecated, its associated value is set to Compact Listing for -t option Below is a sample output: Compact Listing for -l option Below is a sample output: EXTERNAL INFLUENCES
Environment Variables determines the language in which messages are displayed. If is not specified or is null, it defaults to "C" (see lang(5)). If any internationalization variable contains an invalid setting, all internationalization variables default to "C" (see environ(5)). EXAMPLES
Display a table of limits for volume group version 2.0. Display the LVM configuration file contents for volume group version 1.0. AUTHOR
was developed by HP. SEE ALSO
vgcreate(1M), lvm(7). lvmadm(1M)
All times are GMT -4. The time now is 01:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy