1820236 Members
2883 Online
109620 Solutions
New Discussion юеВ

mount new device

 
SOLVED
Go to solution
szhiyong
Frequent Advisor

mount new device

Hi,

I installed one new disk drive. I use "ioscan -funC disk", I can see the information about the new drive:
class I H/W Path Driver
disk 5 8/16/5.4.0 sdisk
/dev/dsk/c1t4d0 /dev/rdsk/c1t4d0
Then I "mount /dev/dsk/c1t4d0 /usr4", there is error message:
can not open /dev/rdsk/c1t4d0

Would someone please tell me how to solve this problem?

Thanks a lot!

zhiyong
My life is now asking and learning, I wish It can change into replying and discussing
26 REPLIES 26
Jack Fan
Regular Advisor

Re: mount new device

Hello,
Before you mount this device,
you need
1. create pv.
2. create vg.
3. create lv.

And what kind of this device.
Disk or CD-ROM?

Regards,
Jack Fan
Vijeesh CTK
Trusted Contributor
Solution

Re: mount new device


hi

U can use LVM for mounting that disk

1. pvcreate /dev/dsk/c1t4d0
2. mkdir /dev/vgnew
3. mknod /dev/vgnew/group c 64 0x0140000 ( minor no(0x140000) shud be unique)
4. vgcreate /dev/vgnew /dev/dsk/c1t4d0
5. lvcreate -L size in MB /dev/vgnew
6. newfs -F vxfs /dev/vgnew/rlvol1
7. mount /dev/vgnew/lvol1 /your mount directory


or

create filsystem on the device
newfs -F vxfs /dev/rdsk/c1t4d0
and mount it
mount /dev/dsk/c1t4d0 /your mount dir

Cheers

CTK


you can
szhiyong
Frequent Advisor

Re: mount new device

Hi,Jack,

Thanks for your reply.

It is disk. Can I mount the disk drive directly? Because I do not want to creat volume group.

zhiyong
My life is now asking and learning, I wish It can change into replying and discussing
S.K. Chan
Honored Contributor

Re: mount new device

If you're not using LVM you need to "newfs" on the disk first before mounting it.
# newfs -F vxfs /dev/rdsk/c1t4d0
===> Replace "vxfs" with "hfs" is you plan to use HFS.
# mount /dev/dsk/c1t4d0 /usr4
===> Now you mount it.
Michael Tully
Honored Contributor

Re: mount new device

That depends if you LVM or not. If so you can add it to an already defined volume group.

# pvcreate /dev/dsk/c1t4d0
# vgextend /dev/yourvg /dev/dsk/c1t4d0

The disk is then ready to use, to either create additional logical volumes or make existing ones larger. If it is the later you will need the online JFS product or you will need to unmount one, extend it and re-mount it.

# umount /myfilesystem
# lvextend /dev/yourvg/yourlv
# extendfs /dev/yourvg/ryourlv
# mount /myfilesystem
Anyone for a Mutiny ?
Fragon
Trusted Contributor

Re: mount new device

You must decide how to use your new disk:whole disk management or use LVM!
If whole disk management is chosen, you must create file system first use "newfs" (because you want to mount it to /usr4).
If LVM is selected, you must create PV first,and then VG,and then LV.
Detail operations just as all above.

live as you wish
ux
V. V. Ravi Kumar_1
Respected Contributor

Re: mount new device

hi,

u have to create pv (pvcreate), vg (vgcreate) and lv (lvcreate). then ur extend lv (lvextend)and mount.

regds
Never Say No
szhiyong
Frequent Advisor

Re: mount new device

Hi,

Thanks for all your reply.

There is another disk drives (c0t5d0) in my workstation. It is using LVM. First, I try to avoid the LVM for c1t4d0, I do:
newfs -F hfs /dev/rdsk/c1t4d0
There is error message:
newfs (hfs):Cannot open /dev/rdsk/c1t4d0
newfs (hfs):Device busy

I have another question, How can I know the size of c1t4d0 disk drive?

Thanks a lot! I appreciated it.

zhiyong
My life is now asking and learning, I wish It can change into replying and discussing
szhiyong
Frequent Advisor

Re: mount new device

Hi,

Would someone tell me how to know the maximum size of c1t4d0?

Thanks a lot.

zhiyong
My life is now asking and learning, I wish It can change into replying and discussing
Vijeesh CTK
Trusted Contributor

Re: mount new device


hi

diskinfo /dev/rdsk/c1t4d0

Cheers

CTK
szhiyong
Frequent Advisor

Re: mount new device

Hi,

Thanks for fast reply!

i try "pvcreate /dev/dsk/c1t4d0", there is error message:
can not open physical volume
"/dev/dsk/c1t4d0"

Then i try "pvcreate /dev/rdsk/c1t4d0", there is no problem, is this command right?

Then I continue to do until the command"
vgcreate /dev/vg01 /dev/dsk/c1t4d0
There is error messege:
vgcreate: can not open the control file
"/dev/vg01/group"

Would someone please tell me what is problem?

Thanks a lot!

zhiyong
My life is now asking and learning, I wish It can change into replying and discussing
szhiyong
Frequent Advisor

Re: mount new device

Hi,

Thanks for fast reply!

i try "pvcreate /dev/dsk/c1t4d0", there is error message:
can not open physical volume
"/dev/dsk/c1t4d0"

Then i try "pvcreate /dev/rdsk/c1t4d0", there is no problem, is this command right?

Then I continue to do until the command"
vgcreate /dev/vg01 /dev/dsk/c1t4d0
There is error messege:
vgcreate: can not open the control file
"/dev/vg01/group"

Would someone please tell me what is problem?

Thanks a lot!

zhiyong
My life is now asking and learning, I wish It can change into replying and discussing
szhiyong
Frequent Advisor

Re: mount new device

Hi,

Thanks for fast reply!

i try "pvcreate /dev/dsk/c1t4d0", there is error message:
can not open physical volume
"/dev/dsk/c1t4d0"

Then i try "pvcreate /dev/rdsk/c1t4d0", there is no problem, is this command right?

Then I continue to do until the command"
vgcreate /dev/vg01 /dev/dsk/c1t4d0
There is error messege:
vgcreate: can not open the control file
"/dev/vg01/group"

Would someone please tell me what is problem?

Thanks a lot!

zhiyong
My life is now asking and learning, I wish It can change into replying and discussing
szhiyong
Frequent Advisor

Re: mount new device

Hi,

Thanks for fast reply!

i try "pvcreate /dev/dsk/c1t4d0", there is error message:
can not open physical volume
"/dev/dsk/c1t4d0"

Then i try "pvcreate /dev/rdsk/c1t4d0", there is no problem, is this command right?

Then I continue to do until the command"
vgcreate /dev/vg01 /dev/dsk/c1t4d0
There is error messege:
vgcreate: can not open the control file
"/dev/vg01/group"

Would someone please tell me what is problem?

Thanks a lot!

zhiyong
My life is now asking and learning, I wish It can change into replying and discussing
Vijeesh CTK
Trusted Contributor

Re: mount new device


look at my first reply

CTK
Vijeesh CTK
Trusted Contributor

Re: mount new device

1. pvcreate /dev/rdsk/c1t4d0
2. mkdir /dev/vgnew
3. mknod /dev/vgnew/group c 64 0x0140000 ( minor no(0x140000) shud be unique)
4. vgcreate /dev/vgnew /dev/dsk/c1t4d0
5. lvcreate -L size in MB /dev/vgnew
6. newfs -F vxfs /dev/vgnew/rlvol1
7. mount /dev/vgnew/lvol1 /your mount directory

CTK
szhiyong
Frequent Advisor

Re: mount new device

Hi,Vijeesh,

Thanks a lot for your help!! I appreciate it.

I do the following steps:
1.pvcreate /dev/rdsk/c1t4d0
2. mkdir /dev/vgnew
3. mknod /dev/vgnew/group c 64 0x0140000
There is no problem for the fist three steps, but I do:
4.vgcreate /dev/vgnew /dev/dsk/c1t4d0
There is error message:
vgcreate: can not open the control file
"/dev/vg01/group"
No such device.
I also do "diskinfo /dev/rdsk/c1t4d0", the size is 0 byte.

Thanks a lot for your help again.

zhiyong



My life is now asking and learning, I wish It can change into replying and discussing
Vijeesh CTK
Trusted Contributor

Re: mount new device


hi

I would like to know that c1t4d0 is CD drive or not. are you sure that you are having 2 disks in your system. Just Check the existence of disks in your system with the below command

ioscan -fnC disk or ioscan -funC disk

In the last column( description) u can find it the name of manufacturer. just look into that and reply

CTK
Animesh Chakraborty
Honored Contributor

Re: mount new device

Hi,
u have used wrong minor number
"mknod /dev/vgnew/group c 64 0x0140000 "
instead use mknod /dev/vgnew/group c 64 0x010000

you know why??
014 means 20 and your max_vg parameter in the kernel is 10(default)
Did you take a backup?
szhiyong
Frequent Advisor

Re: mount new device

Hi,Vijeesh and Animesh,

Thanks a lot for help.

I change 0x0140000 as 0x010000, it works, but it still have the error message:
Can not open physical volume
"c1t4d0".

The "ioscan -funC disk" file is attached.

Thanks for your help again.

zhiyong
My life is now asking and learning, I wish It can change into replying and discussing
Animesh Chakraborty
Honored Contributor

Re: mount new device

"I also do "diskinfo /dev/rdsk/c1t4d0", the size is 0 byte."

0 bytes means there is something is wrong with the drive.
Get hardwere engineer to replace the disk if not any lose connections.
Did you take a backup?
Vijeesh CTK
Trusted Contributor

Re: mount new device


do a pvcreate -f /dev/rdsk/c1t4d0

and check the diskinfo /dev/rdsk/c1t4d0

what is it showing

ad per ioscan the disk is 18GB normal SCSI disk.

CTK
Michael Tully
Honored Contributor

Re: mount new device

Was this a new disk or old one?

If it is a new one, get it replaced, it is faulty. If it is an old one it is no good.

Sorry
Anyone for a Mutiny ?
szhiyong
Frequent Advisor

Re: mount new device

Hi,Everyone,

Thanks a lot for your help.

I will ask the manufacture to replace it.

zhiyong
My life is now asking and learning, I wish It can change into replying and discussing