- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Disk config
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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
08-29-2003 03:20 AM
08-29-2003 03:20 AM
Disk config
Thanks,
Deise
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2003 03:25 AM
08-29-2003 03:25 AM
Re: Disk config
What model of machine are you on and what model of disk are you using ?
diskinfo /dev/rdsk/c8t0d0 will give you the Vendor and Type.
Best regards,
Kent Ostby
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2003 03:30 AM
08-29-2003 03:30 AM
Re: Disk config
Though I've done similar things for tape device files, I'm not completely convinced that this is even possible for disks and I'm reasonably sure that it's not a good idea. Disk device file names are base on the hardware address (path/instance/scsi ID) and changing them, I would think, would lead to mass confusion for the O/S.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2003 04:16 AM
08-29-2003 04:16 AM
Re: Disk config
SCSI describe of /dev/rdsk/c8t0d0:
vendor: DEC
product id: HSG80
type: direct access
size: 53321554 Kbytes
bytes per sector: 512
in fact someone has made rhis in this machine before, but i couldn??t find how. I have a disk that should be /dev/rdsk/c8t0d1 but has changed to /dev/rdsk/c8t0d6.
Thanks,
Deise
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2003 04:22 AM
08-29-2003 04:22 AM
Re: Disk config
But i would use it with care, and only if truly forced.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xf9e4f6ba6e3e1049aba32d2b44d4b50a,00.html
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2003 04:49 AM
08-29-2003 04:49 AM
Re: Disk config
cX is the external bus' s card istance
tX is the scsi target
dX is the lun' s disk array
You can change the card istance' s value whit the above procedure but I don't think you can modify the lun' s value. It depend by how disk array is partitioned.
Can you post your
ioscan -fnCext_bus
ioscan -fnCdisk
ll /dev/dsk ?
Enrico.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2003 05:04 AM
08-29-2003 05:04 AM
Re: Disk config
/dev/dsk/c8t0d0 requires a second device file located in /dev/rdsk/c8t0d0 (for the raw device name) and to keep sysadmins from going totally braindead, this convention should be maintained. The c8 portion refers to the instance or occurrance of the I/O card in the backplane. The I/O is scanned during installation and the first disk I/O card is discovered )and it has a disk attached) then it will be called instance 0 and device files will start with c0. The next disk I/O will be named c1 and so on. This convention is part of the insf command which creates device files.
Note that if you add another card at a later time, the instance will not follow the backplane order but instead will follow the order in which it was first seen. That's why using Ignite/UX to restore a system can result in new device file names as all the cards will be seen for the first timwe, in backplane order.
The t0 is the hardware address of the disk such as the SCSI address. And finally the d0 portion is the LUN or sub-unit inside the disk. For example, a dual floppy device might have a SCSI address of 5 and the left drive is LUN 0 while the right drive is LUN 1. For disk arrays, there really aren't individual disk drives (they are hidden by the array controler) but sections of disk space call Logical Unit Numbers or LUNs.
So the name tells a fair amount about the device but to decode what the kernel thinks about this device, always use lssf as in:
lssf /dev/dsk/c8t0d0
lssf does not care about the naming convention, just the major and minor numbers. ANother command which asociates real hardware with device files is ioscan, a tool that almost every other Unix vendor wishes they had. To see everything:
ioscan -kf
To see just the disks:
ioscan -kfC disk
To see the device files associated with all the tape drives:
ioscan -knfC tape
and so on. The physical hardware path and options are stored in the devicefile's major and minor numbers. So the actual name isn't too important by itself.
Here's the caveat: if this disk is part of a volume group, do NOT change the device file name! It has been recorded in /etc/lvmtab and renaming the device will cause the volume group to fail upon activation (typically bootup). In your example, /dev/dsk/c8t0d0 is supposed to be /dev/dsk/c8t0d7 but this indicates that the device pointed to LUN 0 and you want to rename it so it looks like a device that points to LUN 7. Renaming the devicefile will not change the LUN as that is recorded in the minor number. You can change the name but lssf will still report the LUN recorded in the minor number.
Perhaps telling us why you want to change it will make it easier to understand your question.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2003 05:46 AM
08-29-2003 05:46 AM
Re: Disk config
-f infile Use the file infile to reassign instance numbers to devices within a specified class.
infile may have multiple entries, each to appear on a separate line, each field in the entry separated by 1 or more blanks.
Entries should conform to the following format:
h/w_path class_name instance_#
ioinit preprocesses the contents of infile, looking for invalid entries, and prints out explanatory messages.
An entry is considered to be invalid if the specified hardware path or class name does not already exist in the system, or if the specified instance number already exists for the given class.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2003 03:49 AM
09-01-2003 03:49 AM
Re: Disk config
I am sending the response to the commands attached. I tried to use ioinit -f this weekwend but it did not work.
Thanks,
Deise
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2003 04:30 AM
09-01-2003 04:30 AM
Re: Disk config
in the ioscan command I don' t see the c8... disks, have you modified the card istance number?
If the disks in the question are in the card istance number 12 you already have the c12t0d7 special file.
However how Bill wrote, I think you can modify the special file in the /dev/dsk and /dev/rdsk directories without modify the correspondent disk.
E.g.
mv /dev/dsk/c8t0d0 /dev/dsk/c8t0d7
mv /dev/rdsk/c8t0d0 /dev/rdsk/c8t0d7
Take care that the disk in the question not be already part of a VG and that you don' t have already the c8t0d7 special file in the /dev/dsk and /dev/rdsk directories.
I never try this and I can' t test it.
I don' t know if it work, I ask for the other forum member support.
Enrico.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2003 01:44 PM
09-01-2003 01:44 PM
Re: Disk config
Thanks,
Deise