You must move all volumes to disk partitions. You can do this using one of the following procedures:
Use the following procedure to move volumes to disk partitions.
To move volumes to disk partitions
vxdiskadm
, the GUI, or the vxevac
script.
Evacuation moves subdisks from the specified disks to target disks. The evacuated disks provide the initial free disk space for volumes to be moved to disk partitions.
sync
command to the data on the volume.
format
command. If there is not enough free space for the partition, add a new disk to the system for the first volume removed. Subsequent volumes can use the free space generated by the removal of this first volume.
dd
.
# dd if=/dev/vx/dsk/diskgroup/lhome of=/dev/dsk/
c2t2d2
where c2t2d2
is the disk outside of Volume Manager and s7 is the newly
/etc/fstab
with an entry for the newly created partition.
To check if there are still some subdisks remaining on a particular disk, use the vxprint
command.
# vxprint -F '%sdnum' diskname
If the output is not 0, there are still some subdisks on this disk that you need to remove. If the output is 0, remove the disk from VxVM control.
Use the free space created for adding the data from the next volume you want to remove.
Example of moving volumes to disk partitions on HP-UX
This example shows how to move the data on a volume to a disk partition. In the example, there are three disks: disk1 and disk2 are subdisks on volume vol01 and disk3 is a free disk. The data on vol01 is copied to disk3 using vxevac
.
To move volumes to disk partitions on HP-UX
DG NAME NCONFIG NLOG MINORS GROUP-ID
DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE
RV NAME RLINK_CNT KSTATE STATE PRIMARY DATAVOLS SRL
RL NAME RVG KSTATE STATE REM_HOST REM_DG REM_RLNK
V NAME RVG KSTATE STATE LENGTH READPOL PREFPLEX
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID
SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE
SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM
dg voldg default default 115000
1017856044.1141.hostname.veritas.com
dg voldg default default 115000
1017856044.1141.hostname.veritas.com
dm disk1 c1t12d0 auto:hpdisk 2591 17900352 -
dm disk2 c1t14d0 auto:hpdisk 2591 17899056 -
dm disk3 c1t3d0 auto:hpdisk 2591 17899056 -
v vol1 - ENABLED ACTIVE 4196448 ROUND -
pl pl1 vol1 ENABLED ACTIVE 4196448 CONCAT -
sd sd1 pl1 disk1 0 2098224 0 c1t12d0
# /etc/vx/bin/vxevac -g voldg disk1 disk3
DG NAME NCONFIG NLOG MINORS GROUP-ID
DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE
RV NAME RLINK_CNT KSTATE STATE PRIMARY DATAVOLS SRL
RL NAME RVG KSTATE STATE REM_HOST REM_DG REM_RLNK
V NAME RVG KSTATE STATE LENGTH READPOL PREFPLEX
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID
SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE
SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM
dg voldg default default 115000
1017856044.1141.hostname.veritas.com
dm disk1 c1t12d0 auto:hpdisk 2591 17900352 -
dm disk2 c1t14d0 auto:hpdisk 2591 17899056 -
dm disk3 c1t3d0 auto:hpdisk 2591 17899056 -
v vol1 - ENABLED ACTIVE 4196448 ROUND -
pl pl1 vol1 ENABLED ACTIVE 4196448 CONCAT -
sd disk3-01 pl1 disk3 0 2098224 0 c1t3d0
# /etc/vx/bin/vxevac -g voldg disk2 disk3
DG NAME NCONFIG NLOG MINORS GROUP-ID
DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE
RV NAME RLINK_CNT KSTATE STATE PRIMARY DATAVOLS SRL
RL NAME RVG KSTATE STATE REM_HOST REM_DG REM_RLNK
V NAME RVG KSTATE STATE LENGTH READPOL PREFPLEX
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID
SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE
SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM
dg voldg default default 115000
1017856044.1141.hostname.veritas.com
dm disk1 c1t12d0 auto:hpdisk 2591 17900352 -
dm disk2 c1t14d0 auto:hpdisk 2591 17899056 -
dm disk3 c1t3d0 auto:hpdisk 2591 17899056 -
v vol1 - ENABLED ACTIVE 4196448 ROUND -
pl pl1 vol1 ENABLED ACTIVE 4196448 CONCAT -
c1t3d0 auto:hpdisk disk3 voldg
c1t12d0 auto:hpdisk disk1 voldg
/vol1 on /dev/vx/dsk/voldg/vol1