• No se han encontrado resultados

Diario El Comercio

CESIONES DE DERECHOS DE BENEFICIARIOS

Device Node Creation

Use the “mkdev hd” command twice; once to create a kernel entry and, after rebooting, a second time to create device nodes and filesystems for the USB hard drive, flash drive, or disk cartridge drive. After that, fdisk and divvy should be run individually on any additional drives or

cartridges.

# mkdev hd

Reboot the computer and log back in as root.

NOTE: Microlite does not support the use of SATA disk cartridge based drives as backup devices. This is because the OpenServer 5 “wd” driver cannot reference the drive during the second phase of the “mkdev hd” operation.

Your root hard disk is attached to an IDE controller. Pick one of the choices below or you may quit and invoke mkdev hd -u for a detailed usage message.

1) Add a hard disk to an IDE controller 2) Add a hard disk to a SCSI controller

3) Add a hard disk to an IDA controller (EISA) 4) Add a hard disk to a USB controller

Enter 1, 2, 3, 4 or enter 'q' to quit: 4

The Host Adapter parameters will be automatically configured What is the USB Device ID for this device?

Select 0-15, or h for help, or q to quit: 0 What is the LUN of this device?

Press <Return> to use the default: 0 Select 0-7, or h for help, or q to quit: 0 You are about to add the following USB device: USB Hard Disk configured as USB Device ID 0, LUN 0 Update USB configuration? (y/n) y

The USB configuration file has been updated.

Disk already configured as disk number 1 (/dev/dsk/1s0)

A new kernel must be built and rebooted before disk configuration can continue.

Would you like to relink at this time? (y/n) y

The UNIX Operating System will now be rebuilt. This will take a few minutes. Please wait. Root for this system build is /

The UNIX Kernel has been rebuilt.

Do you want this kernel to boot by default? (y/n) y Backing up unix to unix.old

Installing new unix on the boot file system

The kernel environment includes device node files and /etc/inittab. The new kernel may require changes to /etc/inittab or device nodes. Do you want the kernel environment rebuilt? (y/n) y

The kernel has been successfully linked and installed. To activate it, reboot your system.

Setting up new kernel environment

After the system is rebooted with the new kernel, reinvoke mkdev hd to initialize the new hard disk.

# mkdev hd

Your root hard disk is attached to an IDE controller. Pick one of the choices below or you may quit and invoke mkdev hd -u for a detailed usage message.

1) Add a hard disk to an IDE controller 2) Add a hard disk to a SCSI controller

3) Add a hard disk to an IDA controller (EISA) 4) Add a hard disk to a USB controller

Enter 1, 2, 3, 4 or enter 'q' to quit: 4

The Host Adapter parameters will be automatically configured What is the USB Device ID for this device?

Select 0-15, or h for help, or q to quit: 0 What is the LUN of this device?

Press <Return> to use the default: 0 Select 0-7, or h for help, or q to quit: 0

Disk already configured as disk number 1 (/dev/dsk/1s0) During installation you may choose to overwrite all or part of the present contents of your hard disk. Do you wish to continue? (y/n) y

The hard disk installation program will now invoke /etc/fdisk. Entering 'q' at the following menu will exit /etc/fdisk,

and the hard disk installation will continue.

If you wish to exit the entire installation at this menu, press the <DEL> key.

1. Display Partition Table 2. Use Entire Disk for UNIX 3. Use Rest of Disk for UNIX 4. Create UNIX Partition 5. Activate Partition 6. Delete Partition 7. Create Partition

Enter your choice or 'q' to quit: 2 Current Hard Disk Drive: /dev/rdsk/1s0

+---+---+---+---+---+---+ | Partition | Status | Type | Start | End | Size | +---+---+---+---+---+---+ | 1 | Active | UNIX | 1 | 3720959 | 3720959 | +---+---+---+---+---+---+ Total disk size: 3721215 tracks (256 reserved for masterboot and diagnostics) Press <Return> to continue Enter

1. Display Partition Table 2. Use Entire Disk for UNIX 3. Use Rest of Disk for UNIX 4. Create UNIX Partition 5. Activate Partition 6. Delete Partition 7. Create Partition

There are 117202207 blocks in the UNIX area.

Please enter the number of file systems you want this area

to be divided into, or press <Return> to get the default of 7 file system(s) 1

The layout of the filesystems and swap area is now prepared. Do you wish to make any manual adjustments to the sizes or names of the filesystems or swap area before they are created on the hard disk? (y/n) y

+---+---+---+---+---+---+ | Name | Type | New FS | # | First Block | Last Block | +---+---+---+---+---+---+ | d45050 | HTFS | yes | 0 | 0| 117202206| | | NOT USED | no | 1 | -| -| | | NOT USED | no | 2 | -| -| | | NOT USED | no | 3 | -| -| | | NOT USED | no | 4 | -| -| | | NOT USED | no | 5 | -| -| | | NOT USED | no | 6 | -| -| | d45057all | WHOLE DISK | no | 7 | 0| 117210207| +---+---+---+---+---+---+ 117202207 1K blocks for divisions, 8001 1K blocks reserved for the system n[ame] Name or rename a division.

c[reate] Create a new file system on this division. d[elete] Delete a file system on this division.

t[ype] Select or change filesystem type on new filesystems.

p[revent] Prevent a new file system from being created on this division. s[tart] Start a division on a different block.

e[nd] End a division on a different block. r[estore] Restore the original division table. Enter your choice or q to quit: n

which division? (0 through 7)?0 what do you want to call it? backups

+---+---+---+---+---+---+ | Name | Type | New FS | # | First Block | Last Block | +---+---+---+---+---+---+ | backups | HTFS | yes | 0 | 0| 117202206| | | NOT USED | no | 1 | -| -| | | NOT USED | no | 2 | -| -| | | NOT USED | no | 3 | -| -| | | NOT USED | no | 4 | -| -| | | NOT USED | no | 5 | -| -| | | NOT USED | no | 6 | -| -| | d45057all | WHOLE DISK | no | 7 | 0| 117210207| +---+---+---+---+---+---+ 117202207 1K blocks for divisions, 8001 1K blocks reserved for the system n[ame] Name or rename a division.

c[reate] Create a new file system on this division. d[elete] Delete a file system on this division.

t[ype] Select or change filesystem type on new filesystems.

p[revent] Prevent a new file system from being created on this division. s[tart] Start a division on a different block.

e[nd] End a division on a different block. u[ndo] Undo the last change.

r[estore] Restore the original division table. Enter your choice or q to quit: q

i[nstall] Install the division set-up shown r[eturn] Return to the previous menu

e[xit] Exit without installing a division table Please enter your choice: i

Making filesystems

Please note that it may take a while to create a new filesystem on a large USB hard drive.

Device Node Identification

For this example, the hard drive used was only the second hard drive on the system and the first USB device instance, so that in the commands above the controller is 0 and the LUN is 0, yielding the following useful nodes:

Description Device Node

Raw device node - Entire disk - Used for fdisk /dev/rdsk/1s0 Block Device Node - Entire disk - used in af Resource & RecoverEDGE. /dev/dsk/1s0 Block Device Node - Entire disk - used for divvy command /dev/dsk/1s0 Block Device Node - Partition 1 - Disk Partition used for backups

Creating Partitions on (additional drives / cartridges)

Initial preparation would have created an fdisk partition, divvy table and filesystem on the drive or disk cartridge connected at the time of configuration above. For each additional drive or cartridge, you must...

1 Run “fdisk -f /dev/rdsk/1s0” to configure the drive.

2 Run “divvy -m /dev/dsk/1s0” to configure as 1 partition and create a new filesystem.

Your hard disk drives, cartridges and filesystems are now prepared. Use the correct nodes in

EDGEMENU to create a new AF Resource. 1. Display Partition Table 2. Use Entire Disk for UNIX 3. Use Rest of Disk for UNIX 4. Create UNIX Partition 5. Activate Partition 6. Delete Partition 7. Create Partition

Enter your choice or 'q' to quit: 2 Current Hard Disk Drive: /dev/rdsk/1s0

+---+---+---+---+---+---+ | Partition | Status | Type | Start | End | Size | +---+---+---+---+---+---+ | 1 | Active | UNIX | 1 | 2441535 | 2441535 | +---+---+---+---+---+---+ Total disk size: 2441600 tracks (65 reserved for masterboot and diagnostics) Press <Return> to continue Enter

1. Display Partition Table 2. Use Entire Disk for UNIX 3. Use Rest of Disk for UNIX 4. Create UNIX Partition 5. Activate Partition 6. Delete Partition 7. Create Partition

Enter your choice or 'q' to quit: q

There are 39063552 blocks in the UNIX area.

Please enter the number of file systems you want this area

to be divided into, or press <Return> to get the default of 7 file system(s) 1

The layout of the filesystems and swap area is now prepared. Do you wish to make any manual adjustments to the sizes or names of the filesystems or swap area before they are created on the hard disk? (y/n) n

Completed AF Example Resource.

The Mount Device Node and Exclude Node are critical. Get the Mount Device Node wrong

and you can’t make backups. Get the Exclude Node wrong and RecoverEDGE won’t know to

always exclude this device from (being erased) during disaster recovery.

Remember to create a matching Attached Filesystem (af) Resource, as shown i.n “Setting Up a FileSystem Partition Resource” on page 157, and associate it with the AF.

Insert each cartridge, or plug in each drive to be used, and use the initialization command in edgemenu to prepare the drive or cartridge to accept a BackupEDGE archive.