Can't pvcreate second partition...
Funny, I had the same issue at the same time. I created /dev/hdb7 with fdisk and then a pvcreate just after. pvcreate stated that the dev didn't exist. Reboot fixed the problem. This could be a problem for machines already up in production with small windows for restarts. Why is this necessary and will it become a "non-issue" in future releases? If this will be necessary forever, then some simple planning would solve the problem, at least on new installations. Any way around this?
On another note, I have a customer running Oracle that wishes to move to a LVM configuration. They are extremely reliant on the machine being up and it's very active. Is LVM at a point where I can safely install it on a critical system? Loaded question, I know, but I need some honest feedback.
I finally have it up and running on two machines and to those that have developed it, it's really freakin' cool.
An off topic question, but I think this is the best place to start. How could one build "network logical volumes"? Let's say I have 5 machines running LVM and each one has a 10G /export volume. I want to take all the export volumes off each machine and create one large "network volume" of 50G. Then, from each client I would like to mount that volume at /bignet or something. Maybe if it could do a pseudo raid across the 5 machines. If machine a went down, then data could be gotten from another one since it's striped. I know I could do read only redundancy with NFS, but i'd like to be able to write. I think MS calls their solution to this type of scenario DFS. Something like this around for UNIX? Specifically Linux, but also Solaris. Any pointers or suggestions would be great.
Darren Young
-----Original Message-----
From: [email protected] [mailto:[email protected]]On
Behalf Of Glenn Shannon
Sent: Friday, May 04, 2001 6:14 PM
To: [email protected]
Subject: Re: [linux-lvm] Can't pvcreate second partition...
Quoted 3 lines · Jeffrey
Hi all.
I'm new to LVM, but think I understad it, at
least... <grin>
Quoted 2 lines
Anyway, I'm trying to setup the first VG but can't
seem to build my PV's.
Quoted 1 line
The transcript of what I did is at the bottom of
this message.
Quoted 2 lines
As you can see, I was able to do pvcreate on
/dev/sdc2, but not on
Quoted 1 line
/dev/sdc3. These partitions are on a hardware
raid5.
Quoted 9 lines
Am I missing something?
Thanx,
Mike Diehl,
Network Monitoring Tool Devl.
284-3137
[email protected]
Quoted 4 lines
Script started on Fri May 4 07:33:56 2001
[root@filmore /mnt]# fdisk/dev/sdcThe number of cylinders for this disk is set to
30945.
Quoted 1 line
There is nothing wrong with that, but this is larger
than 1024,
Quoted 8 lines
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., LILO)
2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK)Command (m for help): p
Disk
/dev/sdc: 255 heads, 63 sectors, 30945
cylinders
Quoted 3 lines
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id
System
Quoted 1 line
/dev/sdc11 15472 124278808+ 8e
Unknown
Quoted 1 line
/dev/sdc215473 15476 32130 8e
Unknown
Quoted 1 line
/dev/sdc315477 15480 32130 8e
Unknown
Quoted 1 line
/dev/sdc415481 15484 32130 8e
Unknown
Quoted 6 lines
Command (m for help): w
The partition table has been altered!Calling
ioctl()to re-read partition table.
Re-read table failed with error 16: Device or
resource busy.
Quoted 1 line
Reboot your system to ensure the partition table is
updated.
Quoted 3 lines
WARNING: If you have created or modified any DOS 6.x partitions, please see the fdisk manual page for
additional
Quoted 5 lines
information.
Syncing disks.[root@filmore /mnt]# pvcreate
/dev/sdc2pvcreate -- physical volume "/dev/sdc2" successfully
created
Quoted 3 lines
[root@filmore /mnt]# pvcreate
/dev/sdc3pvcreate -- can't open physical volume "/dev/sdc3"
to get its size
Quoted 2 lines
pvcreate [-d|--debug] [-f[f]|--force [--force]]
[-h|--help] [-y|--yes]
Quoted 1 line
[-v|--verbose] [-V|--version] PhysicalVolume
[PhysicalVolume...]
Quoted 7 lines
Script done on Fri May 4 07:34:33 2001
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
Can you try rebooting and trying the pvcreate again? I suspect that it was
because the partition table was unable to be updated.
Glenn
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
Quoted 10 lines · Darren Young
Funny, I had the same issue at the same time. I created
/dev/hdb7with fdisk and then a pvcreate just after. pvcreate stated that the dev didn't exist. Reboot fixed the problem. This could be a problem for machines already up in production with small windows for restarts. Why is this necessary and will it become a "non-issue" in future releases? If this will be necessary forever, then some simple planning would solve the problem, at least on new installations. Any way around this?
This appears to be an issue with fdisk and the 2.4.x series Linux kernels. It has nothing to do with LVM as far as i can tell. I've had problems where I run fdisk to change the size of a partition, but linux doesn't detect the change. /proc/partitions is identical before and after i attempt to write out the changes with fdisk. I'm not sure what has caused this. Maybe someone else on the list knows?
I'll try to verify this when i get into work tomorrow.
Regards,
Signature · 13 lines
AJ Lewis Sistina Software Inc. Voice: 612-638-0500 1313 5th St SE, Suite 111 Fax: 612-638-0500 Minneapolis, MN 55414 E-Mail: [email protected] http://www.sistina.com Current GPG fingerprint = 3B5F 6011 5216 76A5 2F6B 52A0 941E 1261 0029 2648 Get my key at: http://www.sistina.com/~lewis/gpgkey (Unfortunately, the PKS-type keyservers do not work with multiple sub-keys) -----Begin Obligatory Humorous Quote---------------------------------------- Life's unfair - but root password helps! -----End Obligatory Humorous Quote------------------------------------------
Quoted 11 lines · Darren Young
Funny, I had the same issue at the same time. I created
/dev/hdb7with fdisk and then a pvcreate just after. pvcreate stated that the dev didn't exist. Reboot fixed the problem. This could be a problem for machines already up in production with small windows for restarts. Why is this necessary and will it become a "non-issue" in future releases? If this will be necessary forever, then some simple planning would solve the problem, at least on new installations. Any way around this?
Linux kernel NOT rereads partition table of a BUSY disk. If you mount at least one filesystem from it, or used a swap space on it, or opened /dev/[hs]d* device etc etc, disk will be marked as busy. Well, linux kernel never *rereads* disk partition, it reads them on a first disk usage, when usage count increases from 0 to 1 (this is shown on console when you first access a disk -- kernel reports disk's geometry etc). And "forgots" about a disk (but still showing it in /proc/partitions) when it's usage becomes zero again. This is a long-standing issue that will not be fixed in a near future. Probably IBM's LVMS will have some infrastructure to address this, but I'm not shure. To "fix" this, *significant* block layer changes should be made, and all filesystems should be prepared to handle partition table change at run time. And there is nothing LVM or any other component can do here.
[]
Quoted 3 lines
An off topic question, but I think this is the best place to start. How could one build "network logical volumes"? Let's say I have 5 machines running LVM and
[...]
You can look to various nbd (Network Block Device) implementations, and build a softraid on top of them. For NBDs, look to links at linux-ha.org site.
Regards,
Michael.