From: Ian Collins on
On 07/12/10 07:33 PM, hadi motamedi wrote:
>> Remove the first line and manually mount /dev/dsk/c0t0d0s5 somewhere
>> else (say /mnt) and copy the data over.
> I removed the first line from /etc/vfstab and I tried to manually
> mount /dev/dsk/c0t0d0s5 on /mnt but it is returning '/mnt is busy' .
> Can you please let me know how can I implement your proposed
> procedure ?

Maybe if you stop snipping attributions!

--
Ian Collins
From: chuckers on
On Jul 13, 6:28 am, Ian Collins <ian-n...(a)hotmail.com> wrote:
> On 07/12/10 07:33 PM, hadi motamedi wrote:
>
> >> Remove the first line and manually mount /dev/dsk/c0t0d0s5 somewhere
> >> else (say /mnt) and copy the data over.
> > I removed the first line from /etc/vfstab and I tried to manually
> > mount /dev/dsk/c0t0d0s5 on /mnt but it is returning '/mnt is busy' .
> > Can you please let me know how can I implement your proposed
> > procedure ?
>
> Maybe if you stop snipping attributions!
>
> --
> Ian Collins

It also might help if he were to go back and re-explain what sort of
state the
box is in. He has been given quite a lot of advice and I get the
feeling that
he has applied bits of it here and there trying to get things to work
and now
the box is likely in a half-assed stated.

From: hadi motamedi on
> Are you standing in /mnt when you try to mount that filesystems?  What
> I mean is, is your current working directory /mnt at the time?
> As an example (using ZFS, when you are using UFS, but that doesn't matter):
>   shumira:/export/home/hume# cd /mnt
>   shumira:/mnt# mount -F zfs rpool/test /mnt
>   mount failed: Device busy
>   shumira:/mnt# cd /
>   shumira:/# mount -F zfs rpool/test /mnt
>   shumira:/#
> --
> Brandon Hume    - hume -> BOFH.Ca,http://WWW.BOFH.Ca/
My imported data resides in /dev/dsk/c0t2d0s3 that I want to put it
in /opt . According to you, I removed my original /opt definition
from /etc/vfstab . I mounted the original /opt slice (/dev/dsk/
c0t0d0s5) on /mnt but when I want to manually mount the new data on /
opt, I got the following error :
# cd /
# mount -F ufs /dev/dsk/c0t0d0s5 /mnt
# mount -F ufs /dev/dsk/c0t2d0s3 /opt
WARNING: /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/
esp@5,8800000/sd@2,0
(sd2):
corrupt label - wrong magic number

mount: I/O error
mount: cannot mount /dev/dsk/c0t2d0s3
#
Please help me.
Thank you

From: Paul Gress on
On 07/12/10 11:50 PM, hadi motamedi wrote:
>>
> My imported data resides in /dev/dsk/c0t2d0s3 that I want to put it
> in /opt . According to you, I removed my original /opt definition
> from /etc/vfstab . I mounted the original /opt slice (/dev/dsk/
> c0t0d0s5) on /mnt but when I want to manually mount the new data on /
> opt, I got the following error :
> # cd /
> # mount -F ufs /dev/dsk/c0t0d0s5 /mnt
> # mount -F ufs /dev/dsk/c0t2d0s3 /opt
> WARNING: /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/
> esp@5,8800000/sd@2,0
> (sd2):
> corrupt label - wrong magic number
>
> mount: I/O error
> mount: cannot mount /dev/dsk/c0t2d0s3
> #
>
If I remember correctly (been on Opensolaris for 2 years now), "wrong
magic number" usually means the disk is not formatted or doesn't have a
proper label. Have you run the "format" command and then "mkfs" command
or "newfs" command on that disk? Please note, "mkfs" and "newfs" have
the same end result, "newfs" is easier to run.

Paul
From: hadi motamedi on
>
> If I remember correctly (been on Opensolaris for 2 years now), "wrong
> magic number" usually means the disk is not formatted or doesn't have a
> proper label.  Have you run the "format" command and then "mkfs" command
> or "newfs" command on that disk?  Please note, "mkfs" and "newfs" have
> the same end result, "newfs" is easier to run.
>
> Paul

The format command shows three disks available :
'# format
Searching for disks...WARNING: /iommu@0,10000000/sbus@0,10001000/
espdma@5,840000
0/esp@5,8800000/sd@2,0 (sd2):
corrupt label - wrong magic number
done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <Qemu2GB cyl 4090 alt 2 hd 16 sec 63>
/iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/
esp@5,8800000/sd@0,
0
1. c0t1d0 <Qemu2GB cyl 4090 alt 2 hd 16 sec 63>
/iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/
esp@5,8800000/sd@1,
0
2. c0t2d0 <drive type unknown>
/iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/
esp@5,8800000/sd@2,
0'
Then I tried for 'newfs' on the third disk , as :
'# newfs /dev/dsk/c0t2d0s3
WARNING: /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/
esp@5,8800000/sd@2,0
(sd2):
corrupt label - wrong magic number
/dev/rdsk/c0t2d0s3: I/O error'
Can you please let me know how to correct it?
Thank you