From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,5535741d3cfdb6f7 X-Google-Attributes: gidfee84,public From: "Mark & Suzanne (gcs might work)" Subject: Re: New to Digital UNIX.. Date: 1998/06/10 Message-ID: <357D7CEE.41C6@s054.aone.net.au> X-Deja-AN: 361112705 Content-Transfer-Encoding: 7bit References: <357D3257.231054B5@unixcenter.ericsson.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Garetech Computer Solutions P/L Newsgroups: comp.unix.osf.osf1 Hans Westerback wrote: > > > Can some kind soul give me a hint on good commands to quickly get a feel > for the disk setup, I mean I'd like to know which disks there are on > the system, which one are used by advfs and lsm and how. Like most things on UNIX there are always serveral ways to get the answer to any given question. When it comes to disks Digital UNIX showes more of its BSD side than SYSV The current naming scheme for SCSI based disks are /dev/rz* /dev/rrz* The * may be either of two formats depending if you have SCSI LUNS involved. The simple case for a standalone SCSI disk on a non RAID bus is /dev/rz followed by a number followed by the letter a-h The number of represents the disk number (bus# * 8 + SCSIID) the letter a-h is a partition table entry for the drive. eg /dev/rrz1h The partition table may exist in memory and or on the first blocks of the disk, by convention and default two partitions are based at block 0 a and c. The c partition is defaulted to the whole disk. Refer to /etc/disktab Use the disklabel command to read/write/edit the label with its partition layout There is a GUI /usr/sbin/diskconfig it does stupid things with size cals (eg 1K = 1000) and somewhat likes to start with a clean disk your mileage may vary :) If all of the disk are configured properly and the device files created in /dev cd /dev ./MAKEDEV rz0 rz1 rz2 ... then you can use file to find all of the disks Your must do this as root to get the probe to work file /dev/rrz*c # file /dev/rrz*c /dev/rrz0c: character special (8/2) SCSI #0 RZ28M disk #0 (SCSI ID #0) (SCSI LUN #0) /dev/rrz10c: character special (8/18434) SCSI #1 RZ29B disk #80 (SCSI ID #2) (SCSI LUN #0) /dev/rrz1c: character special (8/1026) SCSI #0 RZ28B disk #8 (SCSI ID #1) (SCSI LUN #0) /dev/rrz2c: character special (8/2050) SCSI #0 RZ28M disk #16 (SCSI ID #2) (SCSI LUN #0) /dev/rrz4c: character special (8/4098) SCSI #0 RRD45 disk #32 (SCSI ID #4) (SCSI LUN #0) /dev/rrz8c: character special (8/16386) SCSI #1 RZ28D disk #64 (SCSI ID #0) (SCSI LUN #0) Also if you don't have an already configure system and need to find them. You can either look a the boot record which may tell you some of the disks uerf -R -r 300 | more or look in /var/adm/messages or Which will physically probe each connected SCSI bus for devices scu scu> scan edt Scanning all available buses, please be patient... scu> show edt CAM Equipment Device Table (EDT) Information: Device: RZ28M Bus: 0, Target: 0, Lun: 0, Type: Direct Access Device: RZ28B Bus: 0, Target: 1, Lun: 0, Type: Direct Access Device: RZ28M Bus: 0, Target: 2, Lun: 0, Type: Direct Access Device: RRD45 Bus: 0, Target: 4, Lun: 0, Type: Read-Only Direct Access Device: TLZ07 Bus: 0, Target: 5, Lun: 0, Type: Sequential Access Device: RZ28D Bus: 1, Target: 0, Lun: 0, Type: Direct Access Device: RZ29B Bus: 1, Target: 2, Lun: 0, Type: Direct Access df will quickly tell you about what file systems are mounted as advfs (so will mount) any advfs will have a device of domain#fileset eg. root_domain#root / You can use showfdmn root_domain to check out the root domain showfsets root_domain to see what file sets are in the given domain. Also if you look in /etc/fdmns any directory here is potentially a domain name (this is the only this that gives a domain a name no on disk structures or other complexities) so to rename a domain just mv the directory to another name in /etc/fdmns The structure next below this in /etc/fdmns just contains symbolic links back to the partition or lsm volume in /dev ls -lag /etc/fdmns/usr_domain# ls -lag /etc/fdmns/usr_domain total 16 drwxr-xr-x 2 root system 8192 Feb 14 08:46 . drwxr-xr-x 8 root system 8192 Jan 16 1997 .. lrwxrwxrwx 1 root system 9 Jan 16 1997 rz0g -> /dev/rz0g lrwxrwxrwx 1 root system 10 Jan 17 1997 rz10e -> /dev/rz10e lrwxr-xr-x 1 root system 9 Jan 16 1997 rz2h -> /dev/rz2h lrwxr-xr-x 1 root system 9 Jan 16 1997 rz8h -> /dev/rz8h There are no hidden mysteries with this one. Fileset name are on disk structure and you will need renamefset mkfset rmfset do manipulate filesets. Files are mounted by /etc/fstab you may also what to check out the GUI dtadvfs You should also get sys_check from Digitals web page it does a good job of canning a lot of these commands together to produce a html file describing a system and will also create /var/recovery with all of the disk labels etc so that this is available in the backup of the /var file system > > But in Dunix with Advfs and LSM... This is a few commands from the hip, if your also have LSM involved it appears as another layer between physical partitions and the filesystem. You may want to check out dxlsm but most of all get the manual on LSM and read it a few times then find somewhere to test what you have learnt in safety. LSM has two many ways of achieving a similar result and will allow you to create dangerous configs with out much or any warning that your standing to close to the edge. This is getting better each time they release a new version, but in anycase RTFM this one, don't skip out on the reading. Do a man on all of the command mentioned try running them, good luck. Cheers mark :)