Migrate VxVM boot disks to higher capacity disk


 
Thread Tools Search this Thread
Operating Systems Solaris Migrate VxVM boot disks to higher capacity disk
# 1  
Old 02-17-2009
Migrate VxVM boot disks to higher capacity disk

Hi, Im getting a downtime of 4 hrs to do porting of bootdisks.
Currently, the system is running on Sf4800. 2 internal disk 36G connected to a SE3510 storage.
We're getting 72G disks and we want to restore the OS from the current 36G to the 72G disk. System is under veritas volume manager ctrl. Any steps provided would help. Thanks.

config as follows:
Filesystem kbytes used avail capacity Mounted on
/dev/vx/dsk/bootdg/rootvol 20160418 10366246 9592568 52% /
/devices 0 0 0 0% /devices
ctfs 0 0 0 0% /system/contract
proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
swap 12996192 1680 12994512 1% /etc/svc/volatile
objfs 0 0 0 0% /system/object
/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1 20160418 10366246 9592568 52% /platform/sun4u-us3/lib/libc_psr.so.1
/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1 20160418 10366246 9592568 52% /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
fd 0 0 0 0% /dev/fd
swap 17245824 4251320 12994504 25% /tmp
swap 12994640 136 12994504 1% /var/run
swap 12994504 0 12994504 0% /dev/vx/dmp
swap 12994504 0 12994504 0% /dev/vx/rdmp
/dev/vx/dsk/ssdc/export 30720000 8094698 21211284 28% /export
/dev/vx/dsk/ssdc/upgrade 8396800 3302443 4776025 41% /ocs/upgrade
/ocs/ericsson 30720000 17607384 12306679 59% /var/opt/ericsson
/ocs/3pp/opt/borland 9216000 5421853 3557468 61% /opt/borland
/ocs/3pp/opt/sybase 9216000 5421853 3557468 61% /opt/sybase
/ocs/3pp/opt/sun 9216000 5421853 3557468 61% /opt/sun
/ocs/3pp/opt/versant 9216000 5421853 3557468 61% /opt/versant
/export/opt/ericsson 30720000 8094698 21211284 28% /opt/ericsson

Searching for disks...done


AVAILABLE DISK SELECTIONS:
0. c0t0d0 <HITACHI-DK32EJ36NSUN36G-PQ0F cyl 24620 alt 2 hd 27 sec 107>
/ssm@0,0/pci@18,700000/pci@1/SUNW,isptwo@4/sd@0,0
1. c1t40d0 <SUN-StorEdge3510-415G cyl 65533 alt 2 hd 64 sec 340>
/ssm@0,0/pci@19,700000/SUNW,qlc@2/fp@0,0/ssd@w216000c0ff882692,0
2. c2t0d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
/ssm@0,0/pci@1c,700000/pci@1/SUNW,isptwo@4/sd@0,0
3. c3t40d0 <SUN-StorEdge3510-415G cyl 65533 alt 2 hd 64 sec 340>
/ssm@0,0/pci@1d,700000/SUNW,qlc@2/fp@0,0/ssd@w216000c0ff882638,0


DEVICE TYPE DISK GROUP STATUS OS_NATIVE_NAME
c0t0d0s2 auto rootdisk rootdg online c0t0d0s2
c1t40d0s2 auto disk2mirr ssdc online c1t40d0s2
c2t0d0s2 auto rootmirr rootdg online c2t0d0s2
c3t40d0s2 auto disk2 ssdc online c3t40d0s2


rootdg enabled 1215624401.12.cnoss1
ssdc enabled 1215570882.12.cnoss1


#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/vx/dsk/bootdg/swapvol - - swap - no nologging
/dev/vx/dsk/bootdg/rootvol /dev/vx/rdsk/bootdg/rootvol / ufs 1 no nologging
/devices - /devices devfs - no -
ctfs - /system/contract ctfs - no -
objfs - /system/object objfs - no -
swap - /tmp tmpfs - yes -
#NOTE: volume rootvol () encapsulated partition c0t0d0s0
#NOTE: volume swapvol () encapsulated partition c0t0d0s1
/dev/vx/dsk/ssdc/export /dev/vx/rdsk/ssdc/export /export vxfs 3 yes -
/dev/vx/dsk/ssdc/3pp /dev/vx/rdsk/ssdc/3pp /ocs/3pp vxfs 3 yes -
/dev/vx/dsk/ssdc/swap - - swap - no nologging
#NOTE: volume rootvol () encapsulated partition c0t0d0s0
#NOTE: volume swapvol () encapsulated partition c0t0d0s1
# 2  
Old 02-17-2009
won't a flash archiv work out for you?
# 3  
Old 02-17-2009
Nope. we won't be using flash archive
# 4  
Old 02-18-2009
Can you please check if the below steps are correct and if changes are need to be made further?

-Full OS backup is to be taken prior to activity
-Make a backup copy of /etc/vfstab file, comment out ossdg entries
-Identify the rootmirror disk using format
-set system eeprom to auto-boot false,
#eeprom auto-boot?=false
then
init 0 to bring system to ok> prompt
pull out the SE3510 FC connection cables

- Pull out rootmirror 36G HDD and insert 72G HDD
-Boot up the system using the rootdisk
- format new drive and label disk with appropriate partition sizing
(need confirmation from Ericson)

-newfs on the filesystems on the new 72G HDD
Newfs /dev/rdsk/c2t0d0s0
- mount root slice from the new HDD to a temp mount point
Mkdir /s0
Mount /dev/rdsk/c2t0d0s0 /s0
- perform ufsdump / ufsrestore for root partition
Ufsdump 0f - / | (cd /s0; ufsrestore rf -)
-when root partition is done with restoration, perform installboot bootblk on new disk

Cd /usr/platform/`uname -i`/lib/fs/ufs
Installboot bootblk /dev/rdsk/c2t0d0s0
Backup /etc/system file and /etc/vfstab
Touch /s0/etc/vx/reconfig.d/state.d/install-db
Vi /s0/etc/system :-(remove all rootdev statements)
Cp /s0/etc/vfstab.prevm /s0/etc/vfstab
- umount and remove the temp dirs created at step6
Umount /s0

- bring the system down to ok> prompt -> poweroff
-swap in new HDD to primary controller
-plug in FC cables
- boot the system to single user, check vfstab entries and clear filesystem errors (if any), format and check the cxtxdx
-replace the backup vfstab file with ossdg entries

- boot the system to multi-user
#vxiod set 10
#vxconfigd -m disable -k
#/usr/lib/vxvm/bin/vxencap rootdisk=c0t0d0
#init 0
Ok> boot
Verify using vxdisk list, vxdg list if the status is ok.
- slot in 2nd new HDD to secondary controller, make sure OS detects the disk, label the disk.
Devfsadm -C
#vxdctl enable
-use vxdiskadm -> choose option 4 (ensure VM detects as rootmirror not found) choose option 5 (to sync the rootmirror disk)
-vxtask list (monitor disk synchronization to complete)
# 5  
Old 02-19-2009
Anyone here to confirm the steps are right pls?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

Removing a VxVM disk from a Disk Group

Hello all, So I made a rookie mistake today. I forgot to remove my disk from my disk group, before running the following command:for i in `ioscan -fnN | awk /NO/'{print $3}'` do rmsf -H $i done I am trying to run the following command, but not having any luck obviously:vxdg -g dgvol1 rmdisk... (0 Replies)
Discussion started by: mrkejames2
0 Replies

2. Solaris

Unable to boot from mirror disk on x86 server configured under VxVM

Hi, Can you help me on booting x86 server configured under VxVM. Server boots fine normally from both the disks but if I try to boot server from mirror disk without starting veritas, then it does not boot. vxplex -g rootdg dis var-02 vxplex -g rootdg dis swapvol-02 vxplex -g rootdg dis... (2 Replies)
Discussion started by: milindphanse604
2 Replies

3. Homework & Coursework Questions

Disk Capacity Shell Script

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! I am pretty close I think, but stuck. I don't know how to send an email to the user specified on the command line, and I receive an error stating -ge expecting a unary value(lines... (14 Replies)
Discussion started by: polyglot0727
14 Replies

4. AIX

how to find out disk capacity

Hi, I would like to know how to find out disk capacity if it is assigned from the storage as a lun. as per below command , I am unable to find out disk capacity. $ bash bash-3.00$ lspv hdisk1 0001579a7fa3c086 None $ lscfg -vl hdisk1 hdisk1 ... (8 Replies)
Discussion started by: manoj.solaris
8 Replies

5. Solaris

vxvm root disk booting problem - solved with boot -a. How?

Hi All, We had a Sun Netra T1 go down the other day, the root disk was mirrored using vxvm. Upon boot from either disk, we had the following error appear: WARNING: Error writing ufs log state WARNING: ufs log for / changed state to Error WARNING: Please umount(1M) / and run... (4 Replies)
Discussion started by: badoshi
4 Replies

6. UNIX for Advanced & Expert Users

how to create multiple-boot system with disks mirrored(RAID1+0) and disk alone

I have a HP proliant ML 570 G3 with two 146GB disk drives mirrored(RAID1+0) windows server 2003 was installed on that disk. I will add a disk.(scsi 300GB) I will install Linux on that additional disk. I want to create multiple-boot system. Is it possible? I wanna know how to create... (0 Replies)
Discussion started by: lifegeek
0 Replies

7. Solaris

Command to find the failed disks in SVM and VxVM

How to find & replace bad disks in solaris & VXVM?plz explain step by step? (2 Replies)
Discussion started by: xtreams
2 Replies

8. Solaris

( VxVM ) How to add the removed disk back to previous disk group

Previously , i remove the disk by #vxdg -g testdg -k rmdisk testdg02 But i got error when i -k adddisk bash-2.03# vxdisk list DEVICE TYPE DISK GROUP STATUS c0t0d0s2 auto:none - - online invalid c0t1d0s2 auto:none ... (1 Reply)
Discussion started by: waibabe
1 Replies

9. Solaris

Mount points of available Vxvm disks

I have situation where I want to know about all the vxvm mount points information on my solaris box, because after rebooting the server the few mount points are not mounted automatically because they where not copied in /etc/vfstab. So please help me out on the same.:( (0 Replies)
Discussion started by: nimish_mehta
0 Replies

10. AIX

Can not increase capacity of the vg using raid5 with ssa disks

hi all, i have an p620 server. it has 2 scsi 18gb disks for aix4.3 OS and 3 ssa disks for database and an serialRAID adapter. 3 ssa disks configured raid level 5. to increase capacity of the datavg, i buy 2 ssa 18gb disks. but i can not add them to the existing datavg. i did the following... (1 Reply)
Discussion started by: tinhlx
1 Replies
Login or Register to Ask a Question