DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Adding hard disks

Adding hard disks -- example

This example uses the diskadd(1M) command to add a second disk with a single partition and two filesystems to the system.

    1 # diskadd 1
   

2 UX:diskadd: INFO: You have invoked the System V disk management (s5dm) 3 diskadd utility.

4 The purpose of this utility is to set up additional disk drives. 5 This utility can destroy the existing data on the disk. Do you wish 6 to continue? (Type y for yes or n for no followed by ENTER): y

7 The recommended default partitioning for your disk is: 8 a 100% "UNIX System" partition. 9 To select this, please type "y". To partition your disk 10 differently, type "n" and the "fdisk" program will let you 11 select other partitions. y

12 Surface analysis of your disk is recommended but not required. 13 Do you wish to skip surface analysis? (y/n) n

14 You will now be queried on the setup of your disk. After you 15 have determined which slices will be created, you will be 16 queried to designate the sizes of the various slices.

17 How many slices/filesystems do you want created on the disk (1 - 13)? 2

18 Please enter the absolute pathname (e.g., /home3) for 19 slice/filesystem 1 (1 - 32 chars)? /home3

20 Enter the filesystem type for this slice (vxfs,ufs,s5,sfs), type 'na' 21 if no filesystem is needed, or press <ENTER> to use the default (vxfs):

22 Specify the block size from the following list 23 (1024, 2048, 4096, 8192), or press <ENTER> to use the first one:

24 Should /home3 be automatically mounted during a reboot? 25 Type "no" to override auto-mount or press <ENTER> to enable the option:

26 Please enter the absolute pathname (e.g., /home3) for 27 slice/filesystem 2 (1 - 32 chars)? /usr2

28 Enter the filesystem type for this slice (vxfs,ufs,s5,sfs), type 'na' 29 if no filesystem is needed, or press <ENTER> to use the default (vxfs):

30 Specify the block size from the following list 31 (1024, 2048, 4096, 8192), or press <ENTER> to use the first one:

32 Should /usr2 be automatically mounted during a reboot? 33 Type "no" to override auto-mount or press <ENTER> to enable the option:

34 You will now specify the size in cylinders of each slice. 35 (One megabyte of disk space is approximately 1 cylinders.) 36 There are now 3074 cylinders available on your disk. 37 The filesystem type you have chosen is limited to 1048576 cylinders. 38 How many cylinders would you like for /home3 (0 - 3074)? 39 Press <ENTER> for 0 cylinders: 274

40 There are now 2800 cylinders available on your disk. 41 The filesystem type you have chosen is limited to 1048576 cylinders. 42 How many cylinders would you like for /usr2 (0 - 2800)? 43 Press <ENTER> for 0 cylinders: 2800

44 You have specified the following disk configuration: 45 A /home3 filesystem with 274 cylinders (274.0 MB) 46 A /usr2 filesystem with 2800 cylinders (2800.0 MB)

47 Is this allocation acceptable to you (y/n)? y

48 Filesystems will now be created on the needed slices

49 Creating the /home3 filesystem on /dev/rdsk/c0b0t1d0s1 50 Allocated approximately 70112 inodes for this file system. Specify a 51 new value or press <ENTER> to use the default:

52 Creating the /usr2 filesystem on /dev/rdsk/c0b0t1d0s2 53 Allocated approximately 716768 inodes for this file system. Specify a 54 new value or press <ENTER> to use the default:

55 UX:diskadd: INFO: Diskadd for Disk Drive 2 DONE at Fri Sep 05 14:47:16 EDT 1997

56 # df

57 / (/dev/root ): 4628818 blocks 616572 files 58 /proc (/proc ): 0 blocks 342 files 59 /stand (/dev/dsk/c0b0t0d0sa): 42954 blocks 79 files 60 /dev/fd (/dev/fd ): 0 blocks 0 files 61 /home (/dev/dsk/c0b0t0d0s4): 13026 blocks 1736 files 62 /home2 (/dev/dsk/c0b0t0d0sc): 13068 blocks 1740 files 63 /system/processor (/processorfs ): 0 blocks 0 files 64 /tmp (/tmp ): 14680 blocks 32123 files 65 /var/tmp (/var/tmp ): 61424 blocks 32765 files 66 /home3 (/dev/dsk/c0b0t1d0s1): 523908 blocks 69852 files 67 /usr2 (/dev/dsk/c0b0t1d0s2): 5372640 blocks 716348 files

line 1 Use ``1'' for a second disk. For other disks, the disk name is in the form cCbBtTdD. disk(7) provides information about this form.

line 9 If you type ``n'' the fdisk(1M) program is run and you can set up additional partitions (for example, a DOS partition).

line 13 Surface analysis is especially important for new, fresh disks.

line 14 Before answering these questions, determine how many filesystems you want to set up, what their names will be, and how much space they require.

line 23 1024 is default

line 56 The df command shows the new filesystems.


Previous topic: Adding hard disks

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 22 April 2004