Re: [OpenIndiana-discuss] zpool and nfs
Hi Bernd The label won't work and I also provide /var/adm/message Thank you root@opensolaris:~# format -e Searching for disks...done AVAILABLE DISK SELECTIONS: 0. c8t0d0 DEFAULT cyl 2607 alt 2 hd 255 sec 63 /pci@0,0/pci15ad,1976@10/sd@0,0 1. c8t1d0 DEFAULT cyl 1303 alt 2 hd 255 sec 63 /pci@0,0/pci15ad,1976@10/sd@1,0 2. c8t2d0 DEFAULT cyl 1534 alt 2 hd 128 sec 32 /pci@0,0/pci15ad,1976@10/sd@2,0 Specify disk (enter its number): 2 selecting c8t2d0 [disk formatted] No Solaris fdisk partition found. FORMAT MENU: disk - select a disk type - select (define) a disk type partition - select (define) a partition table current- describe the current disk format - format and analyze the disk fdisk - run the fdisk program repair - repair a defective sector label - write label to the disk analyze- surface analysis defect - defect list management backup - search for backup labels verify - read and display labels save - save new disk/partition definitions inquiry- show vendor, product and revision scsi - independent SCSI mode selects cache - enable, disable or query SCSI disk cache volname- set 8-character volume name !cmd - execute cmd, then return quit format label WARNING - This disk may be in use by an application that has modified the fdisk table. Ensure that this disk is not currently in use before proceeding to use fdisk. /var/adm/message Jan 20 09:07:58 opensolaris pseudo: [ID 129642 kern.info] pseudo-device: pm0 Jan 20 09:07:58 opensolaris genunix: [ID 936769 kern.info] pm0 is /pseudo/pm@0 Jan 20 09:07:59 opensolaris pseudo: [ID 129642 kern.info] pseudo-device: nsmb0 Jan 20 09:07:59 opensolaris genunix: [ID 936769 kern.info] nsmb0 is /pseudo/nsmb@0 Jan 20 09:07:59 opensolaris pseudo: [ID 129642 kern.info] pseudo-device: lx_systrace0 Jan 20 09:07:59 opensolaris genunix: [ID 936769 kern.info] lx_systrace0 is /pseudo/lx_systrace@0 Jan 20 09:17:48 opensolaris mDNSResponder: [ID 702911 daemon.error] ERROR: getOptRdata - unknown opt 4 Jan 20 09:18:16 opensolaris last message repeated 5 times --- On Wed, 1/19/11, Bernd Helber be...@helber-it-services.com wrote: From: Bernd Helber be...@helber-it-services.com Subject: Re: [OpenIndiana-discuss] zpool and nfs To: Discussion list for OpenIndiana openindiana-discuss@openindiana.org Received: Wednesday, January 19, 2011, 5:37 PM format label -- select SMI Label. that should solve the issue, if there are more issues, please provide /var/adm/messages* thanks in advance. Am 19.01.11 22:53, schrieb ann kok: Hi Edward Thank you for your mail I follow your advice to reboot my computer. It is fine Now. I have problem to attach it. What can I do this? root@opensolaris:~# format -e Searching for disks...done AVAILABLE DISK SELECTIONS: 0. c8t0d0 DEFAULT cyl 2607 alt 2 hd 255 sec 63 /pci@0,0/pci15ad,1976@10/sd@0,0 1. c8t1d0 DEFAULT cyl 1303 alt 2 hd 255 sec 63 /pci@0,0/pci15ad,1976@10/sd@1,0 Specify disk (enter its number): ^C root@opensolaris:~# zpool add rpool c8t1d0 cannot label 'c8t1d0': EFI labeled devices are not supported on root pools. 2/ For the command devfsadm -Cv, I run it the first time. It showed many message but I can't catch it. I try to run again, but show nothing How can I catch those message? Thank you so much --- On Wed, 1/19/11, Edward Ned Harvey openindi...@nedharvey.com wrote: From: Edward Ned Harvey openindi...@nedharvey.com Subject: Re: [OpenIndiana-discuss] zpool and nfs To: Discussion list for OpenIndiana openindiana-discuss@openindiana.org Received: Wednesday, January 19, 2011, 4:23 PM From: ann kok [mailto:oiyan...@yahoo.ca] As I haven't received the response, I run the formart -e It said it needs around 3 hours format format Ready to format. Formatting cannot be interrupted and takes 232 minutes (estimated). Continue? Continue? y Oh my goodness. No. When you run format -e, it should just display a list of all the disks in the system (instantly), and ask you which one you want to work on, and then you quit. I'm sure I said that. Quit without changing anything. (And be careful not to break anything.) I am extremely certain I never told you to type format after you got into the format prompt. And when it prompted you Continue? You should definitely have said n instead of y You have entered the format prompt, and then entered the format command on the format prompt, which apparently does something horrific. Hopefully you're doing it to a disk you don't care about. I suggest rebooting first, just to ensure you haven't
Re: [OpenIndiana-discuss] zpool and nfs
Try to fix the Label again... then try zpool add -n the Box should give you a response. also have a look at the man page man zpool you could also try to force it with zpool add -f But please keep in mind not every device could be forced. ;) please have also a look at blogs.sun.com its a very useful ressource. Also the Solarisinternals Wiki. Cheers Am 20.01.11 16:34, schrieb ann kok: Hi Bernd SMI is selected now. But zpool add is still in problem. The /var/adm/message is showing nothing! Any idea? Thank you root@opensolaris:~# format -e Searching for disks...done AVAILABLE DISK SELECTIONS: 0. c8t0d0 DEFAULT cyl 2607 alt 2 hd 255 sec 63 /pci@0,0/pci15ad,1976@10/sd@0,0 1. c8t1d0 DEFAULT cyl 1303 alt 2 hd 255 sec 63 /pci@0,0/pci15ad,1976@10/sd@1,0 2. c8t2d0 DEFAULT cyl 1534 alt 2 hd 128 sec 32 /pci@0,0/pci15ad,1976@10/sd@2,0 Specify disk (enter its number): 2 selecting c8t2d0 [disk formatted] No Solaris fdisk partition found. FORMAT MENU: disk - select a disk type - select (define) a disk type partition - select (define) a partition table current- describe the current disk format - format and analyze the disk fdisk - run the fdisk program repair - repair a defective sector label - write label to the disk analyze- surface analysis defect - defect list management backup - search for backup labels verify - read and display labels save - save new disk/partition definitions inquiry- show vendor, product and revision scsi - independent SCSI mode selects cache - enable, disable or query SCSI disk cache volname- set 8-character volume name !cmd - execute cmd, then return quit format fdisk No fdisk table exists. The default partition for the disk is: a 100% SOLARIS System partition Type y to accept the default partition, otherwise type n to edit the partition table. y format label [0] SMI Label [1] EFI Label Specify Label type[0]: 0 Ready to label disk, continue? Ready to label disk, continue? y format quit root@opensolaris:~# zpool add rpool c8t2d0 cannot label 'c8t2d0': EFI labeled devices are not supported on root pools. root@opensolaris:~# tail /var/adm/messages Jan 20 09:07:58 opensolaris pseudo: [ID 129642 kern.info] pseudo-device: winlock0 Jan 20 09:07:58 opensolaris genunix: [ID 936769 kern.info] winlock0 is /pseudo/winlock@0 Jan 20 09:07:58 opensolaris pseudo: [ID 129642 kern.info] pseudo-device: pm0 Jan 20 09:07:58 opensolaris genunix: [ID 936769 kern.info] pm0 is /pseudo/pm@0 Jan 20 09:07:59 opensolaris pseudo: [ID 129642 kern.info] pseudo-device: nsmb0 Jan 20 09:07:59 opensolaris genunix: [ID 936769 kern.info] nsmb0 is /pseudo/nsmb@0 Jan 20 09:07:59 opensolaris pseudo: [ID 129642 kern.info] pseudo-device: lx_systrace0 Jan 20 09:07:59 opensolaris genunix: [ID 936769 kern.info] lx_systrace0 is /pseudo/lx_systrace@0 Jan 20 09:17:48 opensolaris mDNSResponder: [ID 702911 daemon.error] ERROR: getOptRdata - unknown opt 4 Jan 20 09:18:16 opensolaris last message repeated 5 times Thank you --- On Thu, 1/20/11, Bernd Helber be...@helber-it-services.com wrote: From: Bernd Helber be...@helber-it-services.com Subject: Re: [OpenIndiana-discuss] zpool and nfs To: openindiana-discuss@openindiana.org Received: Thursday, January 20, 2011, 10:13 AM Sorry i forgot, you're on x86 formatfdisk y label select SMI Label thanks in advance. Am 20.01.11 15:22, schrieb ann kok: Hi Bernd The label won't work and I also provide /var/adm/message Thank you root@opensolaris:~# format -e Searching for disks...done AVAILABLE DISK SELECTIONS: 0. c8t0d0 DEFAULT cyl 2607 alt 2 hd 255 sec 63 /pci@0,0/pci15ad,1976@10/sd@0,0 1. c8t1d0 DEFAULT cyl 1303 alt 2 hd 255 sec 63 /pci@0,0/pci15ad,1976@10/sd@1,0 2. c8t2d0 DEFAULT cyl 1534 alt 2 hd 128 sec 32 /pci@0,0/pci15ad,1976@10/sd@2,0 Specify disk (enter its number): 2 selecting c8t2d0 [disk formatted] No Solaris fdisk partition found. FORMAT MENU: disk - select a disk type - select (define) a disk type partition - select (define) a partition table current - describe the current disk format - format and analyze the disk fdisk - run the fdisk program repair - repair a defective sector label - write label to the disk analyze - surface analysis defect - defect list management backup - search for backup labels verify - read and display labels save - save new disk/partition definitions inquiry
Re: [OpenIndiana-discuss] zpool and nfs
Hi 1/ I will add the virtual drive (scsi 0:1) in the vmware. but Do I need to create the same size 30G as scsi 0:0? What is this disk name in solaris? Could you give me more info how to format this virtual drive before adding to zpool? 2/ I am using linux to share in linux, I simple to put it /etc/exports and exportfs -vs Now, I don't know what problem in mounting in opensolaris I try it nfs version4 Thank you again --- On Wed, 1/19/11, William David OpenIndiana oili...@biosystems.ath.cx wrote: From: William David OpenIndiana oili...@biosystems.ath.cx Subject: Re: [OpenIndiana-discuss] zpool and nfs To: Discussion list for OpenIndiana openindiana-discuss@openindiana.org Received: Wednesday, January 19, 2011, 5:08 AM Good morning How you share a nfs on oi server ?? How command you use zfs set sharenfs=root=@192.168.0.5 pool/share For not wait a dns resolve on nfs connection And mapping as root privileges this share Or a zfs set sharenfs=someuser=@192.168.0.5 pool/share For map a specific user a share. In thus case how a uid of owner of the oi side zfs and a privileges on a folder ls -l pool/ dwrxwrxw-x+ someone somegroup share This is only a example but in both side a uid is the same someone = 1000 somegroup = 1000 At last how version of nfs you try using nfs v3 or nfsv4 ? -- - = - = - = - = - = - = - = - = - = - . Of course it runs William David Armstrong |== Bio Systems Security Networking ' FreeBSD MSN / GT biosystems gmail . com http://biosystems.ath.cx:8080/ http://biosystems.broker.freenet6.net/ -- Em 18/01/2011, às 23:19, Edward Ned Harvey openindi...@nedharvey.com escreveu: From: ann kok [mailto:oiyan...@yahoo.ca] My opensolaris is installed on vmware and I allocate 30G for it When I install opensolaris, I remember to use 20G. Now I want to use the rest of the 10G. Can you show me the command? How did you use only 20G out of 30G? By default, I think the installer uses the whole drive. If you have a 10G slice, c0t0d0s6 for example... zpool add rpool c0t0d0s6 If you have another virtual disk, c0t2d0 for example... zpool add rpool c0t2d0 If you are unsure what you have... format -e (and be careful not to break anything) How can I verify I am using 20G now? Both df and zpool list and zfs list will give you information. Typically different information. ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] zpool and nfs
From: ann kok [mailto:oiyan...@yahoo.ca] 1/ I will add the virtual drive (scsi 0:1) in the vmware. but Do I need to create the same size 30G as scsi 0:0? What is this disk name in solaris? It can be any size you want. Run: devfsadm -Cv and hopefully the drive will appear. Run: format -e (and then quit without changing anything) and hopefully you'll immediately recognize the name of the new disk. Run: zpool add rpool newdevicename (where newdevicename is the name of your new device) Don't format it or anything first. Just add it. Period. ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] zpool and nfs
Hi Edward Thank you for your help As I haven't received the response, I run the formart -e It said it needs around 3 hours format format Ready to format. Formatting cannot be interrupted and takes 232 minutes (estimated). Continue? Continue? y Now, I have questions 1/ Why it needs long time (232 minutes) to format 10G? 2/ Can I stop it? Crtl C? 3/ For the normal procedure, I don't need to format the drive before using zpool add rpool newdevice 4/ What is the different betwen zpool attach zpool and zpool add zpool Thank you again --- On Wed, 1/19/11, Edward Ned Harvey openindi...@nedharvey.com wrote: From: Edward Ned Harvey openindi...@nedharvey.com Subject: Re: [OpenIndiana-discuss] zpool and nfs To: Discussion list for OpenIndiana openindiana-discuss@openindiana.org Received: Wednesday, January 19, 2011, 11:48 AM From: ann kok [mailto:oiyan...@yahoo.ca] 1/ I will add the virtual drive (scsi 0:1) in the vmware. but Do I need to create the same size 30G as scsi 0:0? What is this disk name in solaris? It can be any size you want. Run: devfsadm -Cv and hopefully the drive will appear. Run: format -e (and then quit without changing anything) and hopefully you'll immediately recognize the name of the new disk. Run: zpool add rpool newdevicename (where newdevicename is the name of your new device) Don't format it or anything first. Just add it. Period. ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] zpool and nfs
From: ann kok [mailto:oiyan...@yahoo.ca] As I haven't received the response, I run the formart -e It said it needs around 3 hours format format Ready to format. Formatting cannot be interrupted and takes 232 minutes (estimated). Continue? Continue? y Oh my goodness. No. When you run format -e, it should just display a list of all the disks in the system (instantly), and ask you which one you want to work on, and then you quit. I'm sure I said that. Quit without changing anything. (And be careful not to break anything.) I am extremely certain I never told you to type format after you got into the format prompt. And when it prompted you Continue? You should definitely have said n instead of y You have entered the format prompt, and then entered the format command on the format prompt, which apparently does something horrific. Hopefully you're doing it to a disk you don't care about. I suggest rebooting first, just to ensure you haven't destroyed your system. You may have destroyed it. Here is an example: [root@FILER ~]# format -e Searching for disks...done AVAILABLE DISK SELECTIONS: 0. c0d0 ST325082- 5QE4X6G-0001-232.83GB /pci@0,0/pci15ad,7a0@15/pci-ide@0/ide@0/cmdk@0,0 1. c2t0d0 DEFAULT cyl 3913 alt 2 hd 255 sec 63 /pci@0,0/pci15ad,1976@10/sd@0,0 2. c2t1d0 VMware-Virtual disk-1.0-200.00GB /pci@0,0/pci15ad,1976@10/sd@1,0 3. c2t2d0 VMware-Virtual disk-1.0-170.00GB /pci@0,0/pci15ad,1976@10/sd@2,0 Specify disk (enter its number): ^C I'm sure I said this too. Don't bother formatting any disks. Just use zpool add. End of story. It will use the whole device, and it's an instant operation. 4/ What is the different betwen zpool attach zpool and zpool add Zpool attach will create a mirror of a device which was not previously mirrored. Zpool add will add storage to a pool. If you add a single device, then it's not redundant. If you add a mirror or a raidz, then it's redundant. ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] zpool and nfs
Hi Edward Thank you for your mail I follow your advice to reboot my computer. It is fine Now. I have problem to attach it. What can I do this? root@opensolaris:~# format -e Searching for disks...done AVAILABLE DISK SELECTIONS: 0. c8t0d0 DEFAULT cyl 2607 alt 2 hd 255 sec 63 /pci@0,0/pci15ad,1976@10/sd@0,0 1. c8t1d0 DEFAULT cyl 1303 alt 2 hd 255 sec 63 /pci@0,0/pci15ad,1976@10/sd@1,0 Specify disk (enter its number): ^C root@opensolaris:~# zpool add rpool c8t1d0 cannot label 'c8t1d0': EFI labeled devices are not supported on root pools. 2/ For the command devfsadm -Cv, I run it the first time. It showed many message but I can't catch it. I try to run again, but show nothing How can I catch those message? Thank you so much --- On Wed, 1/19/11, Edward Ned Harvey openindi...@nedharvey.com wrote: From: Edward Ned Harvey openindi...@nedharvey.com Subject: Re: [OpenIndiana-discuss] zpool and nfs To: Discussion list for OpenIndiana openindiana-discuss@openindiana.org Received: Wednesday, January 19, 2011, 4:23 PM From: ann kok [mailto:oiyan...@yahoo.ca] As I haven't received the response, I run the formart -e It said it needs around 3 hours format format Ready to format. Formatting cannot be interrupted and takes 232 minutes (estimated). Continue? Continue? y Oh my goodness. No. When you run format -e, it should just display a list of all the disks in the system (instantly), and ask you which one you want to work on, and then you quit. I'm sure I said that. Quit without changing anything. (And be careful not to break anything.) I am extremely certain I never told you to type format after you got into the format prompt. And when it prompted you Continue? You should definitely have said n instead of y You have entered the format prompt, and then entered the format command on the format prompt, which apparently does something horrific. Hopefully you're doing it to a disk you don't care about. I suggest rebooting first, just to ensure you haven't destroyed your system. You may have destroyed it. Here is an example: [root@FILER ~]# format -e Searching for disks...done AVAILABLE DISK SELECTIONS: 0. c0d0 ST325082- 5QE4X6G-0001-232.83GB /pci@0,0/pci15ad,7a0@15/pci-ide@0/ide@0/cmdk@0,0 1. c2t0d0 DEFAULT cyl 3913 alt 2 hd 255 sec 63 /pci@0,0/pci15ad,1976@10/sd@0,0 2. c2t1d0 VMware-Virtual disk-1.0-200.00GB /pci@0,0/pci15ad,1976@10/sd@1,0 3. c2t2d0 VMware-Virtual disk-1.0-170.00GB /pci@0,0/pci15ad,1976@10/sd@2,0 Specify disk (enter its number): ^C I'm sure I said this too. Don't bother formatting any disks. Just use zpool add. End of story. It will use the whole device, and it's an instant operation. 4/ What is the different betwen zpool attach zpool and zpool add Zpool attach will create a mirror of a device which was not previously mirrored. Zpool add will add storage to a pool. If you add a single device, then it's not redundant. If you add a mirror or a raidz, then it's redundant. ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
[OpenIndiana-discuss] zpool and nfs
Hi My opensolaris is installed on vmware and I allocate 30G for it When I install opensolaris, I remember to use 20G. Now I want to use the rest of the 10G. Can you show me the command? How can I verify I am using 20G now? I forgot how to calcuate root@opensolaris:~# df -h FilesystemSize Used Avail Use% Mounted on rpool/ROOT/opensolaris 19G 2.9G 16G 16% / swap 885M 348K 885M 1% /etc/svc/volatile /usr/lib/libc/libc_hwcap1.so.1 19G 2.9G 16G 16% /lib/libc.so.1 swap 885M 4.0K 885M 1% /tmp swap 885M 48K 885M 1% /var/run rpool/export 16G 23K 16G 1% /export rpool/export/home 16G 42K 16G 1% /export/home rpool/export/home/oiyan 16G 871K 16G 1% /export/home/oiyan rpool 16G 79K 16G 1% /rpool Can I use the rest of disk to do the zpool? eg: zpool attach rpool x I also have nfs issue When I mount the share drive from linux, I have this error root@opensolaris:~# mount 192.168.0.5:/share /linux nfs mount: mount: /linux: Not owner Thank you so much ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] zpool and nfs
From: ann kok [mailto:oiyan...@yahoo.ca] My opensolaris is installed on vmware and I allocate 30G for it When I install opensolaris, I remember to use 20G. Now I want to use the rest of the 10G. Can you show me the command? How did you use only 20G out of 30G? By default, I think the installer uses the whole drive. If you have a 10G slice, c0t0d0s6 for example... zpool add rpool c0t0d0s6 If you have another virtual disk, c0t2d0 for example... zpool add rpool c0t2d0 If you are unsure what you have... format -e (and be careful not to break anything) How can I verify I am using 20G now? Both df and zpool list and zfs list will give you information. Typically different information. ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss