You are here

VXVM. Add disk and create a concat volume

Tenemos un solo disco en la configuracion:

19pespare3:/:> vxdisk list
DEVICE TYPE DISK GROUP STATUS
c3t0d0s2 sliced disk01 rootdg online

Rescaneamos, forzando en reinicio del demonio de veritas
19pespare3:/:> vxdctl enable

Ya aparece nuestro disco: c3t10d0s2 pero en error, tenemos que inicializarlo
19pespare3:/:> vxdisk list
DEVICE TYPE DISK GROUP STATUS
c1t10d0s2 sliced - - error
c1t11d0s2 sliced - - error
c3t0d0s2 sliced disk01 rootdg online
c3t6d0s2 sliced - - error
c3t10d0s2 sliced - - error
c3t20d0s2 sliced - - error
c3t21d0s2 sliced - - error
c3t24d0s2 sliced - - error

Inizializamos el disco con vxdiskadd
19pespare3:/:> vxdiskadd c3t10d0

Add or initialize disks
Menu: VolumeManager/Disk/AddDisks

Here is the disk selected. Output format: [Device_Name]

c3t10d0

Continue operation? [y,n,q,?] (default: y) y

You can choose to add this disk to an existing disk group, a
new disk group, or leave the disk available for use by future
add or replacement operations. To create a new disk group,
select a disk group name that does not yet exist. To leave
the disk available for future use, specify a disk group name
of "none".

Which disk group [,none,list,q,?] (default: rootdg) none

The disk will be initialized and left free for use as a replacement
disk.

c3t10d0

Continue with operation? [y,n,q,?] (default: y) y

Initializing device c3t10d0.

Goodbye.

Ya tenemos el disco operativo, se muestra como online:

19pespare3:/:> vxdisk list
DEVICE TYPE DISK GROUP STATUS
c1t10d0s2 sliced - - error
c1t11d0s2 sliced - - error
c3t0d0s2 sliced disk01 rootdg online
c3t6d0s2 sliced - - error
c3t10d0s2 sliced - - online
c3t20d0s2 sliced - - error
c3t21d0s2 sliced - - error
c3t24d0s2 sliced - - error

Creamos el nuevo dg datadg y lo listamos:

19pespare3:/:> vxdg init datadg datadg01=c3t10d0s2
19pespare3:/:> vxdg list
NAME STATE ID
rootdg enabled 1150893414.1025.19pespare3
datadg enabled 1289485247.4744.19pespare3
19pespare3:/:> vxprint -ht -g datadg
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 datadg default default 110000 1289485247.4744.19pespare3

dm datadg01 c3t10d0s2 sliced 3590 17678493 -

Vamos a crear un volumen de 1 giga llamado datvol01

19pespare3:/:> vxassist -g datadg make datvol01 1g layout=concat
19pespare3:/:> vxprint -ht -g datadg
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 datadg default default 110000 1289485247.4744.19pespare3

dm datadg01 c3t10d0s2 sliced 3590 17678493 -

v datvol01 fsgen ENABLED ACTIVE 2097152 SELECT -
pl datvol01-01 datvol01 ENABLED ACTIVE 2100735 CONCAT - RW
sd datadg01-01 datvol01-01 datadg01 0 2100735 0 c3t10d0 ENA

Creamos el FS

19pespare3:/:> newfs /dev/vx/rdsk/datadg/datvol01
newfs: construct a new file system /dev/vx/rdsk/datadg/datvol01: (y/n)? y
/dev/vx/rdsk/datadg/datvol01: 2097152 sectors in 1024 cylinders of 32 tracks, 64 sectors
1024.0MB in 32 cyl groups (32 c/g, 32.00MB/g, 15872 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 65632, 131232, 196832, 262432, 328032, 393632, 459232, 524832, 590432,
656032, 721632, 787232, 852832, 918432, 984032, 1049632, 1115232, 1180832,
1246432, 1312032, 1377632, 1443232, 1508832, 1574432, 1640032, 1705632,
1771232, 1836832, 1902432, 1968032, 2033632,

Lo montamos / modificar vfstab
19pespare3:/:> mount /dev/vx/dsk/datadg/datvol01 /data01
19pespare3:/:> df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c1t10d0s0 5043518 1914712 3078371 39% /
/proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
fd 0 0 0 0% /dev/fd
swap 1008928 16 1008912 1% /var/run
swap 1009472 560 1008912 1% /tmp
/dev/md/dsk/d2 97306 2 87574 1% /fs_d2
/dev/md/dsk/d5 191611 2 172448 1% /fs_d5
/dev/dsk/c1t10d0s7 6050182 47946 5941735 1% /export/home
/dev/vx/dsk/datadg/datvol01
984559 9 925477 1% /data01

Unix Systems: 

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.
Error | HP-UX Tips & Tricks Site

Error

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /homepages/37/d228974590/htdocs/includes/common.inc:2567) in drupal_send_headers() (line 1207 of /homepages/37/d228974590/htdocs/includes/bootstrap.inc).
  • PDOException: SQLSTATE[42000]: Syntax error or access violation: 1142 INSERT command denied to user 'dbo229817041'@'217.160.155.192' for table 'watchdog': INSERT INTO {watchdog} (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9); Array ( [:db_insert_placeholder_0] => 0 [:db_insert_placeholder_1] => cron [:db_insert_placeholder_2] => Attempting to re-run cron while it is already running. [:db_insert_placeholder_3] => a:0:{} [:db_insert_placeholder_4] => 4 [:db_insert_placeholder_5] => [:db_insert_placeholder_6] => http://www.hpuxtips.es/?q=content/vxvm-add-disk-and-create-concat-volume [:db_insert_placeholder_7] => [:db_insert_placeholder_8] => 54.198.71.184 [:db_insert_placeholder_9] => 1503242865 ) in dblog_watchdog() (line 157 of /homepages/37/d228974590/htdocs/modules/dblog/dblog.module).
The website encountered an unexpected error. Please try again later.