In this scenario I’m using SLES 10, Veritas Dynamic Multipathing ,Veritas Volume Manager 5 MP3 and Hitachi SAN storage.
First scan for newly provided LUNs on Linux using following command:
# for i in `seq 0 3`; do echo ” – – – ” > /sys/class/scsi_host/host$i/scan; done
Once you verify you can see newly added LUNs from “fdisk [...]
Archive for the ‘VxVm’ Category
Extend filesystem using VxVM on Linux
Posted in SAN, VxVm on August 19, 2009 | Leave a Comment »
Adding swap space with VxVM in Solaris
Posted in VxVm on July 17, 2008 | Leave a Comment »
Here’s a simple method to add swap space in VxVM Volume
Creating a secondary swap device using “vxassist”
#vxassist -g rootdg -U swap make swapvol (size) rootdisk
Where,
rootdg = Volume group
swapvol = swap space name
(size) = swap size
rootdisk = disk name
Adding Swap space
# swap -a /dev/vx/dsk/rootdg/swapvol
Permanently add swap space in /etc/vfstab
/dev/vx/dsk/rootdg/swapvol – – swap – no [...]
Make VxVM volume permissions persistent across reboots
Posted in Veritas, VxVm on March 2, 2008 | 1 Comment »
Details:
By default, a newly created volume will only have permissions for the root user only, i.e below is a ‘test’ volume under disk group testdg:/dev/vx/dsk/testdg# ls -ltotal 0brw——- 1 root root 79,76000 Jun 9 14:33 testThe permissions on the volume can be changed by using the chmod command:/dev/vx/dsk/testdg# chmod 777 test/dev/vx/dsk/testdg# ls -ltotal 0brwxrwxrwx 1 [...]
Delete duplicate entries in vxdisk (VxVM)
Posted in Veritas, VxVm on March 2, 2008 | Leave a Comment »
Details:
vxdisk list displays duplicate entries for the disk device (c#t#d#s#) along with an error status:# vxdisk list DEVICE TYPE DISK GROUP STATUSct0d0s2 sliced rootdisk rootdg onlinec4t0d0s2 sliced rootmirror rootdg onlinec6t32d0s2 sliced testdg02 testdg errorc6t32d0s2 sliced - - errorc6t33d0s2 sliced testdg03 testdg errorc6t33d0s2 sliced - - errorc6t34d0s2 sliced - - errorc6t34d0s2 sliced testdg04 testdg errorc6t35d0s2 sliced [...]
Convert from sectors to megabytes/gigabytes
Posted in GNU/Linux, Solaris, Veritas, VxVm on March 2, 2008 | Leave a Comment »
1 kilobyte = 1024 bytes
1 megabyte = 1024 kilobytes
1 gigabyte = 1024 megabytes
Example
The command below creates a 2 gigabytes concat volume, named “vol01″
# vxassist -g datadg make vol01 2g layout=concat init=active
Figure 1
The size of “vol01″, shown in Figure 1, is 4194304 sectors. Another method to retrieve the sector size of a volume is the command
# [...]


