Skip to contentSkip to conversation

lvcreate --major?

linux-lvm Garrick Staples 2 participants 3 messages May 8, 2004

lore
Share & tools
lore
#0 lore raw

Hi all,
I'm curious about adding a persistent major device number to my LVs.
Adding a persistent minor number works fine, but --major appears to be ignored.

It seems that the major number is always 253, no matter what is set using lvcreate or lvchange. Earlier today I realized that --major is NOT mentioned in the manpage, but it is listed in 'lvm lvcreate help'.

I assume that either there is a bug with major persistent numbers, it isn't (yet) implemented, or it is incorrectly listed in the help output.

For the curious, persistent device numbers are useful for NFS because nfsd creates a filehandle out of the major and minor device numbers.

And finally, HUGE thanks to the developers or LVM. It's the best thing for disk storage since sliced bread!

Signature · 2 lines
Garrick Staples, Linux/HPCC Administrator
University of Southern California
#1 lore raw
Quoted 2 lines · Garrick Staples

Adding a persistent minor number works fine, but --major appears to be ignored.

To set persistent, you have to specify both major and minor together with --persistent y.

Only works with 2.4 kernels - multiple major number support still needs adding to 2.6 kernels for situations like yours.

If it's not working on 2.4 with the latest release, let me know and I'll investigate further.

Alasdair

Signature · 1 line
[email protected]
#2 lore raw

On Sat, May 08, 2004 at 07:10:40AM -0500, Alasdair G Kergon alleged:

Quoted 9 lines · Garrick Staples
Quoted 2 lines

Adding a persistent minor number works fine, but --major appears to be ignored.

To set persistent, you have to specify both major and minor together with --persistent y.

Only works with 2.4 kernels - multiple major number support still needs adding to 2.6 kernels for situations like yours.

Ah, there's the problem. I'm using 2.6. Thank you for clearing that up.

Signature · 2 lines
Garrick Staples, Linux/HPCC Administrator
University of Southern California