The best place to accurately determine the major and minor nodes you need is /proc/dasd/devices. I have a script that builds the nodes from that file, and someone posted an even slicker one here a while back.
> -----Original Message----- > From: Linux on 390 Port [mailto:[EMAIL PROTECTED] Behalf Of > Matt Lashley/SCO > Sent: Thursday, December 16, 2004 3:55 PM > To: [EMAIL PROTECTED] > Subject: [LINUX-390] LVM, SuSE, going over 26 volumes - ARRGH > > > Looks like the mknod script I was using doesn't create all > the nodes that > I needed. After a quick read of the Device Drivers manual > and a browse of > the archives it dawned on me to run mknod specifically for the dasdaf1 > device. > > mknod -m 660 /dev/dasdaf1 b 94 125 > > scodw2:/data/BI_MySql_Scripts # pvcreate /dev/dasdaf > dasdaf dasdaf1 > scodw2:/data/BI_MySql_Scripts # pvcreate /dev/dasdaf1 > pvcreate -- physical volume "/dev/dasdaf1" successfully created > > - Matt > > ----- Forwarded by Matt Lashley/SCO on 12/16/2004 01:52 PM ----- > > > Matt Lashley > 12/16/2004 10:29 AM > > > To: Linux on 390 Port <[EMAIL PROTECTED]> > cc: > Subject: LVM, SuSE, going over 26 volumes > > What is causing this error when I use pvcreate? I thought I > remembered > seeing something sometime ago about this --? I've used a > mknod script I > found on the list, run mkinitrd and zipl -- ? > > I'm stuck. > > - Matt > > > scodw2:/ # pvcreate /dev/dasdaf1 > pvcreate -- can't open physical volume "/dev/dasdaf1" to get its size > > /proc/dasd/devices: > > 021f(ECKD) at ( 94:124) is dasdaf : active at blocksize: > 4096, 600840 > blocks, 2347 MB > > scodw2:/ # fdasd -a /dev/dasdaf > auto-creating one partition for the whole disk... > writing volume label... > writing VTOC... > rereading partition table... > > > > scodw2:/ # fdasd -p /dev/dasdaf > reading volume label: VOL1 > reading vtoc : ok > > Disk /dev/dasdaf: > 3338 cylinders, > 15 tracks per cylinder, > 12 blocks per track > 4096 bytes per block > volume label: VOL1, volume identifier: 0X021F > maximum partition number: 3 > > -----------tracks---------- > Device start end length Id System > /dev/dasdaf1 2 50069 50068 1 Linux native > > > > Does't show up --- > > scodw2:/ # mke2fs /dev/dasda > dasda dasda2 dasdaa dasdab dasdac dasdae dasdag dasdai > dasdai2 dasdaj dasdaj2 > dasda1 dasda3 dasdaa1 dasdab1 dasdad dasdaf dasdah dasdai1 > dasdai3 dasdaj1 dasdaj3 > > > > > ---------------------------------------------------------------------- > For LINUX-390 subscribe / signoff / archive access instructions, > send email to [EMAIL PROTECTED] with the message: INFO > LINUX-390 or visit > http://www.marist.edu/htbin/wlvindex?LINUX-390 > -------------------------------------------------------- If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Click here for important additional terms relating to this e-mail. http://www.ml.com/email_terms/ -------------------------------------------------------- ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
