- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- pvcreate issue using mondorestore
Operating System - Linux
1820590
Members
2323
Online
109626
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2011 11:17 AM
тАО02-25-2011 11:17 AM
I had to replace my system disk and am trying to use mondorestore to recover the disk...
I've gone into interactive mode using mondorestore and partitioned the new hard drive:
# fdisk -l /dev/sda
Disk /dev/sda: 292.3 GB, 292326211584 bytes
255 heads, 63 sectors/track, 35539 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 33 265041 83 Linux
/dev/sda2 34 35539 285201945 8e Linux LVM
#
when I then try to use pvcreate on the /dev/sda2 partition I get the following:
# lvm pvcreate /dev/sda2
Can't open /dev/sda2 exclusively. Mounted filesystem?
#
Anyone know why I would be getting this??
I've gone into interactive mode using mondorestore and partitioned the new hard drive:
# fdisk -l /dev/sda
Disk /dev/sda: 292.3 GB, 292326211584 bytes
255 heads, 63 sectors/track, 35539 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 33 265041 83 Linux
/dev/sda2 34 35539 285201945 8e Linux LVM
#
when I then try to use pvcreate on the /dev/sda2 partition I get the following:
# lvm pvcreate /dev/sda2
Can't open /dev/sda2 exclusively. Mounted filesystem?
#
Anyone know why I would be getting this??
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2011 02:39 AM
тАО02-26-2011 02:39 AM
Solution
Does "cat /proc/partitions" indicate that the kernel has recognized the existence of /dev/sda2?
If you've just created the partition(s), you may have to do something to make the kernel to reload the partition table of that disk. Fdisk accesses the disk directly, so it will always see the partition table that is currently on the disk. But the kernel needs to be told that changes have been made. Some kernel versions won't reread the partition table if the disk currently has partitions mounted.
RHEL 5 includes the "partprobe" command, and also the regular version of "fdisk" will automatically issue the appropriate system calls to make the kernel reread the partition table. If the system call is not successful, fdisk will typically tell you about it. But I don't know what versions of fdisk and other tools are available in the mondorestore environment...
MK
If you've just created the partition(s), you may have to do something to make the kernel to reload the partition table of that disk. Fdisk accesses the disk directly, so it will always see the partition table that is currently on the disk. But the kernel needs to be told that changes have been made. Some kernel versions won't reread the partition table if the disk currently has partitions mounted.
RHEL 5 includes the "partprobe" command, and also the regular version of "fdisk" will automatically issue the appropriate system calls to make the kernel reread the partition table. If the system call is not successful, fdisk will typically tell you about it. But I don't know what versions of fdisk and other tools are available in the mondorestore environment...
MK
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2011 08:14 AM
тАО03-01-2011 08:14 AM
Re: pvcreate issue using mondorestore
Thanks, found issue with multipath...
When I issued: multipath -F it allowed me to do the pvcreate
When I issued: multipath -F it allowed me to do the pvcreate
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP