How to make sure that a disk is not used?


 
Thread Tools Search this Thread
Operating Systems Solaris How to make sure that a disk is not used?
# 1  
Old 08-18-2009
How to make sure that a disk is not used?

Hi, I want to make sure a local disk c1t1d0s2 is not being used. SVM and VxVM are used on this Solaris 10 systems. This disk can not be found using 'df -k', 'metastat' and 'vxprint -ht'. But I can't mount it though format shows it contains ufs filesystem:

# mount /dev/dsk/c1t1d0s0 /mnt
Aug 18 17:30:40 hostname ufs: NOTICE: mount: not a UFS magic number (0x20202020)
mount: /dev/dsk/c1t1d0s0 is not this fstype

# format /dev/rdsk/c1t1d0s2 > p > p
Part Tag Flag Cylinders Size Blocks
0 root wm 2905 - 7260 6.00GB (4356/0/0) 12584484
1 swap wu 1 - 2904 4.00GB (2904/0/0) 8389656
2 backup wu 0 - 24619 33.92GB (24620/0/0) 71127180
3 unassigned wu 7261 - 7270 14.11MB (10/0/0) 28890
4 unassigned wu 0 0 (0/0/0) 0
5 unassigned wu 0 0 (0/0/0) 0
6 var wm 7271 - 15981 12.00GB (8711/0/0) 25166079
7 unassigned wu 15982 - 24619 11.90GB (8638/0/0) 24955182

Why can't it be mounted? How can I make 100% sure that it is not being used?

Thank you in advance!Smilie
# 2  
Old 08-19-2009
Hi,

If you are only talking about slice-2 (c1t1d0s2 ) then you should know that it is the refrence for that entire physical disc. It can not be used (ie mounted). Use other slices to solve your purpose.

If your problem is other than this, please post it here.

Thanks,
Deepak
# 3  
Old 08-20-2009
I am talking about the whole disk, c1t1d0x. For example:

# vxprint -ht | grep c1t1d0
# metastat | grep c1t1d0
# grep c1t1d0 /etc/vfstab
# df -k | grep c1t1d0
# echo | format | grep c1t1d0
4. c1t1d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>

I could not find it in all these commands. How can I make 100% sure c1t1d0x is not being used?

Last edited by aixlover; 08-20-2009 at 12:25 PM..
# 4  
Old 08-21-2009
prtvtoc /dev/rdsk/cxtxdxs2 can pring partition map
vxdisk list Will list disks under Veritas control
zpool list will show diskpools
zpool status details of pool and what disks are used.

There are many products that can use raw disk like oracle and that will not be visible to regular volume managers.

Check df -h output and try to establish what all volume managers are on server.
Also make sure you are running commands from global zone (if applicable)
# 5  
Old 08-21-2009
Thanks!

There is no local zone on this system. I am looking for a simple and efficient way to confirm a disk is not being used.
# 6  
Old 08-21-2009
Remove the disk from the machine and wait for a couple of days.

If nobody complains, the disk is not used ... Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Make a disk disappear from fdisk output

Hello, 1 ) Fdisk -l # Displays all the disk with partition table information My Query ) A ) How can i make one disk ex: /dev/sdd not visible in fdisk -l output ? B) From where fdisk -l collect and display the information ? (8 Replies)
Discussion started by: saurabh84g
8 Replies

2. Ubuntu

how to make others have read/write permission when the aotu mounted usb flash disk pluge in ?

hi all: as we know , when usb flash disk plug in and aotu mounted , the default permission of the usb flash disk is 700. that means others have no permission . the question: how to make others have read/write permission when the aotu mounted usb flash disk pluge in ? thanks !! (0 Replies)
Discussion started by: arnold.king
0 Replies

3. SCO

Make a Copy Entire Hard Disk

Dear All, I have a standalone desktop with SCO Openserver V 5, this is used to control a machine with custom written software. The problem is that the machine manufacturer has closed shop (bankruptcy) and there is no support on software. As a precaution I would want to make a complete backup of... (3 Replies)
Discussion started by: iqbal_siddiqui
3 Replies

4. Solaris

Gani Network Driver Won't Install - make: Fatal error: Don't know how to make targ...

I attached a README file that I will refer to. I successfully completed everything in the README file until step 4. # pwd /gani/gani-2.4.4 # ls COPYING Makefile.macros gem.c Makefile Makefile.sparc_gcc gem.h Makefile.amd64_gcc ... (1 Reply)
Discussion started by: Bradj47
1 Replies

5. Solaris

how to make repartition of disk

hi I am working with sun solaris 9 and I have 40 GB hard disk and I want to recreate the partition. 1)how can I recreate the partition?? 2) how can I take the back-up of my application so that I will not loose the data.. (2 Replies)
Discussion started by: smartgupta
2 Replies

6. UNIX for Advanced & Expert Users

Using newfs to make file system on a sata disk using Acard adaptor

Hi All: I am using an adaptor between a 1TB SATA hard drive and solaris 8 box with 68 pin scsi. I use the format utility to partition the HD which works fine but when I use newfs, I get some errors. I will place them below. I have blocked and the error message is in red. Anybody got any... (1 Reply)
Discussion started by: mndavies
1 Replies

7. Solaris

How to make a bootable disk?

The second disk that I'm trying to make bootable is to hold another version of Solaris (9). I've created the partitions with format and labeled the disk - created the filesystems with newfs - created and mounted the directories. ...but I think I've missed something out like using fdisk to... (16 Replies)
Discussion started by: pondlife
16 Replies

8. HP-UX

Need to make disk device files match

Hi, I was wondering if there was a way to change the disk device files ex. /dev/dsk/cxtxd0 ? What I have are two HPUX 11.0 servers using MC Service Guard 11.13. A consultant attached a SAN and both servers had created the same identical LUN device files. Now I could begin creating my volume... (0 Replies)
Discussion started by: mvizza
0 Replies

9. UNIX for Dummies Questions & Answers

recover DIsk and make bootable

Hello all, I'm trying to recover from backup file to a new system with a new disk. I'm able to partition my new hard drive the same way as my old drive, but I'm unable to boot off of it. I have set the fdisk to toogle as a boot flag. But it does not seem to be working. Does anyone know how to... (4 Replies)
Discussion started by: larryase
4 Replies

10. UNIX for Dummies Questions & Answers

how to make a boot disk

I need to know how to make a boot disk to get Solaris 7 to load on a intel machine. I have checked out Sun.Com, but did not understand how to download and convert the files to a disk. any help would be appericated thanks Bobby (2 Replies)
Discussion started by: Youngadmin
2 Replies
Login or Register to Ask a Question