Note that the first 28 questions have answers related to using the command line. Sun do not normally support this method of bottom up creation of volumes. An explanation of why can be seen in Q97. The questions are designed to give you an idea of what goes on in the background. However, if at all possible, use the GUI.
----
1. How do I create a disk group ?
2. How do I create a a subdisk ?
3. How do I split a subdisk into 2 or more subdisks ?
4. How do I create a concat plex from two subdisks ?
5. How do I create a volume from a plex ?
6. What this volume looks like from a vxprint -Ath output
7. How do I start this volume ?
8. What this volume looks like from a vxprint -Ath output
9. How do I make this a mirrored volume ?
10. What this volume looks like from a vxprint -Ath output during mirror sync ?
11. What this volume looks like from a vxprint -Ath output after mirror ?
12. How do I blow away a mirrored volume ?
13. How do I blow away the subdisks ?
14. How do I attaching a plex to another plex in a volume ?
15. What this volume looks like from a vxprint -Ath output during attach ?
16. What does this volume look like from a vxprint -Ath output after attach ?
17. How do I detach a plex from a volume ?
18. What does this volume look like from a vxprint -Ath output after attach ?
19. How do I disassociate a plex from a volume ?
20. How do I add a disk into my disk group ?
21. How do I create a RAID5 volume ?
22. How does the vxprint -Ath for a RAID 5 volume look during the build ?
23. How does the vxprint -Ath for a RAID 5 volume look after the build ?
24. How do I get information about a RAID5 volume ?
25. How do I build a hot-spare ?
26. How does a hot spare look in vxprint -Ath
27. How do I make this volume a filesystem and mount it ?
28. How does a RAID 5 volume look if we loose a sub-disk ?
----1. How do I create a disk group ?
/usr/sbin/vxdg init
2. How do I create a a subdisk ?
/usr/sbin/vxmake -g
3. How do I split a subdisk into 2 or more subdisks ?
/usr/sbin/vxsd -g
4. How do I create a concat plex from two subdisks ?
/usr/sbin/vxmake -g
5. How do I create a volume from a plex ?
/usr/sbin/vxmake -U fsgen -g
6. What this volume looks like from a vxprint -Ath output
V | NAME | USETYPE | KSTATE | STATE | LENGTH | READPOL | PREFPLEX | |
PL | NAME | VOLUME | KSTATE | STATE | LENGTH | LAYOUT | NCOL/WID | MODE |
SD | NAME | PLEX | DISK | DISKOFFS | LENGTH | [COL/]OFF | DEVICE | MODE |
v | vol01 | fsgen | DISABLED | CLEAN | 4305279 | SELECT | - | |
pl | pl-01 | vol01 | DISABLED | CLEAN | 4305279 | CONCAT | - | RW |
sd | disk01-01 | pl-01 | disk01 | 0 | 4152639 | 0 | c1t5d0 | ENA |
sd | disk02-01 | pl-01 | disk02 | 0 | 152640 | 4152639 | c1t3d0 | ENA |
7. How do I start this volume ?
/usr/sbin/vxvol -g
8. What this volume looks like from a vxprint -Ath output
V | NAME | USETYPE | KSTATE | STATE | LENGTH | READPOL | PREFPLEX | |
PL | NAME | VOLUME | KSTATE | STATE | LENGTH | LAYOUT | NCOL/WID | MODE |
SD | NAME | PLEX | DISK | DISKOFFS | LENGTH | [COL/]OFF | DEVICE | MODE |
v | vol01 | fsgen | ENABLED | ACTIVE | 4305279 | SELECT | - | |
pl | pl-01 | vol01 | ENABLED | ACTIVE | 4305279 | CONCAT | - | RW |
sd | disk01-01 | pl-01 | disk01 | 0 | 4152639 | 0 | c1t5d0 | ENA |
sd | disk02-01 | pl-01 | disk02 | 0 | 152640 | 4152639 | c1t3d0 | ENA |
9. How do I make this a mirrored volume ?
/usr/sbin/vxassist -g
10. What this volume looks like from a vxprint -Ath output during mirror sync ?
V | NAME | USETYPE | KSTATE | STATE | LENGTH | READPOL | PREFPLEX | |
PL | NAME | VOLUME | KSTATE | STATE | LENGTH | LAYOUT | NCOL/WID | MODE |
SD | NAME | PLEX | DISK | DISKOFFS | LENGTH | [COL/]OFF | DEVICE | MODE |
v | vol01 | fsgen | ENABLED | ACTIVE | 4305279 | SELECT | - | |
pl | vol01-01 | vol01 | ENABLED | TEMPRMSD | 4306160 | CONCAT | - | WO |
sd | disk04-01 | vol01-01 | disk04 | 0 | 153520 | 0 | c1t1d0 | ENA |
sd | disk03-01 | vol01-01 | disk03 | 0 | 4152640 | 153520 | c1t4d0 | ENA |
pl | pl-01 | vol01 | ENABLED | ACTIVE | 4305279 | CONCAT | - | RW |
sd | disk01-01 | pl-01 | disk01 | 0 | 4152639 | 0 | c1t5d0 | ENA |
sd | disk02-01 | pl-01 | disk02 | 0 | 152640 | 4152639 | c1t3d0 | ENA |
11. What this volume looks like from a vxprint -Ath output after mirror ?
V | NAME | USETYPE | KSTATE | STATE | LENGTH | READPOL | PREFPLEX | |
PL | NAME | VOLUME | KSTATE | STATE | LENGTH | LAYOUT | NCOL/WID | MODE |
SD | NAME | PLEX | DISK | DISKOFFS | LENGTH | [COL/]OFF | DEVICE | MODE |
v | vol01 | fsgen | ENABLED | ACTIVE | 4305279 | SELECT | - | |
pl | vol01-01 | vol01 | ENABLED | ACTIVE | 4306160 | CONCAT | - | RW |
sd | disk04-01 | vol01-01 | disk04 | 0 | 153520 | 0 | c1t1d0 | ENA |
sd | disk03-01 | vol01-01 | disk03 | 0 | 4152640 | 153520 | c1t4d0 | ENA |
pl | pl-01 | vol01 | ENABLED | ACTIVE | 4305279 | CONCAT | - | RW |
sd | disk01-01 | pl-01 | disk01 | 0 | 4152639 | 0 | c1t5d0 | ENA |
sd | disk02-01 | pl-01 | disk02 | 0 | 152640 | 4152639 | c1t3d0 | ENA |
12. How do I blow away a mirrored volume ?
/usr/sbin/vxedit -g
13. How do I blow away the subdisks ?
/usr/sbin/vxedit -g
14. How do I attaching a plex to another plex in a volume ?
/usr/sbin/vxplex -g
15. What this volume looks like from a vxprint -Ath output during attach ?
V | NAME | USETYPE | KSTATE | STATE | LENGTH | READPOL | PREFPLEX | |
PL | NAME | VOLUME | KSTATE | STATE | LENGTH | LAYOUT | NCOL/WID | MODE |
SD | NAME | PLEX | DISK | DISKOFFS | LENGTH | [COL/]OFF | DEVICE | MODE |
v | vol01 | fsgen | ENABLED | ACTIVE | 2000000 | SELECT | - | |
pl | Cor-Plex | vol01 | ENABLED | ACTIVE | 2000000 | CONCAT | - | RW |
sd | disk-01 | Cor-Plex | disk01 | 0 | 1000000 | 0 | c1t5d0 | ENA |
sd | disk-02 | Cor-Plex | disk02 | 0 | 1000000 | 1000000 | c1t3d0 | ENA |
pl | Cor-Plex-2 | vol01 | ENABLED | TEMP | 2000000 | CONCAT | - | WO |
sd | disk-01-2 | Cor-Plex-2 | disk01 | 1000000 | 1000000 | 0 | c1t5d0 | ENA |
sd | disk-02-2 | Cor-Plex-2 | disk02 | 1000000 | 1000000 | 1000000 | c1t3d0 | ENA |
16. What does this volume look like from a vxprint -Ath output after attach ?
V | NAME | USETYPE | KSTATE | STATE | LENGTH | READPOL | PREFPLEX | |
PL | NAME | VOLUME | KSTATE | STATE | LENGTH | LAYOUT | NCOL/WID | MODE |
SD | NAME | PLEX | DISK | DISKOFFS | LENGTH | [COL/]OFF | DEVICE | MODE |
v | vol01 | fsgen | ENABLED | ACTIVE | 2000000 | SELECT | - | |
pl | Cor-Plex | vol01 | ENABLED | ACTIVE | 2000000 | CONCAT | - | RW |
sd | disk-01 | Cor-Plex | disk01 | 0 | 1000000 | 0 | c1t5d0 | ENA |
sd | disk-02 | Cor-Plex | disk02 | 0 | 1000000 | 1000000 | c1t3d0 | ENA |
pl | Cor-Plex-2 | vol01 | ENABLED | ACTIVE | 2000000 | CONCAT | - | RW |
sd | disk-01-2 | Cor-Plex-2 | disk01 | 1000000 | 1000000 | 0 | c1t5d0 | ENA |
sd | disk-02-2 | Cor-Plex-2 | disk02 | 1000000 | 1000000 | 1000000 | c1t3d0 | ENA |
17. How do I detach a plex from a volume ?
usr/sbin/vxplex -g
18. What does this volume look like from a vxprint -Ath output after attach ?
V | NAME | USETYPE | KSTATE | STATE | LENGTH | READPOL | PREFPLEX | |
PL | NAME | VOLUME | KSTATE | STATE | LENGTH | LAYOUT | NCOL/WID | MODE |
SD | NAME | PLEX | DISK | DISKOFFS | LENGTH | [COL/]OFF | DEVICE | MODE |
v | vol01 | fsgen | ENABLED | ACTIVE | 2000000 | SELECT | - | |
pl | Cor-Plex | vol01 | ENABLED | ACTIVE | 2000000 | CONCAT | - | RW |
sd | disk-01 | Cor-Plex | disk01 | 0 | 1000000 | 0 | c1t5d0 | ENA |
sd | disk-02 | Cor-Plex | disk02 | 0 | 1000000 | 1000000 | c1t3d0 | ENA |
pl | Cor-Plex-2 | vol01 | DETACHED | STALE | 2000000 | CONCAT | - | RW |
sd | disk-01-2 | Cor-Plex-2 | disk01 | 1000000 | 1000000 | 0 | c1t5d0 | ENA |
sd | disk-02-2 | Cor-Plex-2 | disk02 | 1000000 | 1000000 | 1000000 | c1t3d0 | ENA |
19. How do I disassociate a plex from a volume ?
usr/sbin/vxplex -g
sd | disk-01-2 | Cor-Plex-2 | disk01 | 1000000 | 1000000 | 0 | c1t5d0 | ENA |
sd | disk-02-2 | Cor-Plex-2 | disk02 | 1000000 | 1000000 | 1000000 | c1t3d0 | ENA |
20. How do I add a disk into my disk group ?
/usr/sbin/vxdg -g
21. How do I create a RAID5 volume ?
/usr/sbin/vxassist -g
This returns the maximum size (8304640) of the volume which can be used in the following command.
/usr/sbin/vxassist -g
22. How does the vxprint -Ath for a RAID 5 volume look during the build ?
v | vol-r5 | raid5 | DETACHED | EMPTY | 12456192 | RAID | - | |
pl | vol-r5-01 | vol-r5 | ENABLED | EMPTY | 12457728 | RAID | 4/128 | RW |
sd | disk04-01 | vol-r5-01 | disk04 | 0 | 4152640 | 0/0 | c1t1d0 | ENA |
sd | disk02-01 | vol-r5-01 | disk02 | 0 | 4152640 | 1/0 | c1t3d0 | ENA |
sd | disk03-01 | vol-r5-01 | disk03 | 0 | 4152640 | 2/0 | c1t4d0 | ENA |
sd | disk01-01 | vol-r5-01 | disk01 | 0 | 4152640 | 3/0 | c1t5d0 | ENA |
pl | vol-r5-02 | vol-r5 | ENABLED | EMPTY | 5600 | CONCAT | - | RW |
sd | disk05-01 | vol-r5-02 | disk05 | 0 | 5600 | 0 | c1t2d2 | ENA |
23. How does the vxprint -Ath for a RAID 5 volume look after the build ?
v | vol-r5 | raid5 | ENABLED | ACTIVE | 12456192 | RAID | - | |
pl | vol-r5-01 | vol-r5 | ENABLED | ACTIVE | 12457728 | RAID | 4/128 | RW |
sd | disk04-01 | vol-r5-01 | disk04 | 0 | 4152640 | 0/0 | c1t1d0 | ENA |
sd | disk02-01 | vol-r5-01 | disk02 | 0 | 4152640 | 1/0 | c1t3d0 | ENA |
sd | disk03-01 | vol-r5-01 | disk03 | 0 | 4152640 | 2/0 | c1t4d0 | ENA |
sd | disk01-01 | vol-r5-01 | disk01 | 0 | 4152640 | 3/0 | c1t5d0 | ENA |
pl | vol-r5-02 | vol-r5 | ENABLED | LOG | 5600 | CONCAT | - | RW |
sd | disk05-01 | vol-r5-02 | disk05 | 0 | 5600 | 0 | c1t2d2 | ENA |
24. How do I get information about a RAID5 volume ?
/usr/sbin/vxinfo -U raid5 -g
25. How do I build a hot-spare ?
/usr/sbin/vxedit -g
26. How does a hot spare look in vxprint -Ath
DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE
dm disk06 c1t5d1s2 sliced 66079 978880 SPARE
27. How do I make this volume a filesystem and mount it ?
/usr/sbin/mkfs /dev/vx/rdsk/
/usr/sbin/mount /dev/vx/dsk/
28. How does a RAID 5 volume look if we loose a sub-disk ?
v | vol-r5 | raid5 | ENABLED | ACTIVE | 12456192 | RAID | - | |
pl | vol-r5-01 | vol-r5 | ENABLED | ACTIVE | 12457728 | RAID | 4/128 | RW |
sd | disk04-01 | vol-r5-01 | disk04 | 0 | 4152640 | 0/0 | c1t1d0 | ENA |
sd | disk02-01 | vol-r5-01 | disk02 | 0 | 4152640 | 1/0 | - | NDEV |
sd | disk03-01 | vol-r5-01 | disk03 | 0 | 4152640 | 2/0 | c1t4d0 | ENA |
sd | disk01-01 | vol-r5-01 | disk01 | 0 | 4152640 | 3/0 | c1t5d0 | ENA |
pl | vol-r5-02 | vol-r5 | ENABLED | LOG | 5600 | CONCAT | - | RW |
sd | disk05-01 | vol-r5-02 | disk05 | 0 | 5600 | 0 | c1t2d2 | ENA |
No comments:
Post a Comment