Adding DASD
239
Procedure 22.1. Bringing a disk online
1. Use the
cd
command to change to the
/sys/
directory that represents that volume:
# cd /sys/bus/ccw/drivers/dasdeckd/0.0.4b2e/
# ls l
total 0
rrr 1 root root 4096 Aug 25 17:04 availability
rwrr 1 root root 4096 Aug 25 17:04 cmb_enable
rrr 1 root root 4096 Aug 25 17:04 cutype
rwrr 1 root root 4096 Aug 25 17:04 detach_state
rrr 1 root root 4096 Aug 25 17:04 devtype
rrr 1 root root 4096 Aug 25 17:04 discipline
rwrr 1 root root 4096 Aug 25 17:04 online
rwrr 1 root root 4096 Aug 25 17:04 readonly
rwrr 1 root root 4096 Aug 25 17:04 use_diag
2. Next, check to see if it is already online:
# cat online
0
3. If it is not online, run the following command to bring it online:
# echo 1 > online
# cat online
1
4. Verify which block devnode it is being accessed as:
# ls l
total 0
rrr 1 root root 4096 Aug 25 17:04 availability
lrwxrwxrwx 1 root root 0 Aug 25 17:07 block > ../../../../block/dasdb
rwrr 1 root root 4096 Aug 25 17:04 cmb_enable
rrr 1 root root 4096 Aug 25 17:04 cutype
rwrr 1 root root 4096 Aug 25 17:04 detach_state
rrr 1 root root 4096 Aug 25 17:04 devtype
rrr 1 root root 4096 Aug 25 17:04 discipline
rwrr 1 root root 0 Aug 25 17:04 online
rwrr 1 root root 4096 Aug 25 17:04 readonly
rwrr 1 root root 4096 Aug 25 17:04 use_diag
As shown in this example, device 4B2E is being accessed as
/dev/dasdb
.
As an alternative, the recommended method for bringing a disk online (automatically) is to use the
following simple command:
# chccwdev e 4b2e
Once the disk is online, change back to the
/root
directory and format the device:
# cd
# dasdfmt b 4096 d cdl f /dev/dasdb l LX4B2E p y
cyl 97 of 3338 |#| 2%
Содержание ENTERPRISE LINUX 5 - VIRTUAL SERVER ADMINISTRATION
Страница 12: ...xii ...
Страница 20: ......
Страница 30: ...12 ...
Страница 32: ...14 ...
Страница 82: ...64 ...
Страница 106: ...88 ...
Страница 122: ...104 ...
Страница 124: ...106 ...
Страница 126: ......
Страница 132: ...114 ...
Страница 168: ...150 ...
Страница 182: ...164 ...
Страница 192: ...174 ...
Страница 194: ......
Страница 236: ...218 ...
Страница 238: ...220 ...
Страница 270: ......
Страница 274: ...256 ...
Страница 278: ...260 ...
Страница 292: ...274 ...
Страница 294: ......
Страница 300: ...282 ...
Страница 304: ......
Страница 316: ...298 ...
Страница 357: ...Creating Partitions 339 Figure 32 7 Creating a Software RAID Device 4 Click OK to add the device to the list ...
Страница 370: ...352 ...
Страница 384: ...366 ...
Страница 385: ...Part VII Appendix ...
Страница 386: ......