metadetach error on /var filesystem


 
Thread Tools Search this Thread
Operating Systems Solaris metadetach error on /var filesystem
# 1  
Old 12-12-2011
metadetach error on /var filesystem

Hi Everyone

I am trying to detach sub mirror for /var/ filesystem not sure how to detach this sub mirror. someone please guide, I am removing all devices from using SVM.

Code:
metastat -p
bash-3.00#metastat -p
d3 -m d13 1
d13 3 1 c1t2d0s3 \
         1 c1t2d0s5 \
         1 c1t3d0s3
bash-3.00# 
bash-3.00# metadetach d3 d13
metadetach: sunfiretop: d3: attempt to detach last running submirror

bash-3.00#
bash-3.00# metastat
d3: Mirror
    Submirror 0: d13
      State: Okay
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 44066295 blocks (21 GB)

d13: Submirror of d3
    State: Okay
    Size: 44066295 blocks (21 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t2d0s3          0     No            Okay   Yes
    Stripe 1:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t2d0s5          0     No            Okay   Yes
    Stripe 2:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t3d0s3          0     No            Okay   Yes


Device Relocation Information:
Device   Reloc  Device ID
c1t2d0   Yes    id1,sd@n500000e0130083e0
c1t3d0   Yes    id1,sd@SSEAGATE_ST973401LSUN72G_3811010F____________3LB1010F
bash-3.00#

Thanks
# 2  
Old 12-12-2011
Try

Code:
metaclear d3

This User Gave Thanks to dude2cool For This Post:
# 3  
Old 12-12-2011
I am getting this error message, says metadevice is open
Code:
bash-3.00# metastat -p
d3 -m d13 1
d13 3 1 c1t2d0s3 \
         1 c1t2d0s5 \
         1 c1t3d0s3
bash-3.00# metaclear d3
metaclear: sunfiretop: d3: metadevice is open

bash-3.00#

# 4  
Old 12-13-2011
you can not detach the only submirror from a mirror! what is the goal of your action?
# 5  
Old 12-13-2011
@bobby320, maybe this will help:

Removing Disk from SVM
# 6  
Old 12-13-2011
My goal is to remove all disks from SVM.
# 7  
Old 12-13-2011
you have to edit the /etc/vfstab to use the physical devices instead of the metadevices... after rebooting the machine you can clear the metadevices.

BUT BEWARE!!!
your /var directory is on a stripeset. you have to copy/dump the content to another directory BEFORE deleting the metadevices and editing the vfstab!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How to increase the /var (UFS) filesystem and root disk under veritas control?

I need to increase the /var (UFS) filesystem and root disk under veritas control or root disk is encapsulated # df -k /var Filesystem kbytes used avail capacity Mounted on /dev/vx/dsk/var 13241195 12475897 674524 96% /var # fstyp /dev/vx/dsk/var ufs # pkginfo... (1 Reply)
Discussion started by: amity
1 Replies

2. Shell Programming and Scripting

Csh , how to set var value into new var, in short string concatenation

i try to find way to make string concatenation in csh ( sorry this is what i have ) so i found out i can't do : set string_buff = "" foreach line("`cat $source_dir/$f`") $string_buff = string_buff $line end how can i do string concatenation? (1 Reply)
Discussion started by: umen
1 Replies

3. Solaris

Have mounted a filesystem in /var and now cannot log in

hi, i might not be posting my question in the right place because i don't know where to post questions my question is like this i created a partition named 'var' in the SOLARIS os .,and then i knowingly mounted it on /var ..now after doing this am not able to login to my... (4 Replies)
Discussion started by: shekhar_4_u
4 Replies

4. Solaris

Difference between /var/log/syslog and /var/adm/messages

Hi, Is the contents in /var/log/syslog and /var/adm/messages are same?? Regards (3 Replies)
Discussion started by: vks47
3 Replies

5. UNIX for Dummies Questions & Answers

Reduce /var filesystem

hi guys I need to create a temporary Filesystem and the only way to do it is to reduce /var and create a new filesystem 3GB size df -h .... ... /dev/mapper/VolGroup00-var 9.7G 1.5G 7.8G 16% /var my question is according to google search I need to umount the... (5 Replies)
Discussion started by: karlochacon
5 Replies

6. AIX

/var filesystem is full

Hi, Is there a way to clear the temp files from /var/tmp? Is root access required to delete the files? Thanks, Narayan (2 Replies)
Discussion started by: narayanv
2 Replies

7. Solaris

Cant Metadetach

Hi, all i want to metadetach but get the below error # metadetach d6 d62 metadetach: CNORACLE2: d6: resync in progress d6: Mirror Submirror 0: d61 State: Okay Submirror 1: d62 State: Resyncing Resync in progress: 6 % done Pass: 1 Read option:... (11 Replies)
Discussion started by: SmartAntz
11 Replies

8. Solaris

Filesystem - error when extend the filesystem

Hi all, currently , my root filesystem already reach 90 ++% I already add more cylinder in the root partition as below Part Tag Flag Cylinders Size Blocks 0 root wm 67 - 5086 38.46GB (5020/0/0) 80646300 1 swap wu 1 - ... (11 Replies)
Discussion started by: SmartAntz
11 Replies

9. UNIX for Advanced & Expert Users

diff command filling /var filesystem space

Hi, I am using diff command to check difference between two files.Both files are very big and when i execute this command /var temp space is filled up almost 99%. Can any one please tell me is there any way i can specify directory name which has more space so that diff can use that dir for... (2 Replies)
Discussion started by: ukatru
2 Replies

10. Solaris

/var filesystem recovery from other machine

Hi Folks, I'm wordering if I can ufsdump the /var fs from a server1 and create a new /var fs in Server2, that is because some damage happened in the /var fs and we don't have backup of it, I've tried fsck and no sucess at all.. Any ideia how I can recovery that /var fs ? Thanks, ... (0 Replies)
Discussion started by: ramosbrazil
0 Replies
Login or Register to Ask a Question