Cuddletech系列VERITAS教程之二
32, 100448, 200864, 301280, 401696, 502112, 602528, 702944, 803360, 903776, 1004192, 1104608, 1205024, 1305440, 1405856, 1506272, 1606688, 1707104, 1807520, 1907936, 2008352, 2108768, 2209184, 2309600, 2410016, 2510432, snipped out #
Newfs创建了文件系统,和在普通磁盘分区上操作没什么区别。我们需要注意到,这个文件系统的大小为34.5G,我们使用的是4块9G的磁盘,所以,这是正确的。现在,我们要mount起新建文件系统,还是和平时操作相同。如果我们想mount新建volume到目录”/vxrocks”,用一下命令:
# mount /dev/vx/dsk/datavol /vxrocks #
就是这样啦!所有工作都完成啦。再一次强调,这是一种“艰苦的”方式。即使你很可能通常不用这个方法创建volume (我是使用这个方法的)但至少你需要理解对象(disk group, subdisk, plex, volume)是如何组合在一起的?以及它们之间是如何工作的?
第二课:Striped Volumes
请浏览下面的日志,看看你是否知道这是做什么的。我又从清除vmdisks开始,然后再来讨论它。开始吧:
# vxprint Disk group: rootdg
TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0 dg rootdg rootdg - - - - - -
dm disk01 c2t0d0s2 - 17678493 - - - - dm disk02 c2t1d0s2 - 17678493 - - - - dm disk03 c2t2d0s2 - 17678493 - - - - dm disk04 c2t6d0s2 - 17678493 - - - - # vxmake sd disk01-01 disk01,0,17678493 # vxmake sd disk02-01 disk02,0,17678493 # vxmake sd disk03-01 disk03,0,17678493 # vxmake sd disk04-01 disk04,0,17678493 # vxmake plex vol01-01 layout=stripe ncolumn=4 stwidth=32k sd=disk01-01,disk02- 01,disk03-01,disk04-01 # vxprint -hrt Disk group: rootdg
DG NAME NCONFIG NLOG MINORS GROUP-ID DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE 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 SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE
dg rootdg default default 0 952738334.1025.nexus6
dm disk01 c2t0d0s2 sliced 3590 17678493 - dm disk02 c2t1d0s2 sliced 3590 17678493 - dm disk03 c2t2d0s2 sliced 3590 17678493 - dm disk04 c2t6d0s2 sliced 3590 17678493 -
pl vol01-01 - DISABLED - 70714077 STRIPE 4/64 RW sd disk01-01 vol01-01 disk01 0 17678493 0/0 c2t0d0 ENA sd disk02-01 vol01-01 disk02 0 17678493 1/0 c2t1d0 ENA sd disk03-01 vol01-01 disk03 0 17678493 2/0 c2t2d0 ENA sd disk04-01 vol01-01 disk04 0 17678493 3/0 c2t6d0 ENA # # vxmake -U fsgen vol vol01 plex=vol01-01 # vxprint -hrt Disk group: rootdg
DG NAME NCONFIG NLOG MINORS GROUP-ID DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE 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 SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE
dg rootdg default default 0 952738334.1025.nexus6
dm disk01 c2t0d0s2 sliced 3590 17678493 - dm disk02 c2t1d0s2 sliced 3590 17678493 - dm disk03 c2t2d0s2 sliced 3590 17678493 - dm disk04 c2t6d0s2 sliced 3590 17678493 -
v vol01 fsgen DISABLED EMPTY 70713885 ROUND - pl vol01-01 vol01 DISABLED EMPTY 70714077 STRIPE 4/64 RW sd disk01-01 vol01-01 disk01 0 17678493 0/0 c2t0d0 ENA |