Sponsored Content
Full Discussion: mount LVM duplication drives
Top Forums UNIX for Advanced & Expert Users mount LVM duplication drives Post 302119959 by onthetopo on Friday 1st of June 2007 09:52:49 PM
Old 06-01-2007
Power How to mount duplicated LVM harddrives resulted from cloning

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

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

Last edited by onthetopo; 06-01-2007 at 11:01 PM..
 

10 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

File Duplication

hi all how to find the file duplication in a windows 2000 server as usual replies are sincerely appreciated. thanks raguram R (3 Replies)
Discussion started by: raguramtgr
3 Replies

2. Shell Programming and Scripting

how floppy disks, CDs and flash drives (pen drives) are accessed in UNIX

hi how floppy disks, CDs and flash drives (pen drives) are accessed in UNIX? thanks (0 Replies)
Discussion started by: nokia1100
0 Replies

3. UNIX for Dummies Questions & Answers

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... (2 Replies)
Discussion started by: onthetopo
2 Replies

4. Filesystems, Disks and Memory

Unable to mount/find new drives

Hi, I work offshore and we have a system that records excessive amounts of data (Terabytes), therefore we changed the 16 x 400GB drives to 16 x 1TB drives. However, since doing this, upon bootup, the system does not recognize the new drives. These drives are external drives in a chassis which is... (5 Replies)
Discussion started by: shamrocks
5 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. Shell Programming and Scripting

Mount Points vs Physical Drives

Hi there i need a way ( some sort of script maybe) to check if a mont point exist when but the physical drive does not for example if i look in / and see that user_data2 directory exist but there is no user_data2 drive. another hurdle would be that some of the machines have raided drives... (3 Replies)
Discussion started by: ab52
3 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. Linux

Create LVM of 2 Hard Drives while installing Centos 6.4.

Hello, I have install 2 HDD in my server and now installing the Centos6.4. I want create the LVM of those 2 HDD's so while i'm doing this it is not allowing me to select these 2 disk's from allowable disk list. Same problem if i tried to make Software RAID with creating LVM. Please help. (1 Reply)
Discussion started by: purushottamaher
1 Replies

9. Linux

De-Duplication Problem

Hi all, I download and install lessfs for deduplication, I copy files in /SharedFiles directory and lessfs work right and not store again copy files, but, when i delete all files in /SharedFiles , not return free space to total space, files not show in /SharedFiles , but not copy new files in... (3 Replies)
Discussion started by: saeedha
3 Replies

10. UNIX for Beginners Questions & Answers

Line duplication with awk?!

So while this seemed totally trivial it turned out to be much more difficult than I had thought. I have a file with 3 rows, and I "just" want to add each field n number of times. E.g. > cat file.txt 0.5 -0.1 0.6 for n=3 into: cat newfile.txt 0.5 0.5 0.5 -0.1 -0.1 -0.1 0.6 0.6 0.6 I... (4 Replies)
Discussion started by: Glorp
4 Replies
MKFS.MINIX(8)						Linux System Administrator's Manual					     MKFS.MINIX(8)

NAME
mkfs.minix - make a Linux MINIX filesystem SYNOPSIS
mkfs.minix [-c|-l filename] [-n namelength] [-i inodecount] [-v] device [size-in-blocks] DESCRIPTION
mkfs.minix creates a Linux MINIX file-system on a device (usually a disk partition). The device is usually of the following form: /dev/hda[1-8] (IDE disk 1) /dev/hdb[1-8] (IDE disk 2) /dev/sda[1-8] (SCSI disk 1) /dev/sdb[1-8] (SCSI disk 2) The size-in-blocks parameter is the desired size of the file system, in blocks. It is present only for backwards compatibility. If omit- ted the size will be determined automatically. Only block counts strictly greater than 10 and strictly less than 65536 are allowed. OPTIONS
-c Check the device for bad blocks before creating the file system. If any are found, the count is printed. -n namelength Specify the maximum length of filenames. Currently, the only allowable values are 14 and 30. The default is 30. Note that kernels older than 0.99p7 only accept namelength 14. -i inodecount Specify the number of inodes for the filesystem. -l filename Read the bad blocks list from filename. The file has one bad block number per line. The count of bad blocks read is printed. -v Make a Minix version 2 filesystem. EXIT CODES
The exit code returned by mkfs.minix is one of the following: 0 No errors 8 Operational error 16 Usage or syntax error SEE ALSO
mkfs(8), fsck(8), reboot(8) AVAILABILITY
The mkfs.minix command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/. Util-linux 2.6 2 July 1996 MKFS.MINIX(8)
All times are GMT -4. The time now is 10:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy