1753325 Members
5848 Online
108792 Solutions
New Discussion юеВ

Re: 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