Remove file system from Solaris disk


 
Thread Tools Search this Thread
Operating Systems Solaris Remove file system from Solaris disk
# 1  
Old 04-08-2013
Remove file system from Solaris disk

hi,
i have created a file system using newfs command in solaris 10, later i got error messages from the database which i am using. May be database using the disk also.
My question is how to remove file system from the disk.

Thanks
# 2  
Old 04-08-2013
There's many ways to "remove file system from the disk", but why would you want to do so? If errors occur, what be the error msgs?
# 3  
Old 04-08-2013
What database?
What error messages?
# 4  
Old 04-08-2013
data block corruption

Thanks for your reply,

Actually i am using oracle 11g database and i have perform newfs command on the disk which was added to oracle (ASM) database.
And the error which i am receiving is oracle data block corruption (ORA-01110,ORA-01578)when i access the data.

is there any way to undo newfs command which i have performed.
Thanks
# 5  
Old 04-08-2013
You have overwritten the ASM data by creating a file system on a device already used by the database. This quite a destructive action as there is no "undo-newfs" command.

I'm no ASM expert but I guess the proper way to recover the system would be to rebuild the ASM storage and restore from backup.
# 6  
Old 04-10-2013
data block corrupted

Thanks for your reply, one thing which i want to discuss is that while creating a disk partition for database, in partition table we select part 6 tag usr and starting cylinder 1 to create a slice .
While we run newfs command on part 2 tag backup and starting cylinder 0 .

So in my opinion newfs command run on different slice , so it does not format the whole disk , disk is still available on ASM storage only it changes the header information or file system information.
My question will be is there any way to revert the disk header information so that the data in our database can be corrected.
# 7  
Old 04-11-2013
Slice 2 is a whole disk
Below is output from format
Code:
Total disk cylinders available: 65533 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       0 - 26214        8.00GB    (26215/0/0) 16777600
  1       swap    wu   26215 - 32768        2.00GB    (6554/0/0)   4194560
  2     backup    wm       0 - 65532       20.00GB    (65533/0/0) 41941120
  3 unassigned    wm   32769 - 65532       10.00GB    (32764/0/0) 20968960
  4 unassigned    wm       0                0         (0/0/0)            0
  5 unassigned    wm       0                0         (0/0/0)            0
  6 unassigned    wm       0                0         (0/0/0)            0
  7 unassigned    wm       0                0         (0/0/0)            0

In first line you can see that total disk cylinders is 65533.
Slice number 2 starts at cylinder 0 and ends at 65532. So the total number of used cylinders is 65533, what means that slice numer 2 uses whole disk. It is a special type of slice which overwrite other slices.
About Disk Slices (System Administration Guide: Devices and File Systems)
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Basic question regarding root file system copy to another disk

Hello, I am creating a new disk using the following command: dd if=/dev/zero of=/export/home/ramdisk/0 bs=512 count=4096k after creating the disk, i tool a ufsdump of a solaris 10 filesytem (disk size 512MB) ufsdump -cvf /export/home/ufsdump/sol_orig /and then restored the dump files onto... (10 Replies)
Discussion started by: Zam_1234
10 Replies

2. HP-UX

how to mount a file system from a solaris server into an hp-ux system

Hi all I wonder if its possible to mount on a hp-ux server a file system that was previously mounted on a solaris 10 server. The LUN is on NetApp stoarge. The problem on hp-ux I cannot do pvcreate on the lun (disk) because contains data. Any help will be appreciated FR (2 Replies)
Discussion started by: fretagi
2 Replies

3. Solaris

dual boot solaris/solaris zfs file system

Hi, I am running into a some problems creating a dual boot system of 2 solaris instances using ZFS file system and I was wondering if someone can help me out. First some back ground. I have been asked to change the file system of our server from UFS to ZFS. Currently we are using Solaris... (3 Replies)
Discussion started by: estammis
3 Replies

4. Solaris

Configure disk array in RAID5 and create file system

I'm new to forums, it's my first time posting. I have a sun v490 server. I just installed solaris 10.6, on the local drives. I'm being asked to do the following: For Oracle install I need “oracle” user that belong to “dba” and “oinstall” groups. File system /u01/app/oracle, 10GB (if... (6 Replies)
Discussion started by: Kjons76
6 Replies

5. UNIX for Dummies Questions & Answers

How to find a file whick is consuming larger disk space in file system

Hello, Can anybody please tell me the command to find out the filesystem or a file which is consuming larger disk space sing i want to find out the file and want to compress it please help me out any help would be appreciated (6 Replies)
Discussion started by: lokeshpashine
6 Replies

6. Programming

How to get free disk space size in C/C++ program( Solaris system)

How to get free disk space size in C/C++ program( Solaris system)? Is there any standard function or system function? Just like "df" or "getdfree" in Linux. (4 Replies)
Discussion started by: yidu
4 Replies

7. Filesystems, Disks and Memory

Is it possible that recovering a disk with jffs2 file system ?

Is it possible that recovering a disk with jffs2 file system ? (1 Reply)
Discussion started by: s. murat
1 Replies

8. Linux

Unable to remove file using rm: Disk space is full

Hi all, My disk space is 100% full. df -k <dir> -> 100% One of my debug files consume huge amount of space and i want to remove the same to start off fresh debugs. However i'm unable to remove the file giving out the following error message: rm -f debug.out22621 rm: cannot remove... (8 Replies)
Discussion started by: Pankajakshan
8 Replies

9. Solaris

Remove os mirrored disk Solaris 10

Hello once again seeking your help, I have a mirrored disk and need to unmirror it to mount it as a new file system (/export) but could not find the correct steps to do it with out affecting the original disk. can anybody point me out on how to get this done. Thanks!! (3 Replies)
Discussion started by: AQG
3 Replies

10. Solaris

How to remove a ufs file system?

Hello, On a box with Solaris 10 I created a ufs file system and now I need to remove that file system. How do I remove a ufs file system on Solaris 10? Thanks. (5 Replies)
Discussion started by: pmichner
5 Replies
Login or Register to Ask a Question