1. veritas volume manager ġ.
1-1. rootdg Ƽ .
#format
rootdg ġ c0t0d0s7 ġ ϵ ϰڽϴ.
2. ּ Ѱ ̻ rootdg .
- ּ Ѱ ̻ rootdg ϴ vxconfigd ؼ Ѱ ̻ ũ
ʿ մϴ.
2-1. rootdg .
- ö ִ vxconfigd --> disable mode .
#vxconfigd -d or #vxconfigd -m disable
2-2. /etc/vx/volboot ʱȭ.
#vxdctl init
#vxdctl list
Volboot file
version: 3/1
seqno: 0.1
hostid: readytop
entries:
2-3. Liecnse Է.
#vxlicense -c : ̼ Է.
#vxlicense -p : Էµ ̼ Ȯ.
2-4. rootdg
# vxdg init rootdg
# vxdctl add disk c0t0d0s7 type=simple
vxvm:vxdctl: WARNING: Device c0t0d0s7: Not currently in the configuration
---->
# rm /etc/vx/reconfig.d/state.d/install-db
ý volume manager starting install-db .
# vxdisk list
rootdg Ȯ.
DEVICE TYPE DISK GROUP STATUS
c0t0d0s2 sliced - - error
c0t0d0s7 simple c0t0d0s7 rootdg online
c0t1d0s2 sliced - - error
c0t2d0s2 sliced - - error
3. datadg ʱȭ.
vxdisksetup - /usr/lib/vxvm/bin ġ.
- vxdisk list Ȯ datadg ũ ° error Ǿ ֽϴ. ̰
vxdisksetup online .
#vxdisksetup -i c0t1d0 ( online )
#vxdisk list
DEVICE TYPE DISK GROUP STATUS
c0t0d0s2 sliced - - error
c0t0d0s7 simple c0t0d0s7 rootdg online
c0t1d0s2 sliced - - online
c0t2d0s2 sliced - - error
#vxdisksetup -i c0t2d0 (online )
#vxdisksetup -C c0t2d0 ( offline ) ---> ƹ 쿡 ԵǾ ִ ʴ ũ offline
4. ο disk .
ο ϱ ؼ 쿡 Ե ũ Ǿ մϴ.
#vxdg init group_name diskname=physical_device
group_name :
diskname : ũ alias
physical_device : ũ ̸.
#vxdg init datadg disk01=c0t1d0
--> datadg ̰ ũ alias disk01 ũ ̸
c0t1d0 Դϴ. ũ alias disk01 ƴ϶ ٸ ̸ ص ˴ϴ.
#vxdg -g group_name adddisk diskname=physical_device
---> ũ datadg ߰ ų ũ .
group_name :
diskname : ũ alias
physical_device : ũ ̸.
#vxdg -g datadg adddisk disk02=c0t2d0
#vxdisk list
DEVICE TYPE DISK GROUP STATUS
c0t0d0s2 sliced - - offline
c0t0d0s7 simple c0t0d0s7 rootdg online
c0t1d0s2 sliced disk01 datadg online
c0t2d0s2 sliced disk02 datadg online
Ȯ Ҽ ִ.
5. volume .
#vxassist -g groupname make volname size layout=concat subdisk1
groupname :
volname : ý ̸
size : ũ 뷮 .
layout : strpie , mirror , raid5
subdisk : 쿡 Ե ũ alias
⼭ ũ mirror ϱ .....
#vxassist -g datadg make vol01 140034240 layout=mirror disk01 disk02
datadg ̰ volname vol01 size 140034240 raid
mirror 쿡 Ե ũ disk01 , disk02
#vxassist -g datadg help space ( ũ Ȯ )
#vxassist -g datadg maxsize layout=mirror ( ũ ִ 뷮 Ȯ )
6. ũ ȭ Ȯ.
#vxtask list
TASKID PTID TYPE/STATE PCT PROGRESS
160 RDWRBACK/R 41.30% 0/140034240/57828640 VOLSTART 0.0
7. /etc/vfstab .
/dev/vx/dsk/datadg/vol01 /dev/vx/rdsk/datadg/vol01 /vxdisk ufs 2 yes -