11.01.2015 Views

Red Hat Enterprise Linux Installation Guide 5.2 - linux.meuhobby.com

Red Hat Enterprise Linux Installation Guide 5.2 - linux.meuhobby.com

Red Hat Enterprise Linux Installation Guide 5.2 - linux.meuhobby.com

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Adding DASD<br />

total 0<br />

-r--r--r-- 1 root root 4096 Aug 25 17:04 availability<br />

lrwxrwxrwx 1 root root 0 Aug 25 17:07 block -> ../../../../block/dasdb<br />

-rw-r--r-- 1 root root 4096 Aug 25 17:04 cmb_enable<br />

-r--r--r-- 1 root root 4096 Aug 25 17:04 cutype<br />

-rw-r--r-- 1 root root 4096 Aug 25 17:04 detach_state<br />

-r--r--r-- 1 root root 4096 Aug 25 17:04 devtype<br />

-r--r--r-- 1 root root 4096 Aug 25 17:04 discipline<br />

-rw-r--r-- 1 root root 0 Aug 25 17:04 online<br />

-rw-r--r-- 1 root root 4096 Aug 25 17:04 readonly<br />

-rw-r--r-- 1 root root 4096 Aug 25 17:04 use_diag<br />

As shown in this example, device 4B2E is being accessed as /dev/dasdb.<br />

As an alternative, the re<strong>com</strong>mended method for bringing a disk online (automatically) is to use<br />

the following simple <strong>com</strong>mand:<br />

# chccwdev -e 4b2e<br />

Once the disk is online, change back to the /root directory and format the device:<br />

# cd<br />

# dasdfmt -b 4096 -d cdl -f /dev/dasdb -l LX4B2E -p -y<br />

cyl 97 of 3338 |#----------------------------------------------| 2%<br />

When the progress bar reaches the end and the format is <strong>com</strong>plete, use fdasd to partition the<br />

device:<br />

# fdasd -a /dev/dasdb<br />

auto-creating one partition for the whole disk...<br />

writing volume label...<br />

writing VTOC...<br />

checking !<br />

wrote NATIVE!<br />

rereading partition table...<br />

Next, make a file system on the new partition:<br />

# mke2fs -j /dev/dasdb1<br />

mke2fs 1.35 (28-Feb-2004)<br />

Filesystem label=<br />

OS type: <strong>Linux</strong><br />

Block size=4096 (log=2)<br />

Fragment size=4096 (log=2)<br />

300960 inodes, 600816 blocks<br />

30040 blocks (5.00%) reserved for the super user<br />

231

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!