IBM s/390 manual Second disk planning

Page 53

We partitioned the disk with fdisk and formatted it:

# fdisk /dev/hdc

 

 

 

 

 

n

 

 

(fdisk option to add a partition)

Command action: p

 

 

(a primary partition)

Partition number: 1

 

 

 

 

First cylinder (1-66144): 1

(default = 1)

 

Last cylinder (1-66144): 4140

(this makes a partition of about 2 GB)

n

 

 

(fdisk option to add a partition)

Command action: p

 

 

(another primary partition)

First cylinder (4141-66144): 4141

 

 

 

Last cylinder (4141-66144): 66144

 

 

 

p

 

 

(print the partition table)

Device Boot

Start

End

Blocks

ID

System

/dev/hdc1

1

4140

1956118+

83

Linux native

/dev/hdc2

1414

66144

29296880

83

Linux native

(if the ID is not 83 = Linux native, use the t option to change it)

t

 

 

(fdisk option to change partition ID)

Partition number: 1

 

 

 

 

Hex code: 83

 

 

(83 is Linux native)

t

 

 

 

 

 

Partition number: 2

 

 

 

 

Hex code: 83

 

 

 

 

 

p

 

 

(fdisk option to list partitions)

w

 

 

(fdisk option to write partition table and end)

# mkdir /s391

 

 

(create a mount point, if not already done)

# mkdir /holding

 

 

 

 

 

# mke2fs /dev/hdc1

 

 

(format a file system)

# mke2fs /dev/hdc2

 

 

(format the other file system)

# mount /dev/hdc1 /holding

 

(mount it for Linux use)

#mount /dev/hdc2 /s391

#chown flexes:flexes /holding (change owner and group identities)

#chown flexes:flexes /s391

We used the new disk space to confirm that it worked, and then edited /etc/fstab to cause the new file systems to be automatically mounted at boot time. (There are no unwanted effects if the second hard disk is not present when Linux is booted; the file systems on that disk are simply not mounted.) We added two lines at the end of fstab:

LABEL=/

/

ext2

defaults

1

1

LABEL=/boot

/boot

ext2

defaults

1

2

/dev/fd0

/mnt/floppy

auto

noauto,owner

0

0

LABEL=/s390

/s390

ext2

defaults

0

0

none

/proc

proc

defaults

0

0

none

/dev/pts

devpts gid=5,mode=620

0

0

/dev/hda7

swap

swap

defaults

0

0

/dev/hdc1

/holding

ext2

defaults

0

0

/dev/hdc2

/s391

ext2

defaults

0

0

5.5.2 Second disk planning

It is unlikely that the second hard drive will always be installed when FLEX-ES is running. Although OS/390 does not use the CD-ROM drive or the diskette drive (the other possible occupants of the Ultrabay), you may find it inconvenient to shut down the ThinkPad to remove the CD-ROM drive or diskette drive and insert the second hard disk drive every time you want to run FLEX-ES.

Chapter 5. Additional Topics

43

Image 53
Contents Bill Ogden ThinkPad Enabled for S/390Page International Technical Support Organization First Edition October Contents Shutting down Index Vi S/390 PID ThinkPad Enabled for S/390 Author Special noticeComments welcome IBM trademarksIntroduction ThinkPad/EFS systems Purpose of this redbookFLEX-ES Positioning with other small S/390s LinuxThinkPad/EFS hardware used Terminology Disk planning System and Linux installationDifferences ThinkPad Linux installationPartition Manually Partition Mount Point Device Requested Actual Type Purpose12.17.210 Device Partition Type Default Boot255.255.255.0 12.17.150Gnome Monitor Setup IBM 9513 T55A TFT No clock chip 24 bit Installation notesSelect Start X automatically # df -h# kill -s USR1 pidnumber PID number for xinetd Etc/xinetd.d # vi telnet# ps -ef grep xinetd 14 S/390 PID ThinkPad Enabled for S/390 FLEX-ES and OS/390 installation Brief introduction FLEX-ESPC Processor in ThinkPad Page Installation Installing the FLEX-ES license key Next steps OS/390 AD systemsAD systems # mkdir /s391Basic CD-ROM formats 2 OS/390 on CD-ROMFLEX-ES formats 3 OS/390 device configurationUnzipping and installing Awsckd CD-ROM files Installation tasksAn unzip program Mount /dev/cdrom /mnt/cdromFile ownership Minor problemsFiles unzip in wrong order Volume in two separate zip filesFLEX-ES Operation Comments FLEX-ES system and resource definitions$ cd /usr/flexes/rundir Building a shell script# resadm -s R10A.rescf $ resadm -r$ sh shos Flexes ipl a80 0a82cs =stor IPL OS/390Terminal Solicitor User terminal connection Operation and use11.42.47 A80,8Iodf requirements Linux TN3270System performance monitors Rmf5 TCP/IP for OS/390 # resadm -T Shutting down# resadm -k # exit36 S/390 PID ThinkPad Enabled for S/390 Additional Topics Basic debugging Server memory Operating Systems Messages consoleSecurity Vmstat command CPU Importance of Linux swapping# cat /proc/partitions Using a second Linux hard diskUltrabay Second disk planning Device Volser Addr Use Disk layout AD systemPartition Mount Size Use Alternative method FLEX-ES FakeTape on OS/390222222 560Multi-system setup $ x3270 -model 3 -keymap pc -port tn3270 localhost X3270 client$ x3270 -model 3 -keymap pc -port tn3270 localhostt91f Function Keys Used# vi # cd /usr/lib/X11/app-defaults # cp X3270 X3270oldRemote resources System B Disk cachesWrites Cache Hits FSI Channel Adapters Tuning cachesizeDisk fragmentation Backup and restore considerationsScsi adapter for the ThinkPad $ tar -cvzf /holding/OS39RA.tarz /s390/OS39RA Using tar to back up S/390 volumes$ cd /usr/flexes/rundir $ sh buOS39RAc Using tar and ftpCD-RW drive 16 S/390 identificationRAS discussion Display PSW and registersLinux windows Verify ckd diskThinkPad power control Installing FLEX-ES upgradesCommon commands Useful Linux commandsText editors Multiple consoles, sessions, screens62 S/390 PID ThinkPad Enabled for S/390 Frequently asked questions 64 S/390 PID ThinkPad Enabled for S/390 Frequently asked questions 66 S/390 PID ThinkPad Enabled for S/390 Frequently asked questions 68 S/390 PID ThinkPad Enabled for S/390 Basic definitions for a single HDD Appendix A. FLEX-ES definition listingsShell script for a single HDD Definitions for two HDDs Shell script for two HDDs System definitions Appendix B. FLEX-ES parametersCpu0 Cpu1 Cpu2 Emulated control unit types Resource definitionsTypical resource definitions Emulated device typesCKD disk resources Terminal resources LAN resources Tape resourcesCloned devices Common rules Resadm commandCLI commands 560 Home/tape3 Flexes mount A90 S390/WORK01710 Altcons 84 S/390 PID ThinkPad Enabled for S/390 Special notices 86 S/390 PID ThinkPad Enabled for S/390 IBM Redbooks How to get IBM RedbooksReferenced Web sites Other resourcesIBM Redbooks collections Index Pipe Port Power control Terminal logo Terminal Solicitor 16, 18, 31, 39, 65 92 S/390 PID ThinkPad Enabled for S/390 Partners in Development ThinkPad Enabled for S/390 Page Page System setup AD CD-ROM use System operation ThinkPad Enabled for S/390