Sunday, June 26, 2011
Remove special character files in folder solaris system
Sometime we see any special character created in directory/folder, how to remove thats?
See below for case like that :
1. look list files in folder
root # ls -l
total 6
-rw-r--r-- 1 root root 0 Jun 26 20:39 @
-rw-r--r-- 1 admin staff 136 Mar 4 2009 local.cshrc
-rw-r--r-- 1 admin staff 157 Mar 4 2009 local.login
-rw-r--r-- 1 admin staff 174 Mar 4 2009 local.profile
-rw-r--r-- 1 root root 0 Jun 26 20:38 test
-rw-r--r-- 1 root root 0 Jun 26 20:37 }
in this case, we found any "@" and "}" created in folder
2. let see inode for those special character
root # ls -il
total 6
349442 -rw-r--r-- 1 root root 0 Jun 26 20:39 @
349857 -rw-r--r-- 1 admin staff 136 Mar 4 2009 local.cshrc
349858 -rw-r--r-- 1 admin staff 157 Mar 4 2009 local.login
349859 -rw-r--r-- 1 admin staff 174 Mar 4 2009 local.profile
349441 -rw-r--r-- 1 root root 0 Jun 26 20:38 test
349440 -rw-r--r-- 1 root root 0 Jun 26 20:37 }
root #
3. No we will remove those spacial character in folder
root # find . -inum 349442 -exec rm -i {} \;
rm: remove ./@ (yes/no)? yes
4. verify the list files again
root # ls -il
total 5
349857 -rw-r--r-- 1 admin staff 136 Mar 4 2009 local.cshrc
349858 -rw-r--r-- 1 admin staff 157 Mar 4 2009 local.login
349859 -rw-r--r-- 1 admin staff 174 Mar 4 2009 local.profile
349441 -rw-r--r-- 1 root root 0 Jun 26 20:38 test
349440 -rw-r--r-- 1 root root 0 Jun 26 20:37 }
The "@" already gone, next we're remove the "}"
5. next remove the "}"
root # find . -inum 349440 -exec rm -i {} \;
rm: remove ./} (yes/no)? yes
root # ls -il
total 4
349857 -rw-r--r-- 1 admin staff 136 Mar 4 2009 local.cshrc
349858 -rw-r--r-- 1 admin staff 157 Mar 4 2009 local.login
349859 -rw-r--r-- 1 admin staff 174 Mar 4 2009 local.profile
349441 -rw-r--r-- 1 root root 0 Jun 26 20:38 test
root #
6. done
Picture from : http://www.ascendanttech.com/category/engineering/
Read More..
Saturday, May 07, 2011
How to check Multipath in veritas
1. Check What is Enclosure name from storage in server
root# vxdmpadm listctlr all
CTLR-NAME ENCLR-TYPE STATE ENCLR-NAME
=====================================================
c1 Disk ENABLED Disk
c0 Disk ENABLED Disk
c5 TagmaStore-USP ENABLED TagmaStore-USP1
c2 TagmaStore-USP ENABLED TagmaStore-USP1
c5 TagmaStore-USP ENABLED TagmaStore-USP0
c2 TagmaStore-USP ENABLED TagmaStore-USP0
2. Check multipath a disk, if PATHS =4 that indicates a disk already multipath, if PATHS = 2 that is single path.
root# vxdmpadm getdmpnode enclosure=TagmaStore-USP0
NAME STATE ENCLR-TYPE PATHS ENBL DSBL ENCLR-NAME
=========================================================================
c2t50060E80047F6B41d8s2 ENABLED TagmaStore-USP 4 4 0 TagmaStor e-USP0
c2t50060E80047F6B41d11s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B45d16s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B45d15s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B41d1s2 ENABLED TagmaStore-USP 4 4 0 TagmaStor e-USP0
c2t50060E80047F6B41d3s2 ENABLED TagmaStore-USP 4 4 0 TagmaStor e-USP0
c5t50060E80047F6B55d7s2 ENABLED TagmaStore-USP 4 4 0 TagmaStor e-USP0
c2t50060E80047F6B45d17s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d19s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B41d13s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B41d42s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d30s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d18s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B45d14s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B41d43s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B41d2s2 ENABLED TagmaStore-USP 4 4 0 TagmaStor e-USP0
c5t50060E80047F6B51d34s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B41d4s2 ENABLED TagmaStore-USP 4 4 0 TagmaStor e-USP0
c2t50060E80047F6B41d9s2 ENABLED TagmaStore-USP 4 4 0 TagmaStor e-USP0
c2t50060E80047F6B41d10s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B41d5s2 ENABLED TagmaStore-USP 4 4 0 TagmaStor e-USP0
c5t50060E80047F6B55d48s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B45d46s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B41d6s2 ENABLED TagmaStore-USP 4 4 0 TagmaStor e-USP0
c5t50060E80047F6B51d23s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d20s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d27s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d21s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B41d12s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d24s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d25s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d29s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d28s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B45d44s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d37s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d40s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d32s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B41d0s2 ENABLED TagmaStore-USP 4 4 0 TagmaStor e-USP0
c5t50060E80047F6B51d38s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d35s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B45d47s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d22s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B45d52s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B45d45s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d33s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B45d50s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d26s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B45d49s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d31s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d39s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d36s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d41s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B45d51s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
root#
3. A disk already multipath, done
Read More..
root# vxdmpadm listctlr all
CTLR-NAME ENCLR-TYPE STATE ENCLR-NAME
=====================================================
c1 Disk ENABLED Disk
c0 Disk ENABLED Disk
c5 TagmaStore-USP ENABLED TagmaStore-USP1
c2 TagmaStore-USP ENABLED TagmaStore-USP1
c5 TagmaStore-USP ENABLED TagmaStore-USP0
c2 TagmaStore-USP ENABLED TagmaStore-USP0
2. Check multipath a disk, if PATHS =4 that indicates a disk already multipath, if PATHS = 2 that is single path.
root# vxdmpadm getdmpnode enclosure=TagmaStore-USP0
NAME STATE ENCLR-TYPE PATHS ENBL DSBL ENCLR-NAME
=========================================================================
c2t50060E80047F6B41d8s2 ENABLED TagmaStore-USP 4 4 0 TagmaStor e-USP0
c2t50060E80047F6B41d11s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B45d16s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B45d15s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B41d1s2 ENABLED TagmaStore-USP 4 4 0 TagmaStor e-USP0
c2t50060E80047F6B41d3s2 ENABLED TagmaStore-USP 4 4 0 TagmaStor e-USP0
c5t50060E80047F6B55d7s2 ENABLED TagmaStore-USP 4 4 0 TagmaStor e-USP0
c2t50060E80047F6B45d17s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d19s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B41d13s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B41d42s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d30s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d18s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B45d14s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B41d43s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B41d2s2 ENABLED TagmaStore-USP 4 4 0 TagmaStor e-USP0
c5t50060E80047F6B51d34s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B41d4s2 ENABLED TagmaStore-USP 4 4 0 TagmaStor e-USP0
c2t50060E80047F6B41d9s2 ENABLED TagmaStore-USP 4 4 0 TagmaStor e-USP0
c2t50060E80047F6B41d10s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B41d5s2 ENABLED TagmaStore-USP 4 4 0 TagmaStor e-USP0
c5t50060E80047F6B55d48s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B45d46s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B41d6s2 ENABLED TagmaStore-USP 4 4 0 TagmaStor e-USP0
c5t50060E80047F6B51d23s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d20s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d27s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d21s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B41d12s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d24s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d25s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d29s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d28s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B45d44s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d37s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d40s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d32s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B41d0s2 ENABLED TagmaStore-USP 4 4 0 TagmaStor e-USP0
c5t50060E80047F6B51d38s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d35s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B45d47s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d22s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B45d52s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B45d45s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d33s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B45d50s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d26s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B45d49s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d31s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d39s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d36s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c5t50060E80047F6B51d41s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
c2t50060E80047F6B45d51s2 ENABLED TagmaStore-USP 4 4 0 TagmaSto re-USP0
root#
3. A disk already multipath, done
Read More..
Thursday, May 05, 2011
Veritas Volume Replicator 5.0
Here are some terms related to the Veritas Volume Replicator :
1. RVG (Replicated Volume Group) = A Subset of volumes within a given VxVm disk group configured for replication.
2. WOF (Write order fidelity)
3.RDS (Replicated Data Set) = The primary RVG and all of its related secondary RVGs
4.SRL (Storage Replicator Logs) = A Circular buffer of writes for an RVG
5. RLINKs = Replicator Links
6. Latency = Local Processing (SRL write) + network round trip
7. DCMs ( Data Change Maps)
Read More..
1. RVG (Replicated Volume Group) = A Subset of volumes within a given VxVm disk group configured for replication.
2. WOF (Write order fidelity)
3.RDS (Replicated Data Set) = The primary RVG and all of its related secondary RVGs
4.SRL (Storage Replicator Logs) = A Circular buffer of writes for an RVG
5. RLINKs = Replicator Links
6. Latency = Local Processing (SRL write) + network round trip
7. DCMs ( Data Change Maps)
Read More..
Thursday, April 28, 2011
How to change unix account shell
Change unix shell,below steps:
1. Check shell acount
root:/> more /etc/passwd
root:x:0:0:Super-User:/:/bin/bash
daemon:x:1:1::/:
bin:x:2:2::/usr/bin:
sys:x:3:3::/:
adm:x:4:4:Admin:/var/adm:
lp:x:71:8:Line Printer Admin:/usr/spool/lp:
uucp:x:5:5:uucp Admin:/usr/lib/uucp:
nuucp:x:9:9:uucp Admin:/var/spool/uucppublic:/usr/lib/uucp/uucico
smmsp:x:25:25:SendMail Message Submission Program:/:
listen:x:37:4:Network Admin:/usr/net/nls:
gdm:x:50:50:GDM Reserved UID:/:
webservd:x:80:80:WebServer Reserved UID:/:
postgres:x:90:90:PostgreSQL Reserved UID:/:/usr/bin/pfksh
svctag:x:95:12:Service Tag UID:/:
nobody:x:60001:60001:NFS Anonymous Access User:/:
noaccess:x:60002:60002:No Access User:/:
nobody4:x:65534:65534:SunOS 4.x NFS Anonymous Access User:/:
afgan:x:100:1::/home/afgan:/bin/sh
2. Change shell for account user afgan
root:/> passwd -e afgan
Old shell: /bin/sh
New shell: /bin/ksh
passwd: password information changed for afgan
3. Verify data unix shell for account user afgan
blue:/> more /etc/passwd
root:x:0:0:Super-User:/:/bin/bash
daemon:x:1:1::/:
bin:x:2:2::/usr/bin:
sys:x:3:3::/:
adm:x:4:4:Admin:/var/adm:
lp:x:71:8:Line Printer Admin:/usr/spool/lp:
uucp:x:5:5:uucp Admin:/usr/lib/uucp:
nuucp:x:9:9:uucp Admin:/var/spool/uucppublic:/usr/lib/uucp/uucico
smmsp:x:25:25:SendMail Message Submission Program:/:
listen:x:37:4:Network Admin:/usr/net/nls:
gdm:x:50:50:GDM Reserved UID:/:
webservd:x:80:80:WebServer Reserved UID:/:
postgres:x:90:90:PostgreSQL Reserved UID:/:/usr/bin/pfksh
svctag:x:95:12:Service Tag UID:/:
nobody:x:60001:60001:NFS Anonymous Access User:/:
noaccess:x:60002:60002:No Access User:/:
nobody4:x:65534:65534:SunOS 4.x NFS Anonymous Access User:/:
afgan:x:100:1::/home/afgan:/bin/ksh
4. Done
Read More..
1. Check shell acount
root:/> more /etc/passwd
root:x:0:0:Super-User:/:/bin/bash
daemon:x:1:1::/:
bin:x:2:2::/usr/bin:
sys:x:3:3::/:
adm:x:4:4:Admin:/var/adm:
lp:x:71:8:Line Printer Admin:/usr/spool/lp:
uucp:x:5:5:uucp Admin:/usr/lib/uucp:
nuucp:x:9:9:uucp Admin:/var/spool/uucppublic:/usr/lib/uucp/uucico
smmsp:x:25:25:SendMail Message Submission Program:/:
listen:x:37:4:Network Admin:/usr/net/nls:
gdm:x:50:50:GDM Reserved UID:/:
webservd:x:80:80:WebServer Reserved UID:/:
postgres:x:90:90:PostgreSQL Reserved UID:/:/usr/bin/pfksh
svctag:x:95:12:Service Tag UID:/:
nobody:x:60001:60001:NFS Anonymous Access User:/:
noaccess:x:60002:60002:No Access User:/:
nobody4:x:65534:65534:SunOS 4.x NFS Anonymous Access User:/:
afgan:x:100:1::/home/afgan:/bin/sh
2. Change shell for account user afgan
root:/> passwd -e afgan
Old shell: /bin/sh
New shell: /bin/ksh
passwd: password information changed for afgan
3. Verify data unix shell for account user afgan
blue:/> more /etc/passwd
root:x:0:0:Super-User:/:/bin/bash
daemon:x:1:1::/:
bin:x:2:2::/usr/bin:
sys:x:3:3::/:
adm:x:4:4:Admin:/var/adm:
lp:x:71:8:Line Printer Admin:/usr/spool/lp:
uucp:x:5:5:uucp Admin:/usr/lib/uucp:
nuucp:x:9:9:uucp Admin:/var/spool/uucppublic:/usr/lib/uucp/uucico
smmsp:x:25:25:SendMail Message Submission Program:/:
listen:x:37:4:Network Admin:/usr/net/nls:
gdm:x:50:50:GDM Reserved UID:/:
webservd:x:80:80:WebServer Reserved UID:/:
postgres:x:90:90:PostgreSQL Reserved UID:/:/usr/bin/pfksh
svctag:x:95:12:Service Tag UID:/:
nobody:x:60001:60001:NFS Anonymous Access User:/:
noaccess:x:60002:60002:No Access User:/:
nobody4:x:65534:65534:SunOS 4.x NFS Anonymous Access User:/:
afgan:x:100:1::/home/afgan:/bin/ksh
4. Done
Read More..
Thursday, April 14, 2011
Removing Volume, disk and disk group Veritas
1. Umount Filesystem
/dev/vx/dsk/datadg/oravl01 5.0G 18M 4.7G 1% /data1/oravl01
root # umount /data1/data1
2. remove the volume
root # vxassist -g datadg remove volume oravl01
3. Observe this disk group configuration information
root # vxprint -g datadg -htr
4.Destroy the datadg disk group
root# vxdg destroy datadg
5. observe the status of the disk device
root # vxdisk -o alldgs list
done
Read More..
/dev/vx/dsk/datadg/oravl01 5.0G 18M 4.7G 1% /data1/oravl01
root # umount /data1/data1
2. remove the volume
root # vxassist -g datadg remove volume oravl01
3. Observe this disk group configuration information
root # vxprint -g datadg -htr
4.Destroy the datadg disk group
root# vxdg destroy datadg
5. observe the status of the disk device
root # vxdisk -o alldgs list
done
Read More..
VxVM vxdisksetup ERROR V-5-2-0
How to change Type auto:SVM to auto:cdsdisk in veritas.
1. Check disk
root # vxdisk list
DEVICE TYPE DISK GROUP STATUS
disk_0 auto:none - - online invalid
disk_1 auto:none - - online invalid
disk_2 auto:cdsdisk datakudg01 datakudg online
disk_3 auto:SVM - - SVM
disk_4 auto:cdsdisk datadg01 datadg online
2. Try initialized disk_3 under SVM to veritas
root # /etc/vx/bin/vxdisksetup -i disk_3
VxVM vxdisksetup ERROR V-5-2-0 Disk disk_3 is in use by SVM. Slice(s) 2 and 6 contain SVM (or former) metadata.
If you still want to initialize this device for VxVM use, please delete the metadata by running 'metadb' command if it is still active, and then remove the SVM signature from each of these slice(s) as follows:
dd if=/dev/zero of=/dev/vx/rdmp/disk_3s[n] oseek=16 bs=512 count=1
[n] is the slice number.
For solve this case :
1. using dd command
root # dd if=/dev/zero of=/dev/vx/rdmp/disk_3s2 oseek=16 bs=512 count=1
1+0 records in
1+0 records out
2. Try to initialize
root # /etc/vx/bin/vxdisksetup -i disk_3
3. Check status disk
vxdisk list
DEVICE TYPE DISK GROUP STATUS
disk_0 auto:none - - online invalid
disk_1 auto:none - - online invalid
disk_2 auto:cdsdisk datakudg01 datakudg online
disk_3 auto:cdsdisk - - online
disk_4 auto:cdsdisk datadg01 datadg online
done
Read More..
1. Check disk
root # vxdisk list
DEVICE TYPE DISK GROUP STATUS
disk_0 auto:none - - online invalid
disk_1 auto:none - - online invalid
disk_2 auto:cdsdisk datakudg01 datakudg online
disk_3 auto:SVM - - SVM
disk_4 auto:cdsdisk datadg01 datadg online
2. Try initialized disk_3 under SVM to veritas
root # /etc/vx/bin/vxdisksetup -i disk_3
VxVM vxdisksetup ERROR V-5-2-0 Disk disk_3 is in use by SVM. Slice(s) 2 and 6 contain SVM (or former) metadata.
If you still want to initialize this device for VxVM use, please delete the metadata by running 'metadb' command if it is still active, and then remove the SVM signature from each of these slice(s) as follows:
dd if=/dev/zero of=/dev/vx/rdmp/disk_3s[n] oseek=16 bs=512 count=1
[n] is the slice number.
For solve this case :
1. using dd command
root # dd if=/dev/zero of=/dev/vx/rdmp/disk_3s2 oseek=16 bs=512 count=1
1+0 records in
1+0 records out
2. Try to initialize
root # /etc/vx/bin/vxdisksetup -i disk_3
3. Check status disk
vxdisk list
DEVICE TYPE DISK GROUP STATUS
disk_0 auto:none - - online invalid
disk_1 auto:none - - online invalid
disk_2 auto:cdsdisk datakudg01 datakudg online
disk_3 auto:cdsdisk - - online
disk_4 auto:cdsdisk datadg01 datadg online
done
Read More..
Subscribe to:
Posts (Atom)