Re: trying to understand assemble option in mdadm please help.

2012-07-17 Thread Muhammad Yousuf Khan
On Mon, Jul 16, 2012 at 6:39 PM, Gary Dale garyd...@rogers.com wrote:
 On 16/07/12 08:12 AM, Muhammad Yousuf Khan wrote:

 apart from my question i know what does assemble mean but most of
 the time it create conflict with the option add.
 for example.

 if raid is broken then i can just re-add the the broken partition

 if my HD fails then i will add the new drive, recreate the partition
 and add it to new array and cat /proc/mdstat will show me the sync
 status.

 but now the next question coming in my mind is why assemble.

 i also observed that some time when i restart the computer contain
 RAID1 after 2 or 3 months it start to test or (maybe)assemble one of
 the partition by saying that (more or less) that the raid has not been
 tested for this this days so now reassembling (sorry if i am wrong
 since i can not recall the whole message)
 so the point why assemble is necessary?

 if assembling is that necessary then why should i wait to restart. i
 can do this manually every week or can schedule a task for it.

 Thanks,

 Assemble builds the arrays based on the information contained in the
 superblock. The testing you are talking about is more likely fsck checking
 the file system(s) on the arrays.

if Assemble builds the array then what is the purpose of --create
option. sorry if my question is a bit annoying but i am confuse in
this.

 is there a difference in creating and building the array?

Thanks,


 It is possible for arrays to get out of sync due to a power outage or
 improper shutdown but in practice this is unlikely. Nonetheless, mdadm
 should also check for the consistency of the arrays periodically. If it
 doesn't do this and a drive fails, it may not be possible to rebuild the
 array.

 The /etc/crontab.d folder on my Wheezy system contains an mdadm entry which
 was put there by the package maintainer or developer. It includes the line:

  57 0 * * 0 root if [ -x /usr/share/mdadm/checkarray ]  [ $(date +\%d) -le
 7 ]; then /usr/share/mdadm/checkarray --cron --all --idle --quiet; fi

 which checks all the arrays once a month. This is a trade off since you
 don't want to spend too much time checking arrays. If possible, you may want
 to run checkarray before your drive has failed to ensure that your array is
 consistent before pulling the failing drive.


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject
 of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/50041992.7020...@rogers.com



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmkf4zxrojv5j+lhgcodh7grbqqgq745a8gyo+a60ss...@mail.gmail.com



Re: trying to understand assemble option in mdadm please help.

2012-07-17 Thread Muhammad Yousuf Khan
or just one thing if you please explain these commands. i think my
confusion will be cleared
mdadm --assemble /dev/md1 /dev/hda1
mdadm --assemble /dev/md3 /dev/hda3

mdadm --add /dev/md1 /dev/hdb1
mdadm --add /dev/md3 /dev/hdb3

what is the difference in both command thanks. any help will be highly
appreciated.


On Wed, Jul 18, 2012 at 12:36 AM, Muhammad Yousuf Khan sir...@gmail.com wrote:
 On Mon, Jul 16, 2012 at 6:39 PM, Gary Dale garyd...@rogers.com wrote:
 On 16/07/12 08:12 AM, Muhammad Yousuf Khan wrote:

 apart from my question i know what does assemble mean but most of
 the time it create conflict with the option add.
 for example.

 if raid is broken then i can just re-add the the broken partition

 if my HD fails then i will add the new drive, recreate the partition
 and add it to new array and cat /proc/mdstat will show me the sync
 status.

 but now the next question coming in my mind is why assemble.

 i also observed that some time when i restart the computer contain
 RAID1 after 2 or 3 months it start to test or (maybe)assemble one of
 the partition by saying that (more or less) that the raid has not been
 tested for this this days so now reassembling (sorry if i am wrong
 since i can not recall the whole message)
 so the point why assemble is necessary?

 if assembling is that necessary then why should i wait to restart. i
 can do this manually every week or can schedule a task for it.

 Thanks,

 Assemble builds the arrays based on the information contained in the
 superblock. The testing you are talking about is more likely fsck checking
 the file system(s) on the arrays.

 if Assemble builds the array then what is the purpose of --create
 option. sorry if my question is a bit annoying but i am confuse in
 this.

  is there a difference in creating and building the array?

 Thanks,


 It is possible for arrays to get out of sync due to a power outage or
 improper shutdown but in practice this is unlikely. Nonetheless, mdadm
 should also check for the consistency of the arrays periodically. If it
 doesn't do this and a drive fails, it may not be possible to rebuild the
 array.

 The /etc/crontab.d folder on my Wheezy system contains an mdadm entry which
 was put there by the package maintainer or developer. It includes the line:

  57 0 * * 0 root if [ -x /usr/share/mdadm/checkarray ]  [ $(date +\%d) -le
 7 ]; then /usr/share/mdadm/checkarray --cron --all --idle --quiet; fi

 which checks all the arrays once a month. This is a trade off since you
 don't want to spend too much time checking arrays. If possible, you may want
 to run checkarray before your drive has failed to ensure that your array is
 consistent before pulling the failing drive.


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject
 of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/50041992.7020...@rogers.com



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmmhtdfr04zjjig+jxnpahqsbpt844cb-kgyw0_1mqf...@mail.gmail.com



Re: trying to understand assemble option in mdadm please help.

2012-07-17 Thread Muhammad Yousuf Khan
On Wed, Jul 18, 2012 at 12:59 AM, Gary Dale garyd...@rogers.com wrote:
 On 17/07/12 03:48 PM, Muhammad Yousuf Khan wrote:

 or just one thing if you please explain these commands. i think my
 confusion will be cleared
 mdadm --assemble /dev/md1 /dev/hda1
 mdadm --assemble /dev/md3 /dev/hda3

 mdadm --add /dev/md1 /dev/hdb1
 mdadm --add /dev/md3 /dev/hdb3

 what is the difference in both command thanks. any help will be highly
 appreciated.

 The first set of commands should give you error messages unless the disk
 devices are actually part of the array. Assemble normally doesn't need to
 know the disk partitions that form the array, but you can list them. This
 could be done if the superblocks were damaged, for example. You need to get
 the order right in that case or the device may not be readable.

 The normal command would be just mdadm --assemble /dev/md1. The alternative
 would be to relist all the constituent devices.

 The second set of commands should give you error messages if the disk
 devices are already part of the array. Add puts a new drive into the array.
 The drive will be assumed to be dirty and a re-syncing operation will
 commence.



just one last question what do you mean by build. do you mean the sync
which shows in cat /proc/mdstat and show the sync status b/w the two
partition. does this called build?




 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject
 of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/5005c43a.4090...@rogers.com



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmk+5t7d7o0k25somngbk5a6pgdhi6rokgguud1jamm...@mail.gmail.com



Re: trying to understand assemble option in mdadm please help.

2012-07-18 Thread Muhammad Yousuf Khan
On Wed, Jul 18, 2012 at 2:17 AM, Bob Proulx b...@proulx.com wrote:
 Muhammad Yousuf Khan wrote:
 Gary Dale wrote:
  Muhammad Yousuf Khan wrote:
  or just one thing if you please explain these commands. i think my
  confusion will be cleared
  mdadm --assemble /dev/md1 /dev/hda1
  mdadm --assemble /dev/md3 /dev/hda3
 
  The first set of commands should give you error messages unless
  the disk devices are actually part of the array. Assemble normally
  doesn't need to know the disk partitions that form the array, but
  you can list them. This could be done if the superblocks were
  damaged, for example. You need to get the order right in that case
  or the device may not be readable.

 The first command assembles an array using only one of the devices.
 This emits a degraded array of only one of the two mirrored devices.
 This is useful in specialized instances.  It isn't the typical thing
 to do.  It is sometimes useful to create a degraded array with one
 disk now and then later add a second disk.  This appears to be what
 you are doing across the two sets of commands.

 If you assemble an array with only one disk then there is no
 redundancy.  If you assemble an array with only one disk then the
 array will be marked degraded and later when a second disk is added
 then the array must be sync'd in order to bring it into normal
 operation.  That sync'ing process may take a long time.

  The normal command would be just mdadm --assemble /dev/md1. The
  alternative would be to relist all the constituent devices.

 Agreed.  Assembling the array with a single disk into a degraded mode
 isn't typical.  But it is useful for recovery data from a failed disk
 on a second system used for data recovery.

  mdadm --add /dev/md1 /dev/hdb1
  mdadm --add /dev/md3 /dev/hdb3
 
  what is the difference in both command thanks. any help will be highly
  appreciated.
 
  The second set of commands should give you error messages if the disk
  devices are already part of the array. Add puts a new drive into the array.
  The drive will be assumed to be dirty and a re-syncing operation will
  commence.

 Yes.  But by the combination of the two sets of commands:

  mdadm --assemble /dev/md1 /dev/hda1
  mdadm --assemble /dev/md3 /dev/hda3
  mdadm --add /dev/md1 /dev/hdb1
  mdadm --add /dev/md3 /dev/hdb3

 That appears to be a less efficient way of doing this:

   mdadm --assemble /dev/md1 /dev/hda1 /dev/hdb1
   mdadm --assemble /dev/md3 /dev/hda3 /dev/hdb3

 If you have two disks that you are trying to assemble into a RAID1
 mirror then you should assemble both devices together at once so that
 the raid array may remain in sync.

 Let me guess...  If you are recovering a single disk from a two disk
 mirror but with one disk failed onto a second machine then (and pretty
 much only then, no other time) would the combination of commands make
 sense to me.

 just one last question what do you mean by build. do you mean the sync
 which shows in cat /proc/mdstat and show the sync status b/w the two
 partition. does this called build?

 I went looking for that build you referenced:

 Gary Dale wrote in a previous message:
 Assemble builds the arrays based on the information contained in the
 superblock.

 Build and assemble are very similar in meaning in that context.
 An array must first be created.  After an array has been created
 then at future system boot times it will only be assembled (or built)
 and not created again.  Create zeros data and starts a clean empty
 block of data with any previous data destroyed.  Assemble or build
 does not destroy data but activates an existing array with existing
 data and makes the existing data available.

 Bob

Thanks you :) Bob and Gary


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfM=wwh2_uojxte2smra8ulfqtfmuhbfbptmdmu_omkk...@mail.gmail.com



pam authentication issue

2012-07-18 Thread Muhammad Yousuf Khan
i am using a kvm-qemu proxmox front end as GUI. recently i installed
ocsinventory-agent packege to update my inventory server
my base machine successfully sent the inventory but now when i try to
login to gui it browser refuse and give me an error
You could not be logged on. Make sure your user name and password are
correct, and then try again

i am getting this log in the error

uID 17378
DateToday 16:30:02
Hostlion
Messagetype Syslog
FacilitySECURITY
SeverityERR
Syslogtag   lion
Checksum0
Message worker: PAM unable to dlopen(/lib/security/pam_unix.so):
/lib/libnsl.so.1: symbol __libc_clntudp_bufcreate, version
GLIBC_PRIVATE not defined in file libc.so.6 with link time reference

uID 17376
DateToday 16:19:34
Hostlion
Messagetype Syslog
FacilitySECURITY
SeverityERR
Syslogtag   lion
Checksum0
Message worker: PAM adding faulty module: /lib/security/pam_unix.so




here is the version detail of specified module in the log. (i think
old version has been replaced with new and the base machine has lost
the authentication specifications)


problem machine (where ocs agent packege has been installed)
-

# dpkg -l | grep libc6
ii  libc6   2.11.3-3
Embedded GNU C Library: Shared libraries
ii  libc6-i386  2.11.3-3
Embedded GNU C Library: 32-bit shared libraries for AMD64


old machine 1 ( haven't installed ocs agent and working fine)

  dpkg -l | grep libc6
ii  libc6 2.7-18lenny7   GNU C
Library: Shared libraries
ii  libc6-i3862.7-18lenny7   GNU C
Library: 32bit shared libraries for AM




old machine 2 (haven't installed ocs agent and working fine)
--
dpkg -l | grep libc6
ii  libc6 2.13-27
Embedded GNU C Library: Shared libraries
ii  libc6-i3862.13-27
Embedded GNU C Library: 32-bit shared librar


Thanks,


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmkeaclpwdo-dtzej5x8lmdyrp6cne2vuh9xzt_ohwa...@mail.gmail.com



Re: pam authentication issue

2012-07-18 Thread Muhammad Yousuf Khan
i am trying to scan google for the solution for the said error since
morning and i learn that this error is a bug and the issue has been
occurred because the new version of library has replace the old one.

and now i can not sort out which file could be replaced and how :(

any advice / recommendation /suggestion would be highly appreciated.

Thanks,

On Wed, Jul 18, 2012 at 7:42 PM, Muhammad Yousuf Khan sir...@gmail.com wrote:
 i am using a kvm-qemu proxmox front end as GUI. recently i installed
 ocsinventory-agent packege to update my inventory server
 my base machine successfully sent the inventory but now when i try to
 login to gui it browser refuse and give me an error
 You could not be logged on. Make sure your user name and password are
 correct, and then try again

 i am getting this log in the error

 uID 17378
 DateToday 16:30:02
 Hostlion
 Messagetype Syslog
 FacilitySECURITY
 SeverityERR
 Syslogtag   lion
 Checksum0
 Message worker: PAM unable to dlopen(/lib/security/pam_unix.so):
 /lib/libnsl.so.1: symbol __libc_clntudp_bufcreate, version
 GLIBC_PRIVATE not defined in file libc.so.6 with link time reference

 uID 17376
 DateToday 16:19:34
 Hostlion
 Messagetype Syslog
 FacilitySECURITY
 SeverityERR
 Syslogtag   lion
 Checksum0
 Message worker: PAM adding faulty module: /lib/security/pam_unix.so




 here is the version detail of specified module in the log. (i think
 old version has been replaced with new and the base machine has lost
 the authentication specifications)


 problem machine (where ocs agent packege has been installed)
 -

 # dpkg -l | grep libc6
 ii  libc6   2.11.3-3
 Embedded GNU C Library: Shared libraries
 ii  libc6-i386  2.11.3-3
 Embedded GNU C Library: 32-bit shared libraries for AMD64


 old machine 1 ( haven't installed ocs agent and working fine)
 
   dpkg -l | grep libc6
 ii  libc6 2.7-18lenny7   GNU C
 Library: Shared libraries
 ii  libc6-i3862.7-18lenny7   GNU C
 Library: 32bit shared libraries for AM




 old machine 2 (haven't installed ocs agent and working fine)
 --
 dpkg -l | grep libc6
 ii  libc6 2.13-27
 Embedded GNU C Library: Shared libraries
 ii  libc6-i3862.13-27
 Embedded GNU C Library: 32-bit shared librar


 Thanks,


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmnddt650eehkac1vy_ellhs78kq89hzvyx2t1pd5e1...@mail.gmail.com



LVM creation methods

2012-07-20 Thread Muhammad Yousuf Khan
i was reading a document where a person has configured physical volume
and didn't use fdisk
  he just directly created the partition by pvcreate /dev/sda

and there are some documents which shows the utilization of fdisk and
converting sda1 to 8e type  which is LVM.

so the question is what is the difference b/w creating it directly on
disk by pvcreate command and by using fdisk.

actually i have just created the partition via direct command
pvcreate /dev/sda  it is fully functionally and i can use it as a
partition but when i fdisk -l /dev/sda  it shows that the disk is
empty. so i am worried that is it the proper way to do it or else i
may not end up with consequences.


Thanks,


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfMme=r7mxbqpcujp7xtn-3uxzpurd5fnh6cvouxn1nx...@mail.gmail.com



Re: LVM creation methods

2012-07-20 Thread Muhammad Yousuf Khan
thanks it is very clear,

yes, i am using the second disk just for storage purpose. so i am not
worried about the booting since it is already been handled via
/dev/sdb
so no issues for me.

Thanks both Meike and Darac

On Fri, Jul 20, 2012 at 5:53 PM, Darac Marjal mailingl...@darac.org.uk wrote:
 On Fri, Jul 20, 2012 at 05:35:03PM +0500, Muhammad Yousuf Khan wrote:
 i was reading a document where a person has configured physical volume
 and didn't use fdisk
   he just directly created the partition by pvcreate /dev/sda

 and there are some documents which shows the utilization of fdisk and
 converting sda1 to 8e type  which is LVM.

 so the question is what is the difference b/w creating it directly on
 disk by pvcreate command and by using fdisk.

 With one, you're using the whole disk, with the other, you're using a
 portion of the disk. If you want to use the disk with non-LVM-aware
 operating systems, then you'll need to partition the disk and give them
 a partition. Bear in mind that non-LVM-aware probably includes your
 BIOS, too, so a whole-disk PV is unbootable.

 That said, if you only want to use that disk for LVM, then there is no
 issue with using the whole disk. In fact, for Advanced Format disks and
 SSDs, it may be preferable as you're more likely to get the alignment
 right on them.


 actually i have just created the partition via direct command
 pvcreate /dev/sda  it is fully functionally and i can use it as a
 partition but when i fdisk -l /dev/sda  it shows that the disk is
 empty. so i am worried that is it the proper way to do it or else i
 may not end up with consequences.

 fdisk only reads (as far as I'm aware) PC-style partition tables. If it
 says the disk is empty, what it's saying is that there's no partition
 table there. If you had a GPT on there, you'd likely get the same
 message (actually, newer versions DO detect GPT and print a complaint).

 Use the right tools for the job. If you have a partition table, read it
 with fdisk. If you have a PV on there, use LVM tools.


 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (GNU/Linux)

 iQIcBAEBCgAGBQJQCVTMAAoJEKB7YbRsd8TGWPsP/2/mEFndeci7aOlwSEgnrv/e
 mL1f5431IuH8g78BVP/DYDrRfDt5OJqqmPdMIuteZKdfA9QcmciOgyfrlpqnh0l1
 fgQbbJDgItHoHOpYiCowAXvn2qFZM/s+1NHW4qBxLSn2A2jQTOfC58dg47ML5FC5
 UsrtiN3h7Mo5DKnHG61m9VZUTt0KtplQbDp9mT2oOhJf8pk2mYmI9b7+tYh/NBSY
 erg0X5lxeBp7D7hHmfr25fbYP5++2r7jZ7oPKx9j42+X9vT4zZ+XH/2wVA1QaEBY
 XeswtEQ9wayzyzwuTAk85kijAy2xY0QYCMdVEH5G420D8gOx+pUCiZ7G4RUPby05
 /6fPXMunkkADlHSszhJNRJ+0vaTSwUUXKU41+lVY1ipMAXhNjAib7IitDV9EBVwY
 corv0kheqG+p765InbCSR3l/IGl5ExyPNd93twp2k2F+xDqDl8ybY02A9ruyMHxD
 BrtCuGTMkY6pPzFijddbzC6vFhZKnfUlSXzaChUg8MrDGImWYbvZGX9n4ldQA3za
 o4EyJ1siqOwpwqZ8FPVMr3SHSz0Rc+YnTv96lyP2jgBfHoKz/uj9pMBzd+zqut7g
 C6pfYACDutg/NtPPDm09ZyRedjf8mV/LMPifw5/ZGbEmYlHD+8Adh1/dt0gcFVmC
 hBGBAsR1hnSHAmJTkLkS
 =esrX
 -END PGP SIGNATURE-



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfM=837eaexrp5npxmdgs0o-jzlac4jfszf91yn66mng...@mail.gmail.com



mail server

2012-07-25 Thread Muhammad Yousuf Khan
need suggestions, i know there are few populer mail servers like
postfix, sandmail etc out there.

here is some details about my office.

1. 20 users.
2. pop from main server
3. send via SMTP
4. local mail distribution IMAP

i am not looking in to easy or hard mail server. what i am looking is
it should be good for my carrier and  for my office too.
secure, stable, web base console etc.

btw, i have heard that there is a mailserver called zimbra. but i
think debian is not natively supporting it.

any help would be appreciable.



Thanks,


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmk21bvtuvzbxgzvtjgpu-1tscegl-uzgluuupktban...@mail.gmail.com



Re: mail server

2012-07-25 Thread Muhammad Yousuf Khan
On Wed, Jul 25, 2012 at 5:21 PM, ew e...@carry-her.com wrote:

 On Jul 25, 2012, at 7:52 AM, Muhammad Yousuf Khan wrote:

 need suggestions, i know there are few populer mail servers like
 postfix, sandmail etc out there.

 here is some details about my office.

 1. 20 users.
 2. pop from main server
 3. send via SMTP
 4. local mail distribution IMAP

 i am not looking in to easy or hard mail server. what i am looking is
 it should be good for my carrier and  for my office too.
 secure, stable, web base console etc.

 btw, i have heard that there is a mailserver called zimbra. but i
 think debian is not natively supporting it.

 any help would be appreciable.



 Thanks,






 For a simple feature rich mail server check out citadel.
 There are packages in Debian.  I will easily meet all your needs.

 It is lighter weight compared to Zimbra with many of the same features.
 I'm able to run Citadel on a very modest VPS (384MB RAM) along with
 several hosted websites/email domains.

what is the perpuse of this package are you using it for local office
or as a service provider? for how many users you are using this
package. if VPS then how you cater the security issues. like open smtp
relay. spam control and other security related matters.



 Good Luck,


 Eric









 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: 
 http://lists.debian.org/cagwvfmk21bvtuvzbxgzvtjgpu-1tscegl-uzgluuupktban...@mail.gmail.com



 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: 
 http://lists.debian.org/f1ff7563-ec35-4888-b0b9-b8555ca83...@carry-her.com



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmm7+-gu3lqcvcnbkb1sl633fh8qz9rxckmg7w3ynrj...@mail.gmail.com



Re: mail server

2012-07-25 Thread Muhammad Yousuf Khan
On Wed, Jul 25, 2012 at 5:38 PM, Denis Witt
denis.w...@concepts-and-training.de wrote:
 On 25.07.2012 13:52, Muhammad Yousuf Khan wrote:

 here is some details about my office.


 1. 20 users.
 2. pop from main server
 3. send via SMTP
 4. local mail distribution IMAP


 i am not looking in to easy or hard mail server. what i am looking is
 it should be good for my carrier and  for my office too.
 secure, stable, web base console etc.


 btw, i have heard that there is a mailserver called zimbra. but i
 think debian is not natively supporting it.


 Hi,

 you will need at least two things, an SMTP Server (like postfix) and an
 IMAP/POP3 Server (like dovecot).

 Over the years I have used many different programs for that, starting with
 Exim. But now I always use Postfix and Dovecot together with LDAP, Amavis
 (Spamassassin, ClamAV) and Postgrey.

 Dovecot is quite easy to set up. Postfix might be a bit trickier, but it is
 very well documented (and the mailing list is very responsive).

 Anyway, regardless which server you will choose, please do a lot of research
 before you launch the server for public use. It is rather easy to set up an
 open relay anybody could use for sending SPAM. Your IP will be show up on
 Blacklists and you will have a lot of trouble removing them from those
 lists.

 Also it is important not to use a dailup IP, instead you will need a proper
 static IP with correct rDNS settings. If you don't have that in your office
 you will have to use a relay server to send mails (external).

Thanks for letting me know these matters but i am not using it
publicly i will be downloading my emails from my hosted mail server.




 To have a web based access to your mails I would recommend roundcube.
 Which is very easy to set up and not too bloated so your users will be fine
 with that very quickly.

 If you want a web based console for all the Admin stuff you can use
 webmin, but usually there is no need for that once the server is up and
 running.

 The advance setting up your mail server by hand is that you will get a
 deeper understanding of what happens in case of problems. Zimbra is more
 like a black box doing some magic stuff inside. (As fas as I know Zimbra is
 based on Postfix.) Zimbra is also much more than just an Mailserver, it's
 more like a collaboration tool like Microsoft Exchange/Outlook.

 Bye.



 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject
 of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/500fe8a9.5000...@concepts-and-training.de



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfMnCnU=J=7t2XNdePF9LZG=jq7pdkdphdmvq0dxnwef...@mail.gmail.com



Re: mail server

2012-07-25 Thread Muhammad Yousuf Khan
On Wed, Jul 25, 2012 at 7:57 PM, Camaleón noela...@gmail.com wrote:
 On Wed, 25 Jul 2012 16:52:25 +0500, Muhammad Yousuf Khan wrote:

 need suggestions, i know there are few populer mail servers like
 postfix, sandmail etc out there.

 here is some details about my office.

 1. 20 users.
 2. pop from main server
 3. send via SMTP
 4. local mail distribution IMAP

 i am not looking in to easy or hard mail server. what i am looking is it
 should be good for my carrier and  for my office too. secure, stable,
 web base console etc.

 btw, i have heard that there is a mailserver called zimbra. but i think
 debian is not natively supporting it.

 Ugh... I would avoid Zimbra as much as I can (nothing against it, is just
 I don't like all-in-one solutions for mail services I prefer small pieces
 of software performing a brilliantly work) :-)

 any help would be appreciable.

 My ingredients for the recipe:

 - Fetchmail (or getmail) for polling e-mails form your remote provider
 - Postfix (for local/remote lmtp/smtp services)
 - Cyrus (for local/remote pop/imap services)
 - Spamassassin (anti-spam)
 - ClamAV (antivirus if using windows stations)
 - Amavisd-new (I call it the glue because I use it to join all the
 pieces)

 I have no webmail (forbidden), e-mail users are stored in a separate
 database (sasl2db) and are not system users which means no login shell.


how you perform basic tasks like mail-ques checking, logs, mail box
create, delete, mail restriction .etc.?



 This setup has been serving me very well during many years and is very
 flexible and powerful (though not easy to setup) because as it can be
 expanded to support more users and a different user database backend
 (e.g., SQL, PAM...).

 Greetings,

 --
 Camaleón


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/jup1ga$ot7$9...@dough.gmane.org



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfMm7nAeuGsBmeUWcRtcKKnb=Y8Xan1PPt=nvgpyulkm...@mail.gmail.com



Re: mail server

2012-07-28 Thread Muhammad Yousuf Khan
On Sat, Jul 28, 2012 at 8:34 AM, Brad Alexander stor...@gmail.com wrote:
 On Wed, Jul 25, 2012 at 8:20 AM, J. B baksh...@gmail.com wrote:
 On Wed, 25 Jul 2012 19:58:39 +0800
 Umarzuki Mochlis umarz...@gmail.com wrote:

 2012/7/25 Muhammad Yousuf Khan sir...@gmail.com:
  need suggestions, i know there are few populer mail servers like
  postfix, sandmail etc out there.
 
  here is some details about my office.
 
  1. 20 users.
  2. pop from main server
  3. send via SMTP
  4. local mail distribution IMAP
 
  i am not looking in to easy or hard mail server. what i am looking is
  it should be good for my carrier and  for my office too.
  secure, stable, web base console etc.
 
  btw, i have heard that there is a mailserver called zimbra. but i
  think debian is not natively supporting it.
 
  any help would be appreciable.
 

 check iredmail. Easy to install.


 zimbra mail server
 ispmail server

 I wouldn't run zimbra unless you have pretty powerful hardware. I ran
 zimbra on a p4 with 1.5gb of ram and was rebooting it weekly. The java
 processes would deplete memory in that time.

 I have since replaced it with a much lighter vm running postfix +
 dovecot (imap/pop server) + roundcube (webmail).

 --b


is there any good howto on Debian Squeeze on following tools

-postfidx
-dovecot
-postfixadmin (web interface)
-roundcube
-spamassassin
-clamv

btw i have a question in my mind . postfix is mail server. but the
question raising in my mind if postfix is the complete server then why
we have to add several other tools like mentioned above
(dovecot,spamassassin etc) ?





 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: 
 http://lists.debian.org/cakmzw+btd1noagkdi30mhrns2cypamrgcugap8ggeqmsz9n...@mail.gmail.com



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfM=3-994=ybp1tbhvk3zy7qb3pjna34y_jvgc+nk25l...@mail.gmail.com



Re: mail server

2012-07-28 Thread Muhammad Yousuf Khan
actually i have spent 3 years working with Mailer daemon v7.0 so when
ever some one say a name mail server unintentionally mailer daemon
comes in my mind. this is my first time that i am implementing MTA on
linux.since i have just started to shift from Microsoft to Linux.
there is lot to learn.

but your individual help i have learn alot.

Thanks,

On Sat, Jul 28, 2012 at 4:55 PM, Brad Alexander stor...@gmail.com wrote:
 On Sat, Jul 28, 2012 at 3:53 AM, Muhammad Yousuf Khan sir...@gmail.com 
 wrote:

 -postfidx
 -dovecot
 -postfixadmin (web interface)
 -roundcube
 -spamassassin
 -clamv

 btw i have a question in my mind . postfix is mail server. but the
 question raising in my mind if postfix is the complete server then why
 we have to add several other tools like mentioned above
 (dovecot,spamassassin etc) ?

 Postfix (and sendmail and it's ilk) are actually known as Mail
 Tranport Agents (MTAs). They are responsible for getting the mail from
 point A to point B. The other pieces are responsible for routing the
 mail locally (the mail user agent -- MUA), classifying and eliminating
 SPAM, etc. Think of the MTA as the airport. The MTA's responsibility
 is only to get you from one airport to the other, you (or the MUA) are
 responsible for getting from home (composing the message) to the
 originating airport, and from the destination airport to your final
 destination.

 Make more sense?
 --b


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfMn9OzFBpwrOByvFqiAaB6Sy0aOL97H-KcfWLbpKkh=e...@mail.gmail.com



Re: mail server

2012-07-28 Thread Muhammad Yousuf Khan
On Sat, Jul 28, 2012 at 4:55 PM, Brad Alexander stor...@gmail.com wrote:
 On Sat, Jul 28, 2012 at 3:53 AM, Muhammad Yousuf Khan sir...@gmail.com 
 wrote:

 -postfidx
 -dovecot
 -postfixadmin (web interface)
 -roundcube
 -spamassassin
 -clamv

 btw i have a question in my mind . postfix is mail server. but the
 question raising in my mind if postfix is the complete server then why
 we have to add several other tools like mentioned above
 (dovecot,spamassassin etc) ?

 Postfix (and sendmail and it's ilk) are actually known as Mail
 Tranport Agents (MTAs). They are responsible for getting the mail from
 point A to point B. The other pieces are responsible for routing the
 mail locally (the mail user agent -- MUA), classifying and eliminating
 SPAM, etc. Think of the MTA as the airport. The MTA's responsibility
 is only to get you from one airport to the other, you (or the MUA) are
 responsible for getting from home (composing the message) to the
 originating airport, and from the destination airport to your final
 destination.

 Make more sense?

thanks, good example. if i say ISPs which provide SMTP relay. are
using MTA where they dont want to store emails (unlike i have to do in
office) rather just relay all the messages to destination. Correct?



 --b


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfMmRjY6spQCK3j_6GmQNXKPTztc9gB=9sjcsucoypbn...@mail.gmail.com



Re: mail server

2012-07-28 Thread Muhammad Yousuf Khan
On Sat, Jul 28, 2012 at 6:51 PM, Camaleón noela...@gmail.com wrote:
 On Sat, 28 Jul 2012 18:01:09 +0500, Muhammad Yousuf Khan wrote:

 actually i have spent 3 years working with Mailer daemon v7.0 so when
 ever some one say a name mail server unintentionally mailer daemon
 comes in my mind. this is my first time that i am implementing MTA on
 linux.since i have just started to shift from Microsoft to Linux. there
 is lot to learn.

 I first switched -time ago- from MDaemon (v3.2) when I installed a Linux
 system and had to select a good replacement for it.

 Hint: write down in a paper what's your current mail system data flow
 (user's mailboxes, incoming/outgoing messages, filter needings, anti-spam/
 malware needings, local/remote connections...), what are your current
 requirements and what are the tasks that MDaemon is doing right now. This
 will help you to get the big picture for a better understanding.

sorry i think i explain a bit wrong. i was using Mdeamon in my last
company my current company is fetching emails from mail server from
our service provider.

since we fetch the email via pop and sent via smtp the problem is i
need to make backup of individual PST. therefore i presented the idea
to management for IMAP. so i think my basic need are. POP emails from
hosted server. IMAP for local users, ldap for AddressBook/contents
update. spam filter and antivirus scan. and obviously Web access for
clients. and i dont know if SQL database is better then local mail
folders. because mdeamon use to store data in a folder. but i think
SQL is much more better then that.



 Zimbra can be seen as a tool more in the line of what MDaemon is (an all
 in one solution providing pop3/imap/smtp/webmail/AV/filtering/
 multipop...) but that can be an advantage only for the first days when
 you setup but as time passes, it will reveal that using separate tools
 for each task has more benefits that relying in just one service for the
 mail system.

 Greetings,

 --
 Camaleón


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/jv0qp9$108$1...@dough.gmane.org



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmmvbh2ex5jdxuxce9j6xhdxnnpfcwhpn9feyonhpey...@mail.gmail.com



Re: mail server

2012-07-29 Thread Muhammad Yousuf Khan
On Sun, Jul 29, 2012 at 6:44 PM, Camaleón noela...@gmail.com wrote:
 On Sun, 29 Jul 2012 00:52:48 +0500, Muhammad Yousuf Khan wrote:

 On Sat, Jul 28, 2012 at 6:51 PM, Camaleón noela...@gmail.com wrote:
 On Sat, 28 Jul 2012 18:01:09 +0500, Muhammad Yousuf Khan wrote:

 actually i have spent 3 years working with Mailer daemon v7.0 so when
 ever some one say a name mail server unintentionally mailer daemon
 comes in my mind. this is my first time that i am implementing MTA on
 linux.since i have just started to shift from Microsoft to Linux.
 there is lot to learn.

 I first switched -time ago- from MDaemon (v3.2) when I installed a
 Linux system and had to select a good replacement for it.

 Hint: write down in a paper what's your current mail system data flow
 (user's mailboxes, incoming/outgoing messages, filter needings,
 anti-spam/ malware needings, local/remote connections...), what are
 your current requirements and what are the tasks that MDaemon is doing
 right now. This will help you to get the big picture for a better
 understanding.

 sorry i think i explain a bit wrong. i was using Mdeamon in my last
 company my current company is fetching emails from mail server from our
 service provider.

 Ah, okay :-)

 since we fetch the email via pop and sent via smtp the problem is i need
 to make backup of individual PST.

 What? I don't get this... you mean you need to migrate the e-mails and
 other stuff from Outlook clients to the new e-mailing service?

ok our 20 users fetching their emails from our hosted server. which is
maintained by our service provider. and we are keeping 3 months of
emails on our mail server and in case of email lost we can not recover
it since we have no backup. so my proposal to my management is if we
place a centralized mail server we can make backup of users email from
our mail server and old mail can also be restored. you can call it
migrating or shifting :). but the purpose of the whole idea is to
backup all emails and to provide more options to the users like web
access  and our users will be independent from our service provider
and will be coordinating directly with me in any problem..



 therefore i presented the idea to management for IMAP.

 Well, yes, IMAP is good for migrating messages but can be slow if there
 are thousand messages to move or copy and/or if the IMAP server is
 accessed over Internet (I mean, not locally).

 so i think my basic need are. POP emails from hosted server.

 If you mean to fecth POP e-mails from your server to place them in your
 own server, Fetchmail or Getmail can do the jobs as I already told you.

 Once the messages are in your server, they can be accessed locally via
 POP, IMAP or directly put into the user's home.

 IMAP for local users,

 Good.

 ldap for AddressBook/contents update.

 OpenLDAP can hold this but it can take you some time to configure it. For
 a bunch of users maybe you should reconsider it.

 spam filter and antivirus scan.

 Antispam is necessary, the AV only when supporting windows clients.

 and obviously Web access for clients.

 Then you have to add a web server and a webmail service :-)

 and i dont know if SQL database is better then local mail folders.
 because mdeamon use to store data in a folder. but i think SQL is much
 more better then that.

 A SQL datadase for storing 20 users is a bit overwhelming, IMO. It will
 require an extra component (MySQL, PostgresSQL or SQLite) and the benefit
 of having a database for that small amount of users can be unnoticed.

 Greetings,

 --
 Camaleón


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/jv3eni$vb5$5...@dough.gmane.org



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmnpebjy4dj1_gyn77+sb+1bbg6dtqjngmnhl7ywnxo...@mail.gmail.com



Re: mail server

2012-07-31 Thread Muhammad Yousuf Khan
On Mon, Jul 30, 2012 at 7:58 PM, Camaleón noela...@gmail.com wrote:
 On Sun, 29 Jul 2012 20:21:53 +0500, Muhammad Yousuf Khan wrote:

 On Sun, Jul 29, 2012 at 6:44 PM, Camaleón noela...@gmail.com wrote:

 (...)

 since we fetch the email via pop and sent via smtp the problem is i
 need to make backup of individual PST.

 What? I don't get this... you mean you need to migrate the e-mails and
 other stuff from Outlook clients to the new e-mailing service?

 ok our 20 users fetching their emails from our hosted server. which is
 maintained by our service provider. and we are keeping 3 months of
 emails on our mail server and in case of email lost we can not recover
 it since we have no backup. so my proposal to my management is if we
 place a centralized mail server we can make backup of users email from
 our mail server and old mail can also be restored. you can call it
 migrating or shifting :). but the purpose of the whole idea is to
 backup all emails and to provide more options to the users like web
 access and our users will be independent from our service provider and
 will be coordinating directly with me in any problem..

 Then I guess the recipe I provided before it suits your needs.

 To migrate the current messages to your new-owned system you can use a
 dummy IMAP account to copy/paste (or simply move) the e-mails between
 the remote server and your which will work regardless the MUA in use.

 Once all of the accounts are created in your own e-mail server and
 working you can start polling the new messages from your remote server
 using fetchmail/getmail and configure your users e-mail clients to
 contact your e-mail server (via imap/pop3) instead your hosted one.

Thanks, its been very helpful.



 Greetings,

 --
 Camaleón


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/jv67f3$ltk$7...@dough.gmane.org



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmk0fry6hcphxb+76sokke0o0amcsuddcdjwyogszy3...@mail.gmail.com



MS office communication server substitute in linux

2012-08-03 Thread Muhammad Yousuf Khan
is there any substitute of office communication server in Linux for
inter office communication, voice, video, chat file transfer (support
centralized environment not just work on broadcast for e.g unlike
outlook messanger).
Thanks


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmkq9u-u-zhdeslj6zis0xhl79jajyp8lv5u-mwv4pa...@mail.gmail.com



Re: Debian showing less RAM

2012-08-08 Thread Muhammad Yousuf Khan
i was using i686 kernel now i just updated amd64 it worked
 aptitude install linux-image-2.6-amd64

root@lion:~# free
 total   used   free sharedbuffers cached
Mem:   8134920  833728051548  0   2272  17392
-/+ buffers/cache:  637088071212
Swap: 15623088  0   15623088

but my second question about disk space is still a confusiong. please help



On Wed, Aug 8, 2012 at 3:52 PM, Muhammad Yousuf Khan sir...@gmail.com wrote:
 i am using debian 6.0.4. i have 8GB of ram installed in a server 2GB x
 4. bios also shows 8 GB.

 however top only shows 2gb or RAM

 top - 15:48:29 up 16 min,  1 user,  load average: 0.00, 0.01, 0.00
 Tasks:  90 total,   1 running,  89 sleeping,   0 stopped,   0 zombie
 Cpu(s):  0.0%us,  0.1%sy,  0.0%ni, 99.6%id,  0.3%wa,  0.0%hi,  0.0%si,  0.0%st
 Mem:   2273280k total,79768k used,  2193512k free, 2292k buffers
 Swap: 15623088k total,0k used, 15623088k free,45456k cached


 root@lion:~# free
  total   used   free sharedbuffers cached
 Mem:   2273280  797682193512  0   2292  45456
 -/+ buffers/cache:  320202241260
 Swap: 15623088  0   15623088


 Secondly.

 root@lion:~# df -h
 FilesystemSize  Used Avail Use% Mounted on
 /dev/mapper/pve--vg-root
   442G  550M  419G   1% /

 i dont know if its normal but things are confusing me a bit. i have
 working space of 442G  used 550MB and available 419MB there almost
 22GB is missing.

 please help.

 Thanks,


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmm_pvwxn9ddsq3vvbs9vsmtu96kjnfgejkpicsob_k...@mail.gmail.com



Re: Debian showing less RAM

2012-08-08 Thread Muhammad Yousuf Khan
On Wed, Aug 8, 2012 at 5:14 PM, Darac Marjal mailingl...@darac.org.uk wrote:
 On Wed, Aug 08, 2012 at 03:52:49PM +0500, Muhammad Yousuf Khan wrote:
 i am using debian 6.0.4. i have 8GB of ram installed in a server 2GB x
 4. bios also shows 8 GB.

 however top only shows 2gb or RAM

 top - 15:48:29 up 16 min,  1 user,  load average: 0.00, 0.01, 0.00
 Tasks:  90 total,   1 running,  89 sleeping,   0 stopped,   0 zombie
 Cpu(s):  0.0%us,  0.1%sy,  0.0%ni, 99.6%id,  0.3%wa,  0.0%hi,  0.0%si,  
 0.0%st
 Mem:   2273280k total,79768k used,  2193512k free, 2292k buffers
 Swap: 15623088k total,0k used, 15623088k free,45456k cached

 What kernel are you using? Either you have one that isn't enable to see
 the extra ram or, as has happened on the list in the past, you have bad
 modules :)

Thanks ... kernel was the problem.

 Secondly.

 root@lion:~# df -h
 FilesystemSize  Used Avail Use% Mounted on
 /dev/mapper/pve--vg-root
   442G  550M  419G   1% /

 i dont know if its normal but things are confusing me a bit. i have
 working space of 442G  used 550MB and available 419MB there almost
 22GB is missing.

 5% of 442GB = 22.2GB. So that's your reserved portion.


can i recover this reserved portion ?


 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (GNU/Linux)

 iQIcBAEBCgAGBQJQIlgVAAoJEKB7YbRsd8TGcBAP/17JL7wT8QwVrW/r3WjNtTkY
 y89URwZ7F07PUIYjlXr0QvbR6Xc9Qonesm05IYuKkrCcZsi952/6sRLxsNcEESzP
 PyodN+nWBYulIHoWOVAHiFvlGrhXrpRB5YyTjpyFs/3U5nAF0F3+kh46S0HeWBYp
 tf+1hyuFjGvE4erUBZfvLr11bDzjEnweKujk8wMCvCPrIBODxti65bYhrb2J6qYH
 a5VNFw9BG8446huJPuR4jxqZQMA7J2iPDArpfNWx3W1DDSIbrjAFJb+TX7XiNC+0
 xwVzsFHk4UkG3bLXcaLFmL0m4KJonXljPIC0Ngupq9YfjKHCVA8kC7GlquWh844f
 AOEDuNSPvs7re6wsXDfDTj//pK9qOuvkvSLrUUBw1i3e9zK0ajclALM6BInYzWYd
 lR7w6MAdH6A7nTTRe37aaa/HW6re1B4aHD6A24DvyNA8e/Ivza4u78p/fG6pO37T
 mL+TafsDrCFyK19Ko/aneL1n3rIPc20mcn3+EJseL07kOw7FH8fwJ08qlrjdM3Pi
 419+fglQ9767vlS/loYJabfWf0Rx9uYSbWiSa5ewevWNXZ9lER7SBzYv3Inrsbih
 /Cun9vdh1BPpo8j2gyRFZFnz8yDbQ9eum021GSLdtEUEluZ9CrmgiB1FOhCzVx6Z
 epwIGh+oU4za5BgZiEdI
 =DkyW
 -END PGP SIGNATURE-



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfM=ys6dktfrwsrjgtms+yn_myiba3fnphxaxbolg2eb...@mail.gmail.com



Re: Debian showing less RAM

2012-08-08 Thread Muhammad Yousuf Khan
On Wed, Aug 8, 2012 at 5:26 PM, Darac Marjal mailingl...@darac.org.uk wrote:
 On Wed, Aug 08, 2012 at 05:18:18PM +0500, Muhammad Yousuf Khan wrote:
 i was using i686 kernel now i just updated amd64 it worked
  aptitude install linux-image-2.6-amd64

 root@lion:~# free
  total   used   free sharedbuffers cached
 Mem:   8134920  833728051548  0   2272  17392
 -/+ buffers/cache:  637088071212
 Swap: 15623088  0   15623088

 but my second question about disk space is still a confusiong. please help

 Many Linux file systems (ext2/3/4, definitely. I'm not sure about
 others), reserve 5% of the space for root. That means that when the disk
 is showing 100% full, root can still, say, compress a run-away log file
 and then delete it.

 You can either live with that safety net, or use a tool such as tune2fs
 to adjust it.

Thanks it worked :)
tune2fs -m 2 /dev/mapper/pve--vg-root






 On Wed, Aug 8, 2012 at 3:52 PM, Muhammad Yousuf Khan sir...@gmail.com 
 wrote:
  i am using debian 6.0.4. i have 8GB of ram installed in a server 2GB x
  4. bios also shows 8 GB.
 
  however top only shows 2gb or RAM
 
  top - 15:48:29 up 16 min,  1 user,  load average: 0.00, 0.01, 0.00
  Tasks:  90 total,   1 running,  89 sleeping,   0 stopped,   0 zombie
  Cpu(s):  0.0%us,  0.1%sy,  0.0%ni, 99.6%id,  0.3%wa,  0.0%hi,  0.0%si,  
  0.0%st
  Mem:   2273280k total,79768k used,  2193512k free, 2292k buffers
  Swap: 15623088k total,0k used, 15623088k free,45456k cached
 
 
  root@lion:~# free
   total   used   free sharedbuffers cached
  Mem:   2273280  797682193512  0   2292  45456
  -/+ buffers/cache:  320202241260
  Swap: 15623088  0   15623088
 
 
  Secondly.
 
  root@lion:~# df -h
  FilesystemSize  Used Avail Use% Mounted on
  /dev/mapper/pve--vg-root
442G  550M  419G   1% /
 
  i dont know if its normal but things are confusing me a bit. i have
  working space of 442G  used 550MB and available 419MB there almost
  22GB is missing.
 
  please help.
 
  Thanks,


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: 
 http://lists.debian.org/cagwvfmm_pvwxn9ddsq3vvbs9vsmtu96kjnfgejkpicsob_k...@mail.gmail.com


 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (GNU/Linux)

 iQIcBAEBCgAGBQJQIlrnAAoJEKB7YbRsd8TGouUP/i0RCr/vmWQVeV5y1frGqpyx
 eTBJJnzBPr6HuIW2wKHDoRRU09Lexx0AhBMvtiMrh6i6fZCV+/Fb6zMvKzlz4RCF
 lPy5Oz2/3kxkFiqSObnrG94/Vq+nn85x2nfszf8AqX9YXeTVICrjrIuvkH+5hTFu
 AkVY2mgWtgRUl9pnMr+Aa1DdJqAEQQhtOceRRvZmenXqf/qbWGeFgQdWg1pNO7m9
 V7NXiMrnnwOgq5e4mCMjcKFWW9vpx+vPeMAURWK+9WwHIGORXE49281F+f3+w3eT
 ZWvP8vFxRuBSMBAcZQ3eJNz8P0N5UCk/xGKXejdNXPmUbQSH3A70rUONw+HRdYRP
 saEggjKLFx4aDltOUIP6sKMf0A4KZIHqJLzydT+DkvaTEv+STvranIatZ9uDcNeJ
 ejLcCS8XaAB6by8wWefCnquUhY0iQ8SJd9XGrHGOhGi5ZW424oQMbIznDYI7rDjT
 gVpa0twg5TI2yq5U1aLYKZy+eDJ6rgg/2MKu3KyzmBQ7HdFp7Cps9VP7HZR+Ie9c
 +n9u3IqAnv4jmac3hH7eZAS3QnbuifqKwZVe036Fvx3E2Hr1Vt41XqKJT4+BECKc
 fU2bvLSjP4ot45HeDOM2p99agA08VMGProy4j9XFQAJKHlIbCSXt6jRQmHjxGpVr
 BwDpjZZ4n7XjZYkVyKTB
 =SS92
 -END PGP SIGNATURE-



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmkoe4vyssoqfij088l9vdt3nejngu7xkrvvjuhprng...@mail.gmail.com



Re: Debian showing less RAM

2012-08-09 Thread Muhammad Yousuf Khan
On Thu, Aug 9, 2012 at 12:57 AM, Martin Steigerwald mar...@lichtvoll.de wrote:
 Am Mittwoch, 8. August 2012 schrieb Muhammad Yousuf Khan:
 i was using i686 kernel now i just updated amd64 it worked
  aptitude install linux-image-2.6-amd64

 root@lion:~# free
  total   used   free sharedbuffers
 cached Mem:   8134920  833728051548  0   2272
 17392 -/+ buffers/cache:  637088071212
 Swap: 15623088  0   15623088

 Do you have 32-bit user space? file /bin/ls tells for example

 Using a 64-Bit kernel with 32-bit user space can create problems. I had it
 once that X.org with Intel drivers tended to crash badly which was gone
 after I switched to a 32-bit kernel again.

 So I suggest you either use 32-bit bigmem kernel or reinstall with 64-bit.
 I´d recommend the second option considering that your machine has 8 GiB.

thanks for sharing your experience, i am doing it right aways since i
can not take any risk becuase this system will be put in production.

Thanks...

 --
 Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
 GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/201208082157.57350.mar...@lichtvoll.de



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmn_vcwvnipzrnpuo5qk6ty5vgxypsxb8cp1tnbbpxr...@mail.gmail.com



debian 6.0.5 ISO installation issue. GRUB .. file not found

2012-08-09 Thread Muhammad Yousuf Khan
i just installed debian from 6.0.5 amd64 net CD. with basic options.

installation went fine but in first boot. shows me this

Welcome to GRUB
error : file not found
grub rescue

and now i dont know what to do in rescue mode. since this is my first
time that i am facing this issue so kindly help.

Thanks,


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfM=k4cf_wb00evgxxqzwappjotfj9xlv1dkqvyvq_kn...@mail.gmail.com



Re: debian 6.0.5 ISO installation issue. GRUB .. file not found

2012-08-09 Thread Muhammad Yousuf Khan
On Thu, Aug 9, 2012 at 5:06 PM, Brian a...@cityscape.co.uk wrote:
 On Thu 09 Aug 2012 at 16:55:23 +0500, Muhammad Yousuf Khan wrote:

 i just installed debian from 6.0.5 amd64 net CD. with basic options.

 installation went fine but in first boot. shows me this

 Welcome to GRUB
 error : file not found
 grub rescue

 You installed GRUB to the MBR of the first hard disk?
if you mean the grub installation ask to install grub in /dev/sda .
then yes i did and it was installed with no errors.

 and now i dont know what to do in rescue mode. since this is my first
 time that i am facing this issue so kindly help.

 Please post the output of the command 'ls -l'
ok ill post that next day from office.


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/20120809120633.GK6660@desktop



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfMmrdsBJfH+yrMsz6-L8Rdo7P=k2aCF=F7v=6_m6jem...@mail.gmail.com



Re: debian 6.0.5 ISO installation issue. GRUB .. file not found

2012-08-09 Thread Muhammad Yousuf Khan
ok ill perform the the said instructions next day in office. but let
me share  you guys some of my partitions settings. that might help to
understand the scenario more clearly.

i have 2. 500GB of HD with raid1 set.fail-over to each other with boot support.

1. /boot (raid1)
2. Swap (raid1)
3. root on LVM on raid1.

so i have 3 raid devices and on 3rd one root Partition is on top of LVM

i am using the same procedure that i use to install with debian lenny
and old squeeze but this is the first time that it showed me this
error.

i think about the same as you suggested about using debian live CD and
install the grub manually. but there is no such command grub-install.
i found a command grub-installer. so i didnt knew how to use it.
please correct me if my limited knowledge leading me to a wrong
direction.


On Thu, Aug 9, 2012 at 7:53 PM, Arno Schuring aelschur...@hotmail.com wrote:
 Muhammad Yousuf Khan (sir...@gmail.com on 2012-08-09 16:55 +0500):
 i just installed debian from 6.0.5 amd64 net CD. with basic options.

 installation went fine but in first boot. shows me this

 Welcome to GRUB
 error : file not found
 grub rescue

 If memory serves me right, you need to
 rescue set root=(hd0,1)

 Assuming that /boot is a separate partition, created as /dev/sda1.
 Season to taste. The grub shell has tab-completion, not sure if the
 rescue shell has the same. If the installer created one single
 partition, you may also need
 rescue set prefix=($root)/boot/grub

 rescue insmod normal
 rescue normal

 And from there the regular grub commands (linux, initrd) should work.
 There may also be a command to start the menu from there (insmod
 gfxmenu?).

 An easier but slower solution is to boot again from the installation
 disc, start a rescue shell and re-run grub-install and update-grub.

 Regards,
 Arno


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/20120809165340.4d3f0...@viper.intra.loos.site



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfMkADTQ=uqm2xvptzv9m4b7hsivwftphpqi7ysuypvr...@mail.gmail.com



Re: debian 6.0.5 ISO installation issue. GRUB .. file not found

2012-08-10 Thread Muhammad Yousuf Khan
ok it is resolved, here is what i did. since the grub has mistakenly
installed on RAID drive (md0) and not on /dev/sda or /dev/sdb  MBRs.
however i could not understand why is that happen. i am following the
same linux installation that i used to with old version it just happen
to me with 6.0.5. anyways this is what i did.

Grub rescuels (which showed me all the devices including RAID ones)
Grub rescue ls (md/0)/ (and i found grub folder on root of md/0)
Grub rescueset root=(md/0) (/ was their so i add it)
Grub rescueset prefix=(md/0)/grub
Grub rescue insmod normal
Grub rescue normal

when i reach the prompt after root password. i run grub-install /dev/sda
and
grub-install /dev/sdb so both devices could be used as failover.

i hope this helps others.

Thanks for the support Arno and Brian.

Thanks,


On Fri, Aug 10, 2012 at 12:48 AM, Muhammad Yousuf Khan sir...@gmail.com wrote:
 ok ill perform the the said instructions next day in office. but let
 me share  you guys some of my partitions settings. that might help to
 understand the scenario more clearly.

 i have 2. 500GB of HD with raid1 set.fail-over to each other with boot 
 support.

 1. /boot (raid1)
 2. Swap (raid1)
 3. root on LVM on raid1.

 so i have 3 raid devices and on 3rd one root Partition is on top of LVM

 i am using the same procedure that i use to install with debian lenny
 and old squeeze but this is the first time that it showed me this
 error.

 i think about the same as you suggested about using debian live CD and
 install the grub manually. but there is no such command grub-install.
 i found a command grub-installer. so i didnt knew how to use it.
 please correct me if my limited knowledge leading me to a wrong
 direction.


 On Thu, Aug 9, 2012 at 7:53 PM, Arno Schuring aelschur...@hotmail.com wrote:
 Muhammad Yousuf Khan (sir...@gmail.com on 2012-08-09 16:55 +0500):
 i just installed debian from 6.0.5 amd64 net CD. with basic options.

 installation went fine but in first boot. shows me this

 Welcome to GRUB
 error : file not found
 grub rescue

 If memory serves me right, you need to
 rescue set root=(hd0,1)

 Assuming that /boot is a separate partition, created as /dev/sda1.
 Season to taste. The grub shell has tab-completion, not sure if the
 rescue shell has the same. If the installer created one single
 partition, you may also need
 rescue set prefix=($root)/boot/grub

 rescue insmod normal
 rescue normal

 And from there the regular grub commands (linux, initrd) should work.
 There may also be a command to start the menu from there (insmod
 gfxmenu?).

 An easier but slower solution is to boot again from the installation
 disc, start a rescue shell and re-run grub-install and update-grub.

 Regards,
 Arno


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: 
 http://lists.debian.org/20120809165340.4d3f0...@viper.intra.loos.site



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmm48wfms2r8k1qcide18am5fdvw6kd4kaesdzqpq1z...@mail.gmail.com



iscsi debian. suggestion needed

2012-08-17 Thread Muhammad Yousuf Khan
Dear All,

i am looking into HA (or in other words to minimize restoration
process time) for virtualization in linux. i am using debian as a base
system KVM-Qemu as virtual environment. now i am exploring different
methods of HA. like DRBD, Rsync or ISCSI. so that if main server
hardware fails then other system would serve the purpose. with out
wasting my time in restoring backup.


so is there any one who is using linux ISCI SAN box for their
virtualization rather dell, or any other vendor.

so just wanted to know the pros and cons / stability / complexity .
since i am already dived into Linux so study wont be an issue.

and of course i know that LAN card can only give me around 1GB
throughput. but my data transmit is not that huge. we are a small
company with 25 nodes  and i think more or less 1 GB would be more
then enough.

any suggestion would be highly appreciated.

Thanks,


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmne7dvquntecrpjeehcjw+2twnzmktyniaxueu1tky...@mail.gmail.com



Re: lvcreate throws error : device not cleared

2012-08-17 Thread Muhammad Yousuf Khan
http://forums.funtoo.org/viewtopic.php?id=1206

This might help

On Fri, Aug 17, 2012 at 3:00 PM, J. B baksh...@gmail.com wrote:

 Dear list,

 I'm with debian wheezy with lvm2 2.02.95-4.

 whenever I try to execute lvcreate it fails. Here is the output of such
 a command

 ``
 #lvcreate -v -n root -L 80G mygroup

 Setting logging type to disk
 Finding volume group mygroup
 Archiving volume group mygroup metadata (seqno 7).
 Creating logical volume root
 Creating volume group backup /etc/lvm/backup/mygroup (seqno 8).
 Found volume group mygroup
 activation/volume_list configuration setting not defined: Checking only 
 host tags for mygroup/root
 Creating mygroup-root
 Loading mygroup-root table (254:1)
 Resuming mygroup-root (254:1)
 Clearing start of logical volume root
   /dev/mygroup/root: not found: device not cleared
   Aborting. Failed to wipe start of new LV.
 Found volume group mygroup
 Removing mygroup-root (254:1)
 Creating volume group backup /etc/lvm/backup/mygroup (seqno 9).
   semid 7340034: semop failed for cookie 0xd4ddd6c: incorrect semaphore state
   Failed to set a proper state for notification semaphore identified by 
 cookie value 223206764 (0xd4ddd6c) to initialize waiting for incoming 
 notifications.
 `

 Am I missing anything ?

 Thanks


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/20120817153019.07ad8...@shiva.selfip.org



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmkucwtfdz4grh7mowbnsperooc_0snp3sf1yckt0wl...@mail.gmail.com



Re: lvcreate throws error : device not cleared

2012-08-17 Thread Muhammad Yousuf Khan
On Fri, Aug 17, 2012 at 3:28 PM, J. B baksh...@gmail.com wrote:

 Thanks, [-Z n] only works with a warrning

-Z, --zero y/n
Controls zeroing of the first KB of data in the new logical volume.
Default is yes.


Warning: trying to mount an unzeroed logical volume can cause the
system to hang.
so be careful. i haven't tried this either.

for further reference check this
http://linux.about.com/library/cmd/blcmdl8_lvcreate.htm


 [...]
 WARNING: root not zeroed
   Logical volume root created

 [...]

 What does it mean and will it create any issue in future ?

 TIA


 On Fri, 17 Aug 2012 15:18:41 +0500
 Muhammad Yousuf Khan sir...@gmail.com wrote:

 http://forums.funtoo.org/viewtopic.php?id=1206

 This might help

 On Fri, Aug 17, 2012 at 3:00 PM, J. B baksh...@gmail.com wrote:
 
  Dear list,
 
  I'm with debian wheezy with lvm2 2.02.95-4.
 
  whenever I try to execute lvcreate it fails. Here is the output of such
  a command
 
  ``
  #lvcreate -v -n root -L 80G mygroup
 
  Setting logging type to disk
  Finding volume group mygroup
  Archiving volume group mygroup metadata (seqno 7).
  Creating logical volume root
  Creating volume group backup /etc/lvm/backup/mygroup (seqno 8).
  Found volume group mygroup
  activation/volume_list configuration setting not defined: Checking 
  only host tags for mygroup/root
  Creating mygroup-root
  Loading mygroup-root table (254:1)
  Resuming mygroup-root (254:1)
  Clearing start of logical volume root
/dev/mygroup/root: not found: device not cleared
Aborting. Failed to wipe start of new LV.
  Found volume group mygroup
  Removing mygroup-root (254:1)
  Creating volume group backup /etc/lvm/backup/mygroup (seqno 9).
semid 7340034: semop failed for cookie 0xd4ddd6c: incorrect semaphore 
  state
Failed to set a proper state for notification semaphore identified by 
  cookie value 223206764 (0xd4ddd6c) to initialize waiting for incoming 
  notifications.
  `
 
  Am I missing anything ?
 
  Thanks
 
 
  --
  To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
  with a subject of unsubscribe. Trouble? Contact 
  listmas...@lists.debian.org
  Archive: http://lists.debian.org/20120817153019.07ad8...@shiva.selfip.org
 


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfM=lfbmhak7htt3aqgcoilmmbgll6yzbrsw1fo7rog2...@mail.gmail.com



Re: lvcreate throws error : device not cleared

2012-08-17 Thread Muhammad Yousuf Khan
On Fri, Aug 17, 2012 at 3:33 PM, Muhammad Yousuf Khan sir...@gmail.com wrote:
 On Fri, Aug 17, 2012 at 3:28 PM, J. B baksh...@gmail.com wrote:

 Thanks, [-Z n] only works with a warrning

 -Z, --zero y/n
 Controls zeroing of the first KB of data in the new logical volume.
 Default is yes.

FYI it is just a work around. let see if others might help with some
detailed suggestion.



 Warning: trying to mount an unzeroed logical volume can cause the
 system to hang.
 so be careful. i haven't tried this either.

 for further reference check this
 http://linux.about.com/library/cmd/blcmdl8_lvcreate.htm


 [...]
 WARNING: root not zeroed
   Logical volume root created

 [...]

 What does it mean and will it create any issue in future ?

 TIA


 On Fri, 17 Aug 2012 15:18:41 +0500
 Muhammad Yousuf Khan sir...@gmail.com wrote:

 http://forums.funtoo.org/viewtopic.php?id=1206

 This might help

 On Fri, Aug 17, 2012 at 3:00 PM, J. B baksh...@gmail.com wrote:
 
  Dear list,
 
  I'm with debian wheezy with lvm2 2.02.95-4.
 
  whenever I try to execute lvcreate it fails. Here is the output of such
  a command
 
  ``
  #lvcreate -v -n root -L 80G mygroup
 
  Setting logging type to disk
  Finding volume group mygroup
  Archiving volume group mygroup metadata (seqno 7).
  Creating logical volume root
  Creating volume group backup /etc/lvm/backup/mygroup (seqno 8).
  Found volume group mygroup
  activation/volume_list configuration setting not defined: Checking 
  only host tags for mygroup/root
  Creating mygroup-root
  Loading mygroup-root table (254:1)
  Resuming mygroup-root (254:1)
  Clearing start of logical volume root
/dev/mygroup/root: not found: device not cleared
Aborting. Failed to wipe start of new LV.
  Found volume group mygroup
  Removing mygroup-root (254:1)
  Creating volume group backup /etc/lvm/backup/mygroup (seqno 9).
semid 7340034: semop failed for cookie 0xd4ddd6c: incorrect semaphore 
  state
Failed to set a proper state for notification semaphore identified by 
  cookie value 223206764 (0xd4ddd6c) to initialize waiting for incoming 
  notifications.
  `
 
  Am I missing anything ?
 
  Thanks
 
 
  --
  To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
  with a subject of unsubscribe. Trouble? Contact 
  listmas...@lists.debian.org
  Archive: http://lists.debian.org/20120817153019.07ad8...@shiva.selfip.org
 


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfMnkTMzBBBWAWMEfvCf=von5pwrh82sj_k9bp0p5rle...@mail.gmail.com



Re: iscsi debian. suggestion needed

2012-08-17 Thread Muhammad Yousuf Khan
Any help please ? :)

On Fri, Aug 17, 2012 at 1:17 PM, Muhammad Yousuf Khan sir...@gmail.com wrote:
 Dear All,

 i am looking into HA (or in other words to minimize restoration
 process time) for virtualization in linux. i am using debian as a base
 system KVM-Qemu as virtual environment. now i am exploring different
 methods of HA. like DRBD, Rsync or ISCSI. so that if main server
 hardware fails then other system would serve the purpose. with out
 wasting my time in restoring backup.


 so is there any one who is using linux ISCI SAN box for their
 virtualization rather dell, or any other vendor.

 so just wanted to know the pros and cons / stability / complexity .
 since i am already dived into Linux so study wont be an issue.

 and of course i know that LAN card can only give me around 1GB
 throughput. but my data transmit is not that huge. we are a small
 company with 25 nodes  and i think more or less 1 GB would be more
 then enough.

 any suggestion would be highly appreciated.

 Thanks,


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfMk1yQeQCTmMLKUjxXwbN7aovQv5YtKsah=iv69zjfw...@mail.gmail.com



Re: Xen vs KVM

2012-08-23 Thread Muhammad Yousuf Khan
i am using proxmox KVM.. on 3 base servers for more then 2 years.
i do migrate, backup and all the process intensive task and every
thing. till today i havent found any issue related to stabitliy.
once i remeber i havent started my virtual machines for 4 monts,and my
base, i never found a reason to restart the base server for about a
year. but then my HD died :(.
my virtual base is running more then 15 VMs. i haven't tried Xen yet
so nothing to add about stability in Xen.


Thanks,

On Tue, Aug 21, 2012 at 8:23 PM, francis picabia fpica...@gmail.com wrote:
 On Fri, Mar 30, 2012 at 2:59 AM, Tom H tomh0...@gmail.com wrote:

 Unless there's a fedora-devel thread where this was discussed, there's
 probably no way to know why RHEL6 switched to kvm except to assume
 that kvm's in-kernel and xen isn't. This has changed in the latest
 kernels so xen support might very well be re-added, and possibly
 favored, in RHEL7.


 This is uninformed.  I don't know why you bother to write it.

 Please visit the Redhat web site and search for information on virtualization.

 Here is one of the many news items one can google showing Redhat
 has dropped Xen in favour of KVM.  KVM is the cornerstone of Redhat's
 attempt to compete with VMware solution.  Xen support in Redhat
 is set to expire in 2014.

 http://www.infoworld.com/d/virtualization/red-hat-drops-xen-in-favor-kvm-in-rhel-6-498

 Here is the 2008 announcement regarding Redhat's purchase of Qumaranet, which
 may answer some questions about xen and kvm in Redhat's future (now
 the present).

 http://www.redhat.com/promo/qumranet/


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: 
 http://lists.debian.org/ca+akb6goujtbdmmzbaeezc-fyqk_-6cnu4s6fo-peh74o+b...@mail.gmail.com



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmklfqofkqg_stktrk6+pguet0qef2xzldoaxl+ahvx...@mail.gmail.com



Windows 2003 AD to Samba4 Migration

2012-08-25 Thread Muhammad Yousuf Khan
i wanted to migrate Windows 2003 AD to Samba For DC with out rejoining
the clients and down time.Such as Additional Domain Controller

actually, i am Planning migrating my microsoft infrastructure to linux
gradually.
i successfully migrated  Fileserver, Virtualization, Proxy. now my
goal is to replace my domain controller holding 2003 server.

i have a mix client (33 nodes)  infrastructure including, WindowXP,
2003 Memeber server and Windows 7 while all are memeber of domain with
default GPO, though i wanted to use GPOs in future via samba4,

here is the detail of my domain controller,

1. 2003 Active directory
2. active directory integrated DNS with DNS forwarder.
3. DHCP.


so my questions are.

As per my understanding with DC . i can use ADC for failover.

- is it possible to install samba DC as an ADC and later promoted to DC?

- is there any one has migrated windows DC to SAMBA DC. what was
his/her strategy/experience (any suggestions would be appreciated).

- can anyone please tell me about the stability of SAMBA4. with his
personal experience  , since it is in beta stage?
  because my 2003 DC server is in production and i don't have a clue
that beta is a better way to go in production or not.


my requirement with samba4 after migration are.


1. DC
2. Integrated DNS so that when ever host join's. DNS records and other
updates in AD should be done by it self. (same ad windows  AD)
3. DHCP
4. Group policy implementation.

BTW, i am using 2.7 SAMBA as file sharing server integrated with 2003 AD.
so is it going to effect the migration or not? or samba 2.7 with
consider SAMBA4 machine as an old DC.

Thanks,


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfM=rnx3xs7admfaea-0q+fgkfnrq8k_wxlmcffb7jdw...@mail.gmail.com



Re: Windows 2003 AD to Samba4 Migration

2012-08-26 Thread Muhammad Yousuf Khan
any help please?


On Sat, Aug 25, 2012 at 1:33 PM, Muhammad Yousuf Khan sir...@gmail.com wrote:
 i wanted to migrate Windows 2003 AD to Samba For DC with out rejoining
 the clients and down time.Such as Additional Domain Controller

 actually, i am Planning migrating my microsoft infrastructure to linux
 gradually.
 i successfully migrated  Fileserver, Virtualization, Proxy. now my
 goal is to replace my domain controller holding 2003 server.

 i have a mix client (33 nodes)  infrastructure including, WindowXP,
 2003 Memeber server and Windows 7 while all are memeber of domain with
 default GPO, though i wanted to use GPOs in future via samba4,

 here is the detail of my domain controller,

 1. 2003 Active directory
 2. active directory integrated DNS with DNS forwarder.
 3. DHCP.


 so my questions are.

 As per my understanding with DC . i can use ADC for failover.

 - is it possible to install samba DC as an ADC and later promoted to DC?

 - is there any one has migrated windows DC to SAMBA DC. what was
 his/her strategy/experience (any suggestions would be appreciated).

 - can anyone please tell me about the stability of SAMBA4. with his
 personal experience  , since it is in beta stage?
   because my 2003 DC server is in production and i don't have a clue
 that beta is a better way to go in production or not.


 my requirement with samba4 after migration are.


 1. DC
 2. Integrated DNS so that when ever host join's. DNS records and other
 updates in AD should be done by it self. (same ad windows  AD)
 3. DHCP
 4. Group policy implementation.

 BTW, i am using 2.7 SAMBA as file sharing server integrated with 2003 AD.
 so is it going to effect the migration or not? or samba 2.7 with
 consider SAMBA4 machine as an old DC.

 Thanks,


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfM=0xqpetynr4yb9cumcu22l7oh1nv2g9ubvuyer1gp...@mail.gmail.com



rsyslog not sending message to remote syslog.

2012-08-27 Thread Muhammad Yousuf Khan
i have deployed logAnalyzer and been using it for about 4 months.
things seems to be working find but today i found out that my
/var/log/syslog contains this

Aug 27 12:11:37 lion kernel: [6.347932] ata1.00: status: { DRDY ERR }
Aug 27 12:11:37 lion kernel: [6.348008] ata1.00: error: { UNC }
Aug 27 12:11:37 lion kernel: [6.372478] ata1.00: configured for UDMA/133
Aug 27 12:11:37 lion kernel: [6.372487] ata1: EH complete
Aug 27 12:11:37 lion kernel: [9.059325] ata1.00: exception Emask
0x0 SAct 0x0 SErr 0x0 action 0x0
Aug 27 12:11:37 lion kernel: [9.059413] ata1.00: BMDMA stat 0x4
Aug 27 12:11:37 lion kernel: [9.059514] ata1.00: failed command: READ DMA
Aug 27 12:11:37 lion kernel: [9.059620] ata1.00: cmd
c8/00:08:08:78:1b/00:00:00:00:00/e2 tag 0 dma 4096 in
Aug 27 12:11:37 lion kernel: [9.059621]  res
51/40:00:0a:78:1b/00:00:00:00:00/e2 Emask 0x9 (media error)

which is a hardware badsector notification. and i could not see this
on log analyzer. however other logs from this server are showed as
expected.

i am using  *.* @@logserver.test.com 

which means everything and this error is very critical , this must
have showed in to the remote server.
can anyone please help me to make it sending these types of critical
error to log server.




Thanks,


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmkxnxsk+k2wzjq+5b4f5j6tavs6wcrfmehwfvqcsqh...@mail.gmail.com



how to fix logical bad sectors

2012-08-27 Thread Muhammad Yousuf Khan
i am using RAID 1 on 2x500GB harddrives. and one of my drive shows
Current_Pending_Sector 154. how can i fix that.


root@lion:~# smartctl -A /dev/sda
 1 Raw_Read_Error_Rate 0x002f   200   200   051Pre-fail
Always   -   1
  3 Spin_Up_Time0x0027   152   150   021Pre-fail
Always   -   3375
  4 Start_Stop_Count0x0032   100   100   000Old_age
Always   -   59
  5 Reallocated_Sector_Ct   0x0033   200   200   140Pre-fail
Always   -   0
  7 Seek_Error_Rate 0x002e   200   200   000Old_age
Always   -   0
  9 Power_On_Hours  0x0032   072   072   000Old_age
Always   -   21113
 10 Spin_Retry_Count0x0032   100   253   000Old_age
Always   -   0
 11 Calibration_Retry_Count 0x0032   100   253   000Old_age
Always   -   0
 12 Power_Cycle_Count   0x0032   100   100   000Old_age
Always   -   57
192 Power-Off_Retract_Count 0x0032   200   200   000Old_age
Always   -   48
193 Load_Cycle_Count0x0032   177   177   000Old_age
Always   -   70694
194 Temperature_Celsius 0x0022   117   099   000Old_age
Always   -   26
196 Reallocated_Event_Count 0x0032   200   200   000Old_age
Always   -   0
197 Current_Pending_Sector  0x0032   199   199   000Old_age
Always   -   154
198 Offline_Uncorrectable   0x0030   100   253   000Old_age
Offline  -   0
199 UDMA_CRC_Error_Count0x0032   200   200   000Old_age
Always   -   0
200 Multi_Zone_Error_Rate   0x0008   100   253   000Old_age
Offline  -   0

root@lion:~# smartctl -A /dev/sdb
  1 Raw_Read_Error_Rate 0x002f   200   200   051Pre-fail
Always   -   0
  3 Spin_Up_Time0x0027   150   148   021Pre-fail
Always   -   3475
  4 Start_Stop_Count0x0032   100   100   000Old_age
Always   -   55
  5 Reallocated_Sector_Ct   0x0033   200   200   140Pre-fail
Always   -   0
  7 Seek_Error_Rate 0x002e   200   200   000Old_age
Always   -   0
  9 Power_On_Hours  0x0032   081   081   000Old_age
Always   -   14265
 10 Spin_Retry_Count0x0032   100   253   000Old_age
Always   -   0
 11 Calibration_Retry_Count 0x0032   100   253   000Old_age
Always   -   0
 12 Power_Cycle_Count   0x0032   100   100   000Old_age
Always   -   53
192 Power-Off_Retract_Count 0x0032   200   200   000Old_age
Always   -   45
193 Load_Cycle_Count0x0032   189   189   000Old_age
Always   -   34955
194 Temperature_Celsius 0x0022   117   099   000Old_age
Always   -   26
196 Reallocated_Event_Count 0x0032   200   200   000Old_age
Always   -   0
197 Current_Pending_Sector  0x0032   200   200   000Old_age
Always   -   0
198 Offline_Uncorrectable   0x0030   100   253   000Old_age
Offline  -   0
199 UDMA_CRC_Error_Count0x0032   200   200   000Old_age
Always   -   0
200 Multi_Zone_Error_Rate   0x0008   100   253   000Old_age
Offline  -   0

this is the first time i am dealing with this, is this some thing that
i have to be worried about?


Thanks,


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmk4j7mv-k1yxxdcrf+uxuttywudrusbg3wrqnrkzwu...@mail.gmail.com



Re: how to fix logical bad sectors

2012-08-27 Thread Muhammad Yousuf Khan
but my /var/log/syslog showing this


Aug 27 12:11:37 lion kernel: [6.347932] ata1.00: status: { DRDY ERR }
Aug 27 12:11:37 lion kernel: [6.348008] ata1.00: error: { UNC }
Aug 27 12:11:37 lion kernel: [6.372478] ata1.00: configured for UDMA/133
Aug 27 12:11:37 lion kernel: [6.372487] ata1: EH complete
Aug 27 12:11:37 lion kernel: [9.059325] ata1.00: exception Emask
0x0 SAct 0x0 SErr 0x0 action 0x0
Aug 27 12:11:37 lion kernel: [9.059413] ata1.00: BMDMA stat 0x4
Aug 27 12:11:37 lion kernel: [9.059514] ata1.00: failed command: READ DMA
Aug 27 12:11:37 lion kernel: [9.059620] ata1.00: cmd
c8/00:08:08:78:1b/00:00:00:00:00/e2 tag 0 dma 4096 in
Aug 27 12:11:37 lion kernel: [9.059621]  res
51/40:00:0a:78:1b/00:00:00:00:00/e2 Emask 0x9 (media error)


do i have to worry about this?


On Mon, Aug 27, 2012 at 3:28 PM, Sthu Deus sthu.d...@gmail.com wrote:
 Good time of the day, Muhammad.


 You wrote:

 i am using RAID 1 on 2x500GB harddrives. and one of my drive shows
 Current_Pending_Sector 154. how can i fix that.

 I also did not have such a problem. But I think, that You have not to
 worry about this unless huge amount of sectors will become bad in short
 period of time. - The HDD will relocate it itself, marking the primary
 ones as bad and that's it.


 Sthu.


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/503b4bba.c31c700a.4625.1...@mx.google.com



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfMnjNqpxKeG_QUSNL2wFrDhwuKChK=nsojmhtvy3xqv...@mail.gmail.com



Re: how to fix logical bad sectors

2012-08-28 Thread Muhammad Yousuf Khan
On Mon, Aug 27, 2012 at 7:34 PM, Camaleón noela...@gmail.com wrote:
 On Mon, 27 Aug 2012 16:21:41 +0500, Muhammad Yousuf Khan wrote:

 On Mon, Aug 27, 2012 at 3:28 PM, Sthu Deus sthu.d...@gmail.com wrote:
 Good time of the day, Muhammad.


 You wrote:

 i am using RAID 1 on 2x500GB harddrives. and one of my drive shows
 Current_Pending_Sector 154. how can i fix that.

 You can't. Modern hard disks handle this by themselves in a process that
 is transparent for the user (they mark the bad sectors so they are not
 used again). You have to worry though if this value
 (Current_Pending_Sector) starts increasing very quickly.

 After all, as you are using raid 1 you are covered by this (i.e., a
 hard disk failure), right? ;-P

 I also did not have such a problem. But I think, that You have not to
 worry about this unless huge amount of sectors will become bad in short
 period of time. - The HDD will relocate it itself, marking the primary
 ones as bad and that's it.

 Exactly.

 but my /var/log/syslog showing this


 Aug 27 12:11:37 lion kernel: [6.347932] ata1.00: status: { DRDY ERR }
 Aug 27 12:11:37 lion kernel: [6.348008] ata1.00: error: { UNC }
 Aug 27 12:11:37 lion kernel: [6.372478] ata1.00: configured for UDMA/133
 Aug 27 12:11:37 lion kernel: [6.372487] ata1: EH complete
 Aug 27 12:11:37 lion kernel: [9.059325] ata1.00: exception Emask 0x0 
 SAct 0x0 SErr 0x0 action 0x0
 Aug 27 12:11:37 lion kernel: [9.059413] ata1.00: BMDMA stat 0x4
 Aug 27 12:11:37 lion kernel: [9.059514] ata1.00: failed command: READ DMA
 Aug 27 12:11:37 lion kernel: [9.059620] ata1.00: cmd 
 c8/00:08:08:78:1b/00:00:00:00:00/e2 tag 0 dma 4096 in
 Aug 27 12:11:37 lion kernel: [9.059621]  res 
 51/40:00:0a:78:1b/00:00:00:00:00/e2 Emask 0x9 (media error)


 do i have to worry about this?

 Sure you do. What's connected to ata1.00? (dmesg | grep -i ata1.00)

 These errors are usually derived not from bad sectors but a hardware issue
 (e.g., bad/loosey cabling). Just to be sure, you can run a full SMART test to
 diagnose any problem from the disk and better if you use the hdd 
 manufacturer's
 test disk tools which are usually run from a small live-cd iso.

 Greetings,

 --
 Camaleón


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/k1g0ig$9nj$1...@ger.gmane.org


here you go.

[2.920604] ata1.00: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[2.955968] ata1.00: ATA-8: WDC WD5000AVVS-63M8B0, 01.00A01, max UDMA/133
[2.955972] ata1.00: 976773168 sectors, multi 16: LBA48 NCQ (depth 0/32)
[2.961570] ata1.00: configured for UDMA/133

would you please tell me one more thing. i am using rsyslog server but
i can not see this critical error on that rsyslog server.
 i am  using this in /etc/rsyslog.conf
*.* @@MySyslogServer

which is working fine however it suppose to show this msg also. any
experience person would like to throw some light on that plz.

Thanks,


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmk1ojoopt_+lxxo457ffnyqawqohuvkth7runmx1wp...@mail.gmail.com



Re: how to fix logical bad sectors

2012-08-29 Thread Muhammad Yousuf Khan
On Tue, Aug 28, 2012 at 7:24 PM, Camaleón noela...@gmail.com wrote:
 On Tue, 28 Aug 2012 14:12:52 +0500, Muhammad Yousuf Khan wrote:

 On Mon, Aug 27, 2012 at 7:34 PM, Camaleón noela...@gmail.com wrote:

 (...)

 do i have to worry about this?

 Sure you do. What's connected to ata1.00? (dmesg | grep -i ata1.00)

 These errors are usually derived not from bad sectors but a hardware
 issue (e.g., bad/loosey cabling). Just to be sure, you can run a full
 SMART test to diagnose any problem from the disk and better if you use
 the hdd manufacturer's test disk tools which are usually run from a
 small live-cd iso.

 here you go.

 [2.920604] ata1.00: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
 [2.955968] ata1.00: ATA-8: WDC WD5000AVVS-63M8B0, 01.00A01, max UDMA/133
 [2.955972] ata1.00: 976773168 sectors, multi 16: LBA48 NCQ (depth 0/32)
 [2.961570] ata1.00: configured for UDMA/133

 That's one of your hard disks so you definitely have to worry for the above
 errors.

 You can get WD diagnostic tool from here:

 Data Lifeguard Diagnostic for DOS (CD)
 http://support.wdc.com/product/download.asp?groupid=610sid=30lang=en

 If both SATA drives pass the tests then open your computer case and reseat/
 reconnect the SATA cables (or better yet, replace them with a set of quality
 SATA cables).

 Another test you can perform is getting the ISO image for SystemRescueCD 
 (livecd)
 and boot with it. From here you can check if the errors are gone or still 
 present
 (by doing so you can discard/confirm a problem coming from the raid 1 layout 
 that
 you have set in your main system because the livecd will see/treat both disks
 independently, not raided).

 would you please tell me one more thing. i am using rsyslog server but i
 can not see this critical error on that rsyslog server.

 (...)

 Sorry, but this is not the proper thread to talk about that. Anyway, I already
 read the other post you sent about the issue but I have no idea on rsyslog and
 remote logging, sorry ;-(
No problem :). thanks for all the support


 Greetings,

 --
 Camaleón


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/k1ikac$ik9$7...@ger.gmane.org



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfM=5vrdnywhilv9y29gxhmlfwcawde0wx-epj0+rtkf...@mail.gmail.com



Re: internet speed

2012-10-03 Thread Muhammad Yousuf Khan
For me what work is DNS, most of the time i face  slow net issue it is
oftenly problem with my primary DNS.
 it takes time when DNS query shifts from primary to secondary if
primary timed out. so better you check the response from DNS too. my
be this would help. IMO

ykhan

On Mon, Oct 1, 2012 at 7:38 PM, lina lina.lastn...@gmail.com wrote:
 Hi,

 Recently I notice my laptop's internet connection speed is really slow.
 and sometimes seems no connection.

 I don't know how to start to examine, any suggestions?

 Thanks with best regards,


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/5069aae2.2030...@gmail.com



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfM=6Q0MB6p=OTQ_w-JP076a6DnngzCiAnrKjiHm=_yg...@mail.gmail.com



resolve.conf missing

2012-10-15 Thread Muhammad Yousuf Khan
i just installed Debian squeeze 6.0.4 with net install CD. everything
went Ok but the problem is i could not find resolve.conf file in
/etc/. so i have to create the file manually however still i can not
use the file because whenever i place my internal DNS like nameserver
10.X.X.8 and try to ping google.com and it faild eventually.

Note : my DNS is reachable and successfully pinged from the mentioned machine.

root@cheetah:~# ping google.com
ping: unknown host google.com
root@cheetah:~# cat /etc/resolve.conf
nameserver 10.x.x.8
root@cheetah:~#

kindly help me to resolve the issue.

Thanks you,

MYK


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmkzooms0pgl+c_pte19pi9zc7o2ptnwdy9embm-qbz...@mail.gmail.com



Re: resolve.conf missing

2012-10-15 Thread Muhammad Yousuf Khan
Sorry!  my mistake i created a file with wrong file name the correct
spelling is resolv.conf i mistakenly add the e.



On Mon, Oct 15, 2012 at 12:48 PM, Muhammad Yousuf Khan sir...@gmail.com wrote:
 i just installed Debian squeeze 6.0.4 with net install CD. everything
 went Ok but the problem is i could not find resolve.conf file in
 /etc/. so i have to create the file manually however still i can not
 use the file because whenever i place my internal DNS like nameserver
 10.X.X.8 and try to ping google.com and it faild eventually.

 Note : my DNS is reachable and successfully pinged from the mentioned machine.

 root@cheetah:~# ping google.com
 ping: unknown host google.com
 root@cheetah:~# cat /etc/resolve.conf
 nameserver 10.x.x.8
 root@cheetah:~#

 kindly help me to resolve the issue.

 Thanks you,

 MYK


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfMmYG=WZs7WVugNjs=c41_tse10sudmgaxk_4mjecvf...@mail.gmail.com



command history via Web-console.

2012-05-02 Thread Muhammad Yousuf Khan
Hello everyone,


I am using few web front end tools in debian and other destros and for
learning purpose i would like to know the command history that has
been ran via Web console. does linux provide any option by which i can
check the history of commands.

Thanks,

MYK


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmngqzhouhxec38ntddc+udq9s1jofeerqeufvp1umd...@mail.gmail.com



*URGENT* plz need help system not booting after lvresize command

2012-05-02 Thread Muhammad Yousuf Khan
i resize the LV from 300 GB to 400 GB

then i ran the listed commands

e2fsck -f /dev/mapper/vg--800-Archive400GB

resize2fs -p /dev/mapper/vg--800-Archive400GB


now when i reboot the system

ata3.01 : status: { DRDY ERR }
ata3.01 : error :  { UNC }
ata3.01 : exception emask 0x0 SAct 0x0 SErr 0x0 action 0x0
ata3.01 : BMDMA stat 0x64
ata3.01 : failed command : read DMA


my system is not booting up.giving me lots and lots of above erros.

no matter what i do  it doesnt give me the prompt. it is continuesly
giving me this error. i tried recovery mod NO LUCK.

it worked when i unplug the 800GB drive, things start working fine via
default boot drives. however, i tried bootable CD. it shows the same
error
and i # all the partitions mount point  that has been located on the
said drive. but still can not get the prompt.

PLease help, data is very important.

Thanks


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmniu6uxyvaar973edfygpaextlcfghuvh1zvmct1x1...@mail.gmail.com



Re: *URGENT* plz need help system not booting after lvresize command

2012-05-02 Thread Muhammad Yousuf Khan
sorry, if i am miss leading with the error . actually i belive that
this must have happen. by the lvresize command. actually every thing
was working nice and smooth. here is the quick story.

first i ran the command.

1. i resize the old partition
lvresize -L 400GB VG-NAME with PATH


2  then i ran resize command
resize2fs -p /dev/mapper/vg--800-Archive400GB

but gives me error and tells me to run  e2fsck -f 

3. so i rant

e2fsck -f /dev/mapper/vg--800-Archive400GB

which was fine and even vg display and df -h showing the same size so
i got relaxed that things are fine.

4. then i created another one for quota assignment to all the users

lvcreate -L 245GB  VG-NAME AND path-n name

then i transfer the ext4 file system to it. i dont remeber the command
but it was
 something.ext4 lv complete path

5 and i enabled the quota in fstab alog with the UUID to mount it on boot.

6. then i enabled kernal moudule.

   modprob qutoa_v2
   echo qutoa_v2 /etc/modules (do you think it could be the module issue?)

7.  for testing i mount the drive by mount usrquota source path mount point

so it worked find .
..

now next reboot problem started.

thats the whole story..

Thanks

On Wed, May 2, 2012 at 8:49 PM, Jon Dowland j...@debian.org wrote:
 On Wed, May 02, 2012 at 08:45:25PM +0500, Muhammad Yousuf Khan wrote:
 i resize the LV from 300 GB to 400 GB

 Exactly what command did you type, and what feedback did you get?



 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/20120502154926.GA6770@debian



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfM=Tq_oTKZd5S4Sf3a80kXTqP5GhFY1i5Z4=abxajcn...@mail.gmail.com



Re: *URGENT* plz need help system not booting after lvresize command

2012-05-02 Thread Muhammad Yousuf Khan
i tried every single possibility regarding cables i have 3 HD i tried
the smaller HDs cable it gives me the same error.


actually i also installed quota module by modeprobe qutoa_v2 and echo
qutoa_V2   /etc/moudels

in fstab i added the UUID and ursquota keyword to for quota support.

and the next start was very unfortunate .

actually it is showing me the error on the point where RAID md devices
are checked

when i unpluged the problem drive it shows me md1 md2 and md0 status
and after few logs it give me the problem  but when plug the drive
back, on the stage where it suppose to show the SW raid1 status it
shows me this error.


is there any possibility i can at least get the data back. i am 100%
sure it is not a hardware problem. it has some configuration related
problem.


Thanks





On Wed, May 2, 2012 at 8:50 PM, Claudius Hubig debian_1...@chubig.net wrote:
 Hello Muhammad,

 Muhammad Yousuf Khan sir...@gmail.com wrote:
 ata3.01 : status: { DRDY ERR }
 ata3.01 : error :  { UNC }
 ata3.01 : exception emask 0x0 SAct 0x0 SErr 0x0 action 0x0
 ata3.01 : BMDMA stat 0x64
 ata3.01 : failed command : read DMA

 This looks as if either the hard drive or the connection thereto is
 faulty. Try to connect the HDD to another SATA port. I don’t think it
 has anything to do with your resizing.

 Best regards  good luck,

 Claudius
 --
 Like I always say -- nothing can beat the BRATWURST here in DUSSELDORF!!
 http://chubig.net                                    telnet nightfall.org 4242


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfM=mZy29_s0cUyv3GDZA=czvmxg4h_q6dbukrnbxvvz...@mail.gmail.com



Re: *URGENT* plz need help system not booting after lvresize command

2012-05-02 Thread Muhammad Yousuf Khan
at least there should be a way to reach the command prompt. is there
any way to ignore this error and reach the command prompt so i can
just copy the necessary data.

Thanks.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmk8gjw_rolcbzyav9zk2c4+xtjjqrpguvyoev3w+ke...@mail.gmail.com



Re: *URGENT* plz need help system not booting after lvresize command

2012-05-02 Thread Muhammad Yousuf Khan
On Wed, May 2, 2012 at 11:07 PM, Arnt Karlsen a...@c2i.net wrote:
 On Wed, 2 May 2012 22:07:14 +0500, Muhammad wrote in message
 CAGWVfM=mZy29_s0cUyv3GDZA=czvmxg4h_q6dbukrnbxvvz...@mail.gmail.com:

 i tried every single possibility regarding cables i have 3 HD i tried
 the smaller HDs cable it gives me the same error.

 ..good, means hardware failure.  Try another machine.


 actually i also installed quota module by modeprobe qutoa_v2 and echo
 qutoa_V2   /etc/moudels

 in fstab i added the UUID and ursquota keyword to for quota support.

 and the next start was very unfortunate .

 actually it is showing me the error on the point where RAID md devices
 are checked

 when i unpluged the problem drive it shows me md1 md2 and md0 status
 and after few logs it give me the problem  but when plug the drive
 back, on the stage where it suppose to show the SW raid1 status it
 shows me this error.


 is there any possibility i can at least get the data back. i am 100%
 sure it is not a hardware problem. it has some configuration related
 problem.

 ..yes, and it could even be both.  If your data is important,
 keep it safe and away from that machine until you know it is
 ok.  E.g. flaky grid power can eat your power supply enough
 to e.g. kill a file system journal or leave it running on a
 read-only fs, force feeding you interesting challenges.

can you please make it easy what you have :P i am not that good in english :-D

what do you mean by readonly FS. and what do you mean by kill a file system.

i am a newbie can you make it easy please

but right now the problem is command prompt. is there any way that
Debian just ignore the error and continue the boot and at least give
me the command prompt where i can just copy all the stuff to USB or
another drive.

but let me shre you. i tried PXE boot via with clonezilla and
different OS drives but keep giving me the same error and not letting
me use the command prompt.

any idea?

Thanks







 Thanks





 On Wed, May 2, 2012 at 8:50 PM, Claudius Hubig
 debian_1...@chubig.net wrote:
  Hello Muhammad,
 
  Muhammad Yousuf Khan sir...@gmail.com wrote:
  ata3.01 : status: { DRDY ERR }
  ata3.01 : error :  { UNC }
  ata3.01 : exception emask 0x0 SAct 0x0 SErr 0x0 action 0x0
  ata3.01 : BMDMA stat 0x64
  ata3.01 : failed command : read DMA
 
  This looks as if either the hard drive or the connection thereto is
  faulty. Try to connect the HDD to another SATA port. I don’t think
  it has anything to do with your resizing.
 
  Best regards  good luck,
 
  Claudius
  --
  Like I always say -- nothing can beat the BRATWURST here in
  DUSSELDORF!! http://chubig.net
   telnet nightfall.org 4242




 --
 ..med vennlig hilsen = with Kind Regards from Arnt Karlsen
 ...with a number of polar bear hunters in his ancestry...
  Scenarios always come in sets of three:
  best case, worst case, and just in case.


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/20120502200712.18a59...@celsius.lan



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfMmXUZHb-wD=drr0as-pmyig8qqsofxy+ucnsmbsed-...@mail.gmail.com



Re: *URGENT* plz need help system not booting after lvresize command

2012-05-02 Thread Muhammad Yousuf Khan
On Thu, May 3, 2012 at 12:31 AM, Claudius Hubig debian_1...@chubig.net wrote:
 Hello Muhammad,

 Muhammad Yousuf Khan sir...@gmail.com wrote:
 at least there should be a way to reach the command prompt. is there
 any way to ignore this error and reach the command prompt so i can
 just copy the necessary data.

 Probably not, because this error means that accessing whatever is
 attached to the third SATA port is somehow broken.

 You did not answer my previous questions:

 1) Do other HDD work at this SATA port?

actually i didnt check the SATA port however i change the working HD
SATA port as i already share i have multiple drives in a box so the
drive is showing the same error which shows that problem is not with
sata

 2) How does this HDD behave at another SATA port, preferably in
   another computer?


 You could also try to get an external enclosure and connect the HDD
 during runtime.

ok ill try this external case suggestion




 However, I highly doubt that you can ‘just copy’ the necessary data
 of this drive.

lets hope for the best. however i do have the copy but have to do lots
and lots of work. which i hate now :(

 Best regards,

 Claudius

 PS: Please do not CC me.
 --
 There cannot be a crisis next week.  My schedule is already full.
                -- Henry Kissinger
 http://chubig.net                          telnet nightfall.org 4242


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfMk2tYsCejSA6ZemZE2O1W2jJ2Ymºnpvocb7b1nbt...@mail.gmail.com



Re: command history via Web-console.

2012-05-03 Thread Muhammad Yousuf Khan
ok, Thanks for the nice info.



On Wed, May 2, 2012 at 8:54 PM, Christofer C. Bell
christofer.c.b...@gmail.com wrote:
 On Wed, May 2, 2012 at 3:21 AM, Muhammad Yousuf Khan sir...@gmail.com wrote:
 Hello everyone,


 I am using few web front end tools in debian and other destros and for
 learning purpose i would like to know the command history that has
 been ran via Web console. does linux provide any option by which i can
 check the history of commands.

 The operating system is simply a framework on which applications run.
 The operating system will not keep track of what your web
 administration interface runs.  That will be up to your administrative
 interface and/or any utilities it's calling directly on the server.

 For example, if your utility calls the dpkg command in the background,
 that will be in /var/log/dpkg.log file.  If it is doing things without
 calling operating system utilities, then it will have to have its own
 logs (probably, again, in /var/log).  If it is not logging anything,
 then there is no way to retrieve a history of what it's doing.

 --
 Chris


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: 
 http://lists.debian.org/caoevnyvw050whbu5owmrl0rzqckyj4ona75vz80yxj67ssy...@mail.gmail.com



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmmgkdhbjm9frkanb685hquswn1nzqquu5arzjdv+bz...@mail.gmail.com



Re: *URGENT* plz need help system not booting after lvresize command

2012-05-03 Thread Muhammad Yousuf Khan
ok finally, recovering the data from old drive :(..
recovering data is not a big deal however creating the same directory
infrastructure . rights assigning and stuff is pain ..

Thanks for the support.


On Thu, May 3, 2012 at 1:24 AM, Muhammad Yousuf Khan sir...@gmail.com wrote:
 On Thu, May 3, 2012 at 12:31 AM, Claudius Hubig debian_1...@chubig.net 
 wrote:
 Hello Muhammad,

 Muhammad Yousuf Khan sir...@gmail.com wrote:
 at least there should be a way to reach the command prompt. is there
 any way to ignore this error and reach the command prompt so i can
 just copy the necessary data.

 Probably not, because this error means that accessing whatever is
 attached to the third SATA port is somehow broken.

 You did not answer my previous questions:

 1) Do other HDD work at this SATA port?

 actually i didnt check the SATA port however i change the working HD
 SATA port as i already share i have multiple drives in a box so the
 drive is showing the same error which shows that problem is not with
 sata

 2) How does this HDD behave at another SATA port, preferably in
   another computer?


 You could also try to get an external enclosure and connect the HDD
 during runtime.

 ok ill try this external case suggestion




 However, I highly doubt that you can ‘just copy’ the necessary data
 of this drive.

 lets hope for the best. however i do have the copy but have to do lots
 and lots of work. which i hate now :(

 Best regards,

 Claudius

 PS: Please do not CC me.
 --
 There cannot be a crisis next week.  My schedule is already full.
                -- Henry Kissinger
 http://chubig.net                          telnet nightfall.org 4242


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmmxgfatjwsvpqdfaku5koih+sujyctkrgdboapnena...@mail.gmail.com



Re: *URGENT* plz need help system not booting after lvresize command

2012-05-03 Thread Muhammad Yousuf Khan
On Thu, May 3, 2012 at 4:04 PM, Arnt Karlsen a...@c2i.net wrote:
 On Wed, 2 May 2012 23:56:06 +0500, Muhammad wrote in message
 CAGWVfMmXUZHb-wD=drr0as-pmyig8qqsofxy+ucnsmbsed-...@mail.gmail.com:

 On Wed, May 2, 2012 at 11:07 PM, Arnt Karlsen a...@c2i.net wrote:
  On Wed, 2 May 2012 22:07:14 +0500, Muhammad wrote in message
  CAGWVfM=mZy29_s0cUyv3GDZA=czvmxg4h_q6dbukrnbxvvz...@mail.gmail.com:
 
  i tried every single possibility regarding cables i have 3 HD i
  tried the smaller HDs cable it gives me the same error.
 
  ..good, means hardware failure.  Try another machine.
 
 
  actually i also installed quota module by modeprobe qutoa_v2 and
  echo qutoa_V2   /etc/moudels
 
  in fstab i added the UUID and ursquota keyword to for quota
  support.
 
  and the next start was very unfortunate .
 
  actually it is showing me the error on the point where RAID md
  devices are checked
 
  when i unpluged the problem drive it shows me md1 md2 and md0
  status and after few logs it give me the problem  but when plug
  the drive back, on the stage where it suppose to show the SW raid1
  status it shows me this error.
 
 
  is there any possibility i can at least get the data back. i am
  100% sure it is not a hardware problem. it has some configuration
  related problem.
 
  ..yes, and it could even be both.  If your data is important,
  keep it safe and away from that machine until you know it is
  ok.  E.g. flaky grid power can eat your power supply enough
  to e.g. kill a file system journal or leave it running on a
  read-only fs, force feeding you interesting challenges.

 can you please make it easy what you have :P i am not that good in
 english :-D

 ..like I said above, try your disks in _another_ machine.

 what do you mean by readonly FS.

 ..mount each of your disks with e.g.
 mount -vo,ro /dev/bad-disk.part0 /mnt.

 and what do you mean by kill a file system.

 ..you can _destroy_ _all_ of your data if you do a fsck or if you
 do a normal mount, which is usually a read-write mount, where you
 risk having your possibly bad file system journal try to repair
 your file system.

 ..I've had this happen twice on my own, and once on a
 client fs in the early days of ext3.  No, I have no
 experience with lvm.

 i am a newbie can you make it easy please

 ..you asked for advice here on d-u@dlo.  A wise start.

 but right now the problem is command prompt.

 ..no.  _If_ you want to use that machine with your disks,
 _first_ take your disks out of that machine, and _then_
 use a LiveCD or LiveUSB or some such to verify your machine
 is working ok, check ram, cpu, power supply _etc_, you
 probably have an hardware problem that caused your disk
 failures.

 is there any way that
 Debian just ignore the error and continue the boot and at least give
 me the command prompt where i can just copy all the stuff to USB or
 another drive.

 ..yes.  Use a _working_ machine, one without bad hardware.
 You will find that _much_ easier, and _much_ cheaper than
 trying to mess with bad file systems on a blown up piece
 of junk.


right now i didnt had enough time to troubleshoot so i just started
recovering it from the backup disk. however i thought that it could be
the partition level issue. (i mean logical) but i was wrong i deleted
the partition via windows XP boot CD but still giving me the same
error which means that there is some thing with the hardware.anyways
bad luck. now constructing the whole thing again :(

Thanks,


 but let me shre you. i tried PXE boot via with clonezilla and
 different OS drives but keep giving me the same error and not letting
 me use the command prompt.

 any idea?

 Thanks





 
 
  Thanks
 
 
 
 
 
  On Wed, May 2, 2012 at 8:50 PM, Claudius Hubig
  debian_1...@chubig.net wrote:
   Hello Muhammad,
  
   Muhammad Yousuf Khan sir...@gmail.com wrote:
   ata3.01 : status: { DRDY ERR }
   ata3.01 : error :  { UNC }
   ata3.01 : exception emask 0x0 SAct 0x0 SErr 0x0 action 0x0
   ata3.01 : BMDMA stat 0x64
   ata3.01 : failed command : read DMA
  
   This looks as if either the hard drive or the connection thereto
   is faulty. Try to connect the HDD to another SATA port. I don’t
   think it has anything to do with your resizing.
  
   Best regards  good luck,
  
   Claudius
   --
   Like I always say -- nothing can beat the BRATWURST here in
   DUSSELDORF!! http://chubig.net
    telnet nightfall.org 4242
 
 
 
 
  --
  ..med vennlig hilsen = with Kind Regards from Arnt Karlsen
  ...with a number of polar bear hunters in his ancestry...
   Scenarios always come in sets of three:
   best case, worst case, and just in case.
 
 
  --
  To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
  with a subject of unsubscribe. Trouble? Contact
  listmas...@lists.debian.org Archive:
  http://lists.debian.org/20120502200712.18a59...@celsius.lan
 



 --
 ..med vennlig hilsen = with Kind Regards from Arnt Karlsen
 ...with a number of polar bear hunters in his ancestry...
  Scenarios always come

Windows domain user in Linux

2012-05-04 Thread Muhammad Yousuf Khan
i am using winbind for samba to fetch users from windows domain. now i
want to add a windows domain user administrator a member of group
root. however when i run the command it gives me an error.

#useradd -G root administrator
useradd: user 'administrator' already exists


Please Help.

Thank you,


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfMnA8=0kvxlpmmrbzatqrupqq65zwnn1g2cnm1u+9wj...@mail.gmail.com



Re: Windows domain user in Linux

2012-05-04 Thread Muhammad Yousuf Khan
On Fri, May 4, 2012 at 7:49 PM, Daniel Koch
koch.daniel...@googlemail.com wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Am 04.05.2012 09:32, schrieb Muhammad Yousuf Khan:
 i am using winbind for samba to fetch users from windows domain.
 now i want to add a windows domain user administrator a member of
 group root. however when i run the command it gives me an error.

 #useradd -G root administrator useradd: user 'administrator'
 already exists


 Please Help.

 Thank you,



 What about:

 # adduser administrator root


wwwowww It worked Thanks mate :)

can i ask a question , why it worked by adduser and why not useradd as
both commands works for a same purpose AFAIK


Thanks,



 ?
 - --
 Daniel Koch
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.12 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAk+j7GIACgkQOy1+jxP0nDmZ9ACeJpcOZYq1a6pcDDp9Brc1qpNz
 NcsAn1B8laCryqQH3yMQ3pgAMToOLUby
 =Gyuk
 -END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfMkvgtNv7qQUFCgY8Wh=P=sfkyryo9mawk3p_fprxk2...@mail.gmail.com



Re: Windows domain user in Linux

2012-05-04 Thread Muhammad Yousuf Khan
On Fri, May 4, 2012 at 8:10 PM, Camaleón noela...@gmail.com wrote:
 On Fri, 04 May 2012 12:32:31 +0500, Muhammad Yousuf Khan wrote:

 i am using winbind for samba to fetch users from windows domain. now i
 want to add a windows domain user administrator a member of group
 root. however when i run the command it gives me an error.

 #useradd -G root administrator
 useradd: user 'administrator' already exists

 Is the user already in an external database?

 From man adduser:

 ***
 CAVEATS
 You may not add a user to a NIS or LDAP group. This must be performed on
 the corresponding server.

 Similarly, if the username already exists in an external user database
 such as NIS or LDAP, useradd will deny the user account creation request.
 ***

 In addition, if the user administrator already exists locally, you have
 to use usermod instead.

 Note: adding a user to the root's group can be dangerous.


Thanks for the informative email, however administrator is me so thats
the reason i added that.

Thanks any ways,





 Greetings,

 --
 Camaleón


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/jo0rhj$3du$7...@dough.gmane.org



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmkkubl0udlahfnznjumyejl6brn9px5jspt6qmvuju...@mail.gmail.com



Re: Windows domain user in Linux

2012-05-05 Thread Muhammad Yousuf Khan
On Sat, May 5, 2012 at 1:50 AM, Camaleón noela...@gmail.com wrote:
 On Fri, 04 May 2012 21:06:58 +0500, Muhammad Yousuf Khan wrote:

 On Fri, May 4, 2012 at 8:10 PM, Camaleón noela...@gmail.com wrote:
 On Fri, 04 May 2012 12:32:31 +0500, Muhammad Yousuf Khan wrote:

 i am using winbind for samba to fetch users from windows domain. now i
 want to add a windows domain user administrator a member of group
 root. however when i run the command it gives me an error.

 #useradd -G root administrator
 useradd: user 'administrator' already exists

 Is the user already in an external database?

 From man adduser:

 ***
 CAVEATS
 You may not add a user to a NIS or LDAP group. This must be performed
 on the corresponding server.

 Similarly, if the username already exists in an external user database
 such as NIS or LDAP, useradd will deny the user account creation
 request. ***

 In addition, if the user administrator already exists locally, you
 have to use usermod instead.

 Note: adding a user to the root's group can be dangerous.


 Thanks for the informative email, however administrator is me so thats
 the reason i added that.

 Yes, but that's still dangerous. Why do you need to be in root's group?


Because, there are few folders stored on samba storage where me as a
administrator need to write files very often.

so it seems easy to me that i have to just chmode 770 to the
folder/file  and things starts working accordingly.

by the way , what kind of security consequences you are talking about?

note : i am using this only for samba share

 Thanks any ways,

 You're welcome.

 Anyway, a quick note on your first one-liner: by re-reading man useradd
 I think you should use -g instead -G.

 Greetings,

 --
 Camaleón


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/jo1fe4$3du$1...@dough.gmane.org



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmmvpccg5mqrh01w5zj9wqcdv3wtu0dkdcochay703z...@mail.gmail.com



Re: Windows domain user in Linux

2012-05-07 Thread Muhammad Yousuf Khan
On Sat, May 5, 2012 at 5:07 PM, Camaleón noela...@gmail.com wrote:
 On Sat, 05 May 2012 16:19:52 +0500, Muhammad Yousuf Khan wrote:

 On Sat, May 5, 2012 at 1:50 AM, Camaleón noela...@gmail.com wrote:

 Thanks for the informative email, however administrator is me so thats
 the reason i added that.

 Yes, but that's still dangerous. Why do you need to be in root's group?


 Because, there are few folders stored on samba storage where me as a
 administrator need to write files very often.

 Then you can adjust the share owner and permissions in a proper way.

 so it seems easy to me that i have to just chmode 770 to the folder/file
  and things starts working accordingly.

 Easy, can be (I can't tell because I don't know the details of your samba/
 shares layout). Secure, not.

mostly share are like this.

[Library]
comment = Shared Directories
path = /hdxxx/100xx/libxxx/
read list = @all
write list = nhasnain, admin
read only = yes
create mask = 0774
directory mask = 0774


 by the way , what kind of security consequences you are talking about?

 An impersonated user that can access/read/delete your system files.

 note : i am using this only for samba share

 More reasons to avoid exposing your system security.

Thanks , i got your point ... and i like it too. ill change the
right infrastructure accordingly.





 Greetings,

 --
 Camaleón


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/jo355m$4gr$4...@dough.gmane.org



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmmwvnkdmtuwpfbw0t_0gn5-erodbtfjjgncz-m8kv8...@mail.gmail.com



samba / winbind and console loggin confusion

2012-05-07 Thread Muhammad Yousuf Khan
Dear All,

i have been using Samba for almost 6 months but now there is a problem
which i realize and now looking farword to resolve it.

in files /etc/pam.d/common-auth and /etc/pam.d/common-account

i put this line at the end of the file

auth sufficient /lib/security/pam_winbind.so


now things are working fine ans per the expectation but one thing
which i can not understand, when i try to logging to console screen it
ask the password 3 times. 1 time it accepts doest give any error.
second time  login server not found and third time it accept the
password.


now when i commint(#) the said line from common-account it ask me the
password only two times

however things are working fine even if i commit the line in common account.


here is some more setting detail over my samba server.

[lobal]
workgroup = ASSURETYCONSULT
realm = ASSURETYCONSULTING.COM
server string = %h server
security = ADS
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n
*Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
panic action = /usr/share/samba/panic-action %d
idmap uid = 1-2
idmap gid = 1-2
winbind enum users = Yes
winbind enum groups = Yes
winbind use default domain = Yes


/etc/nsswitch.conf
passwd: compat  winbind
group:  compat  winbind




what can i do to make things back to normal. it suppose to ask the
password only one time.

note : via putty it works fine (ask the password only one time)

Thanks,


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfM=cypuygucw8gsiimrenyl6cns_g_grfhtonf+exvi...@mail.gmail.com



RAID broken .... /dev/sd? drive name changed

2012-05-08 Thread Muhammad Yousuf Khan
i have got 4 drives.

/dev/sda /dev/sdb /dev/sdc and /dev/sdd

/dev/sda raid mirror with /dev/sdc

and

/dev/sdb was raid mirror with /dev/sdd

now this time i unplug the /dev/sdd for some problem diagnostics now
/dev/sdb becomes /dev/sdc and /dev/sdc becomes /dev/sdb and my whole
raid got massed. help please.

Thanks


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmnmty9374oiamf8yobkogpozs4_9bndnqbbzgy5d4v...@mail.gmail.com



Re: samba / winbind and console loggin confusion

2012-05-08 Thread Muhammad Yousuf Khan
# /etc/pam.d/common-auth
authsufficient  pam_winbind.so
authrequiredpam_unix.so use_first_pass

do you mean above ?




On Mon, May 7, 2012 at 8:50 PM, Rob Owens row...@ptd.net wrote:
 On Mon, May 07, 2012 at 03:35:04PM +0500, Muhammad Yousuf Khan wrote:
 Dear All,

 i have been using Samba for almost 6 months but now there is a problem
 which i realize and now looking farword to resolve it.

 in files /etc/pam.d/common-auth and /etc/pam.d/common-account

 i put this line at the end of the file

 auth sufficient /lib/security/pam_winbind.so


 now things are working fine ans per the expectation but one thing
 which i can not understand, when i try to logging to console screen it
 ask the password 3 times. 1 time it accepts doest give any error.
 second time  login server not found and third time it accept the
 password.


 Total guess here, but I've seen the words use_first_pass in pam files
 before.  Maybe that could be applied to your case.

 -Rob


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/20120507155055.ga20...@aurora.owens.net



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmmegey6bjvgytdkobp3hdom-nwdqiceefx7pz8uarq...@mail.gmail.com



Re: RAID broken .... /dev/sd? drive name changed

2012-05-08 Thread Muhammad Yousuf Khan
yes , i was using software RAID and it give me the error and told me
to run fsck at the boot and when i did fsck it delete the whole data.
and i am lost .


On Tue, May 8, 2012 at 1:03 PM, Jon Dowland j...@debian.org wrote:
 On Tue, May 08, 2012 at 11:13:14AM +0500, Muhammad Yousuf Khan wrote:
 i have got 4 drives.

 /dev/sda /dev/sdb /dev/sdc and /dev/sdd

 /dev/sda raid mirror with /dev/sdc

 and

 /dev/sdb was raid mirror with /dev/sdd

 now this time i unplug the /dev/sdd for some problem diagnostics now
 /dev/sdb becomes /dev/sdc and /dev/sdc becomes /dev/sdb and my whole
 raid got massed. help please.

 What RAID technology are you using? Linux software RAID (mdadm) does not
 care about the specific naming of your drives. It uses records stored
 on the drives itself to identify which are RAID members.


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/20120508080354.GA28964@debian



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfMmJN=34hk0-cpcam8anax5mzaetsttwxcyff7eavtv...@mail.gmail.com



debian 6.0.4 grub installation failed.

2012-05-08 Thread Muhammad Yousuf Khan
i just bought 2TBx2 Harddrives and a computer for making it a
centralized archiving server. moving forward everything went well but
during the installation in RAID creating i noticed that i could not
change the boot flag  to on  it was off and i hit several enters
but it stays off. so i just continued with off. now when installation
completed . setup stops at grup installation and throw an error
grub-install /dev/sda failed its a fatal error 

any idea why this?

i never face this type of error before. please help.

Thanks


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmk-zyddoquczzmgk+t7q6aay3ohibsvefqrhxrax3_...@mail.gmail.com



Re: debian 6.0.4 grub installation failed.

2012-05-08 Thread Muhammad Yousuf Khan
ok i fdisk the the partition via recovery CD clonezilla. but all the
partitions doesn't reflect in installation it is showing the old
partition structure however when i go to shell and check things via
FDISK it showed me the new created parttiion with boot flag on which i
have create via commandline.

Please help

On Tue, May 8, 2012 at 4:02 PM, Muhammad Yousuf Khan sir...@gmail.com wrote:
 i just bought 2TBx2 Harddrives and a computer for making it a
 centralized archiving server. moving forward everything went well but
 during the installation in RAID creating i noticed that i could not
 change the boot flag  to on  it was off and i hit several enters
 but it stays off. so i just continued with off. now when installation
 completed . setup stops at grup installation and throw an error
 grub-install /dev/sda failed its a fatal error 

 any idea why this?

 i never face this type of error before. please help.

 Thanks


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmmmgbswr+zt1sha8wrdv0wtmdc6_c00i2+k4msdh48...@mail.gmail.com



Re: debian 6.0.4 grub installation failed.

2012-05-08 Thread Muhammad Yousuf Khan
by the way when i am creating partition via fdisk on 2TB HD . it
showed that my starting block is 2048. instead of 1. i dont know why.
however when i create the partition. via FDISK it gives me an  error
when i fdisk -l /dev/sda. like Partition does not start on physical
sector boundary it happens when i create partition via installation
CD. however when i create via fdisk via clonezilla CD and try to
installed debian on these partition. installation doest recognize the
partition. it shows drive is empty.


On Tue, May 8, 2012 at 6:20 PM,  dage...@free.fr wrote:

 I had a similar problem recently with a SATA 3, 2 TB harddrive.
 Squeeze installed properly, grub installed properly.
 But when updating to wheezy (with a new grub version), grub
 didn't wanted to install on the MBR.
 Try to make a free partition at the start of the HD.

 - Mail original -
 De: Muhammad Yousuf Khan sir...@gmail.com
 À: debian debian-user@lists.debian.org
 Envoyé: Mardi 8 Mai 2012 14:08:10
 Objet: Re: debian 6.0.4 grub installation failed.

 ok i fdisk the the partition via recovery CD clonezilla. but all the
 partitions doesn't reflect in installation it is showing the old
 partition structure however when i go to shell and check things via
 FDISK it showed me the new created parttiion with boot flag on which
 i
 have create via commandline.

 Please help

 On Tue, May 8, 2012 at 4:02 PM, Muhammad Yousuf Khan
 sir...@gmail.com wrote:
  i just bought 2TBx2 Harddrives and a computer for making it a
  centralized archiving server. moving forward everything went well
  but
  during the installation in RAID creating i noticed that i could not
  change the boot flag  to on  it was off and i hit several
  enters
  but it stays off. so i just continued with off. now when
  installation
  completed . setup stops at grup installation and throw an error
  grub-install /dev/sda failed its a fatal error 
 
  any idea why this?
 
  i never face this type of error before. please help.
 
  Thanks


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact
 listmas...@lists.debian.org
 Archive:
 http://lists.debian.org/cagwvfmmmgbswr+zt1sha8wrdv0wtmdc6_c00i2+k4msdh48...@mail.gmail.com




 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: 
 http://lists.debian.org/1585645016.116170685.1336483206019.javamail.r...@zimbra33-e6.priv.proxad.net



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmkvtcyzsh+b79xe_luc_-cztxlzv3o7qzczjoxd+zv...@mail.gmail.com



Re: debian 6.0.4 grub installation failed.

2012-05-08 Thread Muhammad Yousuf Khan
On Tue, May 8, 2012 at 6:43 PM, Tom H tomh0...@gmail.com wrote:
 On Tue, May 8, 2012 at 7:02 AM, Muhammad Yousuf Khan sir...@gmail.com wrote:

 i just bought 2TBx2 Harddrives and a computer for making it a
 centralized archiving server. moving forward everything went well but
 during the installation in RAID creating i noticed that i could not
 change the boot flag  to on it was off and i hit several enters
 but it stays off. so i just continued with off. now when installation
 completed . setup stops at grup installation and throw an error
 grub-install /dev/sda failed its a fatal error 

 any idea why this?

 i never face this type of error before. please help.

 None of my boxes have a partition with the boot flag on.

 Did you use a GPT label?

sorry i am not aware of GPT label, i am not that good. just using the
default stuff


 What do your partitions look like?

i am using Raid 1
 3 partitions

1 gb for boot
4 gb for swap
200 gb for root

and i left rest of the space for further configuration. after installation.






 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: 
 http://lists.debian.org/CAOdo=SzkYgOxNrvKUgZkj9jU=ven5J=SQco7or=qypeofhu...@mail.gmail.com



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmmjkmhm6g0bvaiso-a-0mrb9f4nshaqagc8p5ihr3c...@mail.gmail.com



Re: debian 6.0.4 grub installation failed.

2012-05-08 Thread Muhammad Yousuf Khan
cfdisk to 2tb Drive give me this

Warning!!  Unsupported GPT (GUID Partition Table) detected. Use GNU Parted.

since things were not booting up with 2TB so i just installed 320 GB
HD so that things start well however after installation and after
successful boot. when i cfdisk the primary partition it give me this
error .

FATAL ERROR: Bad primary partition 2: Partition ends in the final partial cylind
  Press any key to exit cfdisk


On Tue, May 8, 2012 at 7:50 PM, Arnt Karlsen a...@c2i.net wrote:
 On Tue, 8 May 2012 17:08:10 +0500, Muhammad wrote in message
 cagwvfmmmgbswr+zt1sha8wrdv0wtmdc6_c00i2+k4msdh48...@mail.gmail.com:

 On Tue, May 8, 2012 at 4:02 PM, Muhammad Yousuf Khan
 sir...@gmail.com wrote:
  i just bought 2TBx2 Harddrives and a computer for making it a
  centralized archiving server. moving forward everything went well
  but during the installation in RAID creating i noticed that i could
  not change the boot flag  to on  it was off and i hit several
  enters but it stays off. so i just continued with off. now when
  installation completed . setup stops at grup installation and throw
  an error grub-install /dev/sda failed its a fatal error 
 
  any idea why this?
 
  i never face this type of error before. please help.
 
  Thanks


 ok i fdisk the the partition via recovery CD clonezilla. but all the
 partitions doesn't reflect in installation it is showing the old
 partition structure however when i go to shell and check things via
 FDISK it showed me the new created parttiion with boot flag on which i
 have create via commandline.

 Please help

 ..try cfdisk, it gives you eyes.

 --
 ..med vennlig hilsen = with Kind Regards from Arnt Karlsen
 ...with a number of polar bear hunters in his ancestry...
  Scenarios always come in sets of three:
  best case, worst case, and just in case.


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/20120508165048.08568...@celsius.lan



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmmjkanbr1uoytweh-ivhw4txktedoex1wl4xpanusv...@mail.gmail.com



Re: debian 6.0.4 grub installation failed.

2012-05-08 Thread Muhammad Yousuf Khan
On Tue, May 8, 2012 at 8:10 PM, Muhammad Yousuf Khan sir...@gmail.com wrote:
 cfdisk to 2tb Drive give me this

 Warning!!  Unsupported GPT (GUID Partition Table) detected. Use GNU Parted.

 since things were not booting up with 2TB so i just installed 320 GB
 HD so that things start well however after installation and after
 successful boot. when i cfdisk the primary partition it give me this
 error .

 FATAL ERROR: Bad primary partition 2: Partition ends in the final partial 
 cylind
                          Press any key to exit cfdisk


FYI : things are working normal no issues at all.


 On Tue, May 8, 2012 at 7:50 PM, Arnt Karlsen a...@c2i.net wrote:
 On Tue, 8 May 2012 17:08:10 +0500, Muhammad wrote in message
 cagwvfmmmgbswr+zt1sha8wrdv0wtmdc6_c00i2+k4msdh48...@mail.gmail.com:

 On Tue, May 8, 2012 at 4:02 PM, Muhammad Yousuf Khan
 sir...@gmail.com wrote:
  i just bought 2TBx2 Harddrives and a computer for making it a
  centralized archiving server. moving forward everything went well
  but during the installation in RAID creating i noticed that i could
  not change the boot flag  to on  it was off and i hit several
  enters but it stays off. so i just continued with off. now when
  installation completed . setup stops at grup installation and throw
  an error grub-install /dev/sda failed its a fatal error 
 
  any idea why this?
 
  i never face this type of error before. please help.
 
  Thanks


 ok i fdisk the the partition via recovery CD clonezilla. but all the
 partitions doesn't reflect in installation it is showing the old
 partition structure however when i go to shell and check things via
 FDISK it showed me the new created parttiion with boot flag on which i
 have create via commandline.

 Please help

 ..try cfdisk, it gives you eyes.

 --
 ..med vennlig hilsen = with Kind Regards from Arnt Karlsen
 ...with a number of polar bear hunters in his ancestry...
  Scenarios always come in sets of three:
  best case, worst case, and just in case.


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/20120508165048.08568...@celsius.lan



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmkwpk7ccfk1dpf+u6dcdkxs8uvohpq_2oy3v16jdjy...@mail.gmail.com



Re: debian 6.0.4 grub installation failed.

2012-05-09 Thread Muhammad Yousuf Khan
ok i used the parted command by mklabel gpt i created the partition
but i want it to be linux raid. please help me to convert it to raid
since i can not find option in parted to make it a fd linux raid
type nor i can find anything related to this topic on google. and
fdisk is not supporting the GPT . so i am stuck kindly help!

On Tue, May 8, 2012 at 10:17 PM, Camaleón noela...@gmail.com wrote:
 On Tue, 08 May 2012 16:02:10 +0500, Muhammad Yousuf Khan wrote:

 i just bought 2TBx2 Harddrives and a computer for making it a
 centralized archiving server. moving forward everything went well but
 during the installation in RAID creating i noticed that i could not
 change the boot flag  to on  it was off and i hit several enters but
 it stays off. so i just continued with off. now when installation
 completed . setup stops at grup installation and throw an error
 grub-install /dev/sda failed its a fatal error 

 any idea why this?

 i never face this type of error before. please help.

 The error (at least the message because the underlying problem can be
 of a different nature) is documented here:

 http://wiki.debian.org/GrubRecover

 Check if the suggested steps help (take care of adjusting the commands
 for your GRUB version).

 Besides, if you are using raid 1 don't forget installing GRUB in both
 disks which are part of the array so the system can be automatically
 booted in the event one of them go down.

 Greetings,

 --
 Camaleón


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/jobkg5$vio$1...@dough.gmane.org



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmn2nivocw4m7otcqzto4j8sdo9fzjymzgmy+ugzm3o...@mail.gmail.com



Re: debian 6.0.4 grub installation failed.

2012-05-09 Thread Muhammad Yousuf Khan
yes i got that , but first i thought. it is related to something LVM
over RAID. which means more complexity thats why i didn't read
thoroughly ,

thanks for the hit.



On Wed, May 9, 2012 at 2:59 PM, Darac Marjal mailingl...@darac.org.uk wrote:
 On Wed, May 09, 2012 at 11:15:43AM +0500, Muhammad Yousuf Khan wrote:
 ok i used the parted command by mklabel gpt i created the partition
 but i want it to be linux raid. please help me to convert it to raid
 since i can not find option in parted to make it a fd linux raid
 type nor i can find anything related to this topic on google. and

 Really? I searched for parted raid (without quotes) and the first
 result I got was section 7 of the parted manual. That seems quite
 self-explanatory.

 fdisk is not supporting the GPT . so i am stuck kindly help!


 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (GNU/Linux)

 iQIcBAEBCgAGBQJPqj/8AAoJEKB7YbRsd8TGZy4QAIrBXH1Y8b4A2hwuYl6+21G8
 FnjEfK/qvtBOVJrqWFF4ibRUHHj9MMc+iTObayFxAymp55mgS8kc6tRuYUlGjffw
 GSOE1kD+zvRemDA/PK5gPOTWVxm9tHSf6uXEEQg3lUBOkR1m32UQ/0FUB6gep7y9
 /dMQffL185MEHBJNbwP/IlRHm9v4nRaEf+RbNSWCyjk+IBegQF5tOIGWtP/nXcJZ
 tOkSEisAWNFlnjYqf8ZcUVY3BhsZOyXaDyQeRnkG1h8Zb5f8ri+fF7D7HQPw4OiF
 Kf/eIPSx8+jDL2fNqR8ojhDNXOLi1uoYEvVyKZkBB8TWSzge0nq7/bTxJhhk+Rtw
 JxsOqak/mGzTaz0YamMYjyzQmBjY/wJQJ8BeQHwFeREq77sjC6o2KmaXuKDVQbRQ
 dNujLccTkt6pqFLcCDiCp8Ft5zBa51dOwIYec48NkoPgtlzt+tYHGmHqNaiZ94cC
 G0RI+EE+KlrRqMGFETyekJJt8oKrbsBnMpLxaodbxfL6GqVRk20yhMizdcprANS7
 99TOlgui7G8cXo81Okelm8MDJX/KhXH+at6lltFi0FfsBoZoCQUNb6bhKqqN1rqr
 1lXTjmhwA1/Dqz1TtQE/89F9BHn5u6V0l0f+muHWT3KPq6FDPb0xl/ACPYZ64cIE
 mb1UeGUDRsHzSu4AuJ1z
 =W4+V
 -END PGP SIGNATURE-



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfMkeXw8_ug4tSCnf5R4+Sn_Av1=7OBCWbsT=1fS=cd3...@mail.gmail.com



Re: debian 6.0.4 grub installation failed.

2012-05-09 Thread Muhammad Yousuf Khan
Thanks everyone for the kind support after long RD and your tips help
me to went through the situation.

Thanks every one. :)

just FYI : i am using 320 GB HD for booting the system and 2TBx2
drives  are just for RAID and backup the stuff

things are started well. Thanks God :)

Thank you all,







On Wed, May 9, 2012 at 5:10 PM, Tom H tomh0...@gmail.com wrote:
 On Wed, May 9, 2012 at 2:15 AM, Muhammad Yousuf Khan sir...@gmail.com wrote:
 On Tue, May 8, 2012 at 10:17 PM, Camaleón noela...@gmail.com wrote:
 On Tue, 08 May 2012 16:02:10 +0500, Muhammad Yousuf Khan wrote:

 i just bought 2TBx2 Harddrives and a computer for making it a
 centralized archiving server. moving forward everything went well but
 during the installation in RAID creating i noticed that i could not
 change the boot flag  to on  it was off and i hit several enters but
 it stays off. so i just continued with off. now when installation
 completed . setup stops at grup installation and throw an error
 grub-install /dev/sda failed its a fatal error 

 The error (at least the message because the underlying problem can be
 of a different nature) is documented here:

 http://wiki.debian.org/GrubRecover

 Check if the suggested steps help (take care of adjusting the commands
 for your GRUB version).

 Besides, if you are using raid 1 don't forget installing GRUB in both
 disks which are part of the array so the system can be automatically
 booted in the event one of them go down.

 ok i used the parted command by mklabel gpt i created the partition
 but i want it to be linux raid. please help me to convert it to raid
 since i can not find option in parted to make it a fd linux raid
 type nor i can find anything related to this topic on google. and
 fdisk is not supporting the GPT . so i am stuck kindly help!

 Please bottom post.

 You don't need to set your partitions to linux raid because the
 default metadata for squeeze doesn't need it.


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: 
 http://lists.debian.org/caodoszncwnq-i8mxi1fwr-f5nvs9aytw7gu-q2zxn8uww...@mail.gmail.com



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfMnBBT7QG62U=nm-my-7lapfubujvrto7ip53fo_bhy...@mail.gmail.com



Re: how to config network in squeeze

2012-05-09 Thread Muhammad Yousuf Khan
DHCP or STATIC?

share the output ifconfig -a?

On Thu, May 10, 2012 at 9:54 AM, Long Wind longwind2...@gmail.com wrote:
 in early debian distro, I set two PCs' IP (192.168.0.x)
 then they can ping each other

 now I install squeeze, with step above performed, I can't ping a PC
 running lenny
 ping says sth like destination unreachable

 What should I do?


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: 
 http://lists.debian.org/CAB-gxZBLCYKn=g7y0rm5umxw2rb9fwkefptuqxssfwvfuoy...@mail.gmail.com



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfMkkzqeD6Q3Q23iwU=c1Kwix=vneee_aot_6pf5vpur...@mail.gmail.com



data recovery tools for debian (command line)

2012-05-09 Thread Muhammad Yousuf Khan
if i mistakenly delete any partition or OS or HD corrupted. what is
the best tool that i can use to recover the data in these situations.

just wanted to test this stuff in my test environment.

note : i work with command line only. so preferably tool should be
command line supported. since i don't like to use mouse :-)

Thanks


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmnvxp7dgjn8lojhgtfnny83tcjp1feitxhvdczrfy1...@mail.gmail.com



Re: data recovery tools for debian (command line)

2012-05-10 Thread Muhammad Yousuf Khan
On Thu, May 10, 2012 at 11:01 AM, J. Bakshi baksh...@gmail.com wrote:
 On Thu, 10 May 2012 10:49:28 +0500
 Muhammad Yousuf Khan sir...@gmail.com wrote:

 if i mistakenly delete any partition or OS or HD corrupted. what is
 the best tool that i can use to recover the data in these situations.


 de-rescue for corrupted HD. But don't know about recovering deleted data.
 I'm also interested in the same topic.

testdisk

http://www.howtoforge.com/data_recovery_with_testdisk

seems good but haven't tested yet.






 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/20120510113108.6b49a...@shiva.selfip.org



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmktsv5s_lnamtcjuwowt_xwgs0a2hn3xzeoy-yp31j...@mail.gmail.com



Re: data recovery tools for debian (command line)

2012-05-10 Thread Muhammad Yousuf Khan
On Thu, May 10, 2012 at 11:34 AM, J. Bakshi baksh...@gmail.com wrote:
 On Thu, 10 May 2012 11:27:30 +0500
 Muhammad Yousuf Khan sir...@gmail.com wrote:

 On Thu, May 10, 2012 at 11:01 AM, J. Bakshi baksh...@gmail.com wrote:
  On Thu, 10 May 2012 10:49:28 +0500
  Muhammad Yousuf Khan sir...@gmail.com wrote:
 
  if i mistakenly delete any partition or OS or HD corrupted. what is
  the best tool that i can use to recover the data in these situations.
 
 
  de-rescue for corrupted HD. But don't know about recovering deleted data.
  I'm also interested in the same topic.

 testdisk

 http://www.howtoforge.com/data_recovery_with_testdisk

 seems good but haven't tested yet.

 How can I recover myfolder which I have already deleted by
 rm -rf myfolder

sorry friend as i said i haven't tested this yet. see the howto, the
link which is already shared



 Thanks


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfMk++A26bH2vcUhQzJ=oJKrwhH2Xi9cJ=xtclajz5vr...@mail.gmail.com



mount fail via fstab but working with command line

2012-05-10 Thread Muhammad Yousuf Khan
i have 2TBx2 Drives with  RAID 1.
here is my RAID partitions layout and size is 500GB each made on GPT.

/dev/md1
/dev/md2
/dev/md3
/dev/md4

i can mount the partition via command line very easily just by giving
this command  mount /dev/md4 /test/users
however i can not mount them via fstab. it is giving me below error.

Thu May 10 15:31:28 2012: /dev/md4: clean, 11/30547968 files,
1967930/122167518 blocks
Thu May 10 15:31:29 2012: done.
Thu May 10 15:31:29 2012: Mounting local filesystems...mount: wrong fs
type, bad option, bad superblock on /dev/md4,
Thu May 10 15:31:29 2012:missing codepage or helper program,
or other error
Thu May 10 15:31:29 2012:In some cases useful info is found in
syslog - try
Thu May 10 15:31:29 2012:dmesg | tail  or so

no matter i tried UUID  and also /dev/md1/test/users ext4 default 0
2 nothing works

here is my fstab
proc/proc   procdefaults0   0
# / was on /dev/sda3 during installation
UUID=a2cb7b4e-1dac-422d-b5f0-f5aeb6c69cdf /   ext4
errors=remount-ro 0   1
# /boot was on /dev/sda1 during installation
UUID=00219a44-4ce5-414a-b44f-c56405b60f9d /boot   ext4
defaults0   2
# swap was on /dev/sda2 during installation
UUID=4aaad274-fe6a-486a-a127-29d4584bee6e noneswapsw
   0   0
/dev/scd0   /media/cdrom0   udf,iso9660 user,noauto 0   0

 my configuration portion #
#md1 500GB for backup
#md2 500GB for projects
#UUID=5a6a7a11-1b9d-4681-a398-d4c86aabd89a   /test/projects  ext4
  default 0   2
#/dev/md2/test/projects  ext4default 0   2
#md3 500GB for office
#UUID=b0047ee5-084d-44a8-b7f1-f7e040ec5c31   /test/officeext4
  default 0   2
#md4 500gb for users
/dev/md4 /test/users ext4default 0   2


my UUIDs

#/dev/md4: UUID=23d47b04-18fd-4d65-8792-647bd5016a3f TYPE=ext4
#/dev/md3: UUID=b0047ee5-084d-44a8-b7f1-f7e040ec5c31 TYPE=ext4
#/dev/md2: UUID=5a6a7a11-1b9d-4681-a398-d4c86aabd89a TYPE=ext4
#/dev/md1: UUID=35cb0e66-f0cb-4895-ad9f-5101c88c3739 TYPE=ext4


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfM=ED0oASHnpoFigbOvR0jgrF9ug+Dxn85tJmBZU=rp...@mail.gmail.com



Re: mount fail via fstab but working with command line

2012-05-10 Thread Muhammad Yousuf Khan
Thanks for pointing out the error.

yes it was a typo. Thanks alot.

On Thu, May 10, 2012 at 4:06 PM, Thierry Chatelet tchate...@free.fr wrote:
 On Thursday 10 May 2012 12:57:07 Muhammad Yousuf Khan wrote:
 here is my fstab
 /dev/md4         /test/users     ext4    default 0       2


 my UUIDs

 #/dev/md4: UUID=23d47b04-18fd-4d65-8792-647bd5016a3f TYPE=ext4
 #/dev/md3: UUID=b0047ee5-084d-44a8-b7f1-f7e040ec5c31 TYPE=ext4
 #/dev/md2: UUID=5a6a7a11-1b9d-4681-a398-d4c86aabd89a TYPE=ext4
 #/dev/md1: UUID=35cb0e66-f0cb-4895-ad9f-5101c88c3739 TYPE=ext4

 What about changing default to defaults
 Thierry


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/201205101306.53066.tchate...@free.fr



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmnp+gcfjyr+gghy1vbbplrwpvjd+chccsdpy2y0te7...@mail.gmail.com



Re: data recovery tools for debian (command line)

2012-05-10 Thread Muhammad Yousuf Khan
On Thu, May 10, 2012 at 5:03 PM, Ralf Mardorf
ralf.mard...@alice-dsl.net wrote:
 On Thu, 2012-05-10 at 10:49 +0500, Muhammad Yousuf Khan wrote:
 if i mistakenly delete any partition or OS or HD corrupted. what is
 the best tool that i can use to recover the data in these situations.

 just wanted to test this stuff in my test environment.

 note : i work with command line only. so preferably tool should be
 command line supported. since i don't like to use mouse :-)

 Thanks

 For what file systems?

any, ext2, 3 or 4 . just asked in general perspective. so instead of
reading all the material on the net and filter out the garbage which
is very time consuming. so just to make my studies time efficient and
other like me also get some help as well.

Thanks


  - Ralf


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/1336651423.2307.6.camel@precise



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfMn3khO+6z9wqjwKEZELH=tb5cng+z87mwpqbhykv...@mail.gmail.com



Re: data recovery tools for debian (command line)

2012-05-10 Thread Muhammad Yousuf Khan
Thanks, Ralf and all, you guys have given me a solid info to study on.

Thanks

On Thu, May 10, 2012 at 6:08 PM, Ralf Mardorf
ralf.mard...@alice-dsl.net wrote:
 On Thu, 2012-05-10 at 17:32 +0500, Muhammad Yousuf Khan wrote:
  For what file systems?

 any, ext2, 3 or 4 . just asked in general perspective. so instead of
 reading all the material on the net and filter out the garbage which
 is very time consuming. so just to make my studies time efficient and
 other like me also get some help as well.

 Parted Magic is a good live media to use.
 On Parted Magic there are command line tools such as ext3grep and
 extundelete and others.

 Mount the partition, where you deleted files as read only first. The
 recovered data will be written to another partition. Any writing to the
 partition with the deleted folders and files can overwrite important
 directory entries and/or data. Note, even reading can cause a write,
 IIRC e.g. if you don't mount with noatime, the last read access will be
 written to a file.

 I don't have all those commands and options in mind, but take care to
 use options that will recover the data in a human readable/usable
 format. IOW you'll get /my_dir/my_file_a /my_dir/my_file_b etc. and
 not no_dir_cryptic_filename_a no_dir_cryptic_filename_b.
 They also have got options to recover data that is from a special time
 etc..

 All those tools for ext3 come with patches, they are usable for ext4,
 theoretically. In practice 99% of your data will be lost.

 I still have 2 unmounted ext4 partitions since December 2011. I nearly
 couldn't recover anything, but sure, I got back some data.



if that is the case do you mean i should shift from ext4 to ext3.
since i am using ext4 however there is no specific reason  of using
ext4.


 I experienced recovering partition tables as working 100% perfect. If
 there are errors on a HDD I experienced fsck -fcyv, fsck -f -y etc. as
 working properly too.

 You should read howtos. Use links e.g. given from an updated Wiki, the
 home page of the current version of your recovery live media you're
 using etc.. You never know if there won't be new tools or important
 changes.

 Hth,
 Ralf


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/1336655317.2307.43.camel@precise



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmk9q_se3jj86qv70kawyr1oz614b4ay34cymoo_d92...@mail.gmail.com



Re: data recovery tools for debian (command line)

2012-05-10 Thread Muhammad Yousuf Khan
sorry ignore the last paragraph it was due to Email-Draft in Google.

Thanks.

On Thu, May 10, 2012 at 11:54 PM, Muhammad Yousuf Khan sir...@gmail.com wrote:
 Thanks, Ralf and all, you guys have given me a solid info to study on.

 Thanks

 On Thu, May 10, 2012 at 6:08 PM, Ralf Mardorf
 ralf.mard...@alice-dsl.net wrote:
 On Thu, 2012-05-10 at 17:32 +0500, Muhammad Yousuf Khan wrote:
  For what file systems?

 any, ext2, 3 or 4 . just asked in general perspective. so instead of
 reading all the material on the net and filter out the garbage which
 is very time consuming. so just to make my studies time efficient and
 other like me also get some help as well.

 Parted Magic is a good live media to use.
 On Parted Magic there are command line tools such as ext3grep and
 extundelete and others.

 Mount the partition, where you deleted files as read only first. The
 recovered data will be written to another partition. Any writing to the
 partition with the deleted folders and files can overwrite important
 directory entries and/or data. Note, even reading can cause a write,
 IIRC e.g. if you don't mount with noatime, the last read access will be
 written to a file.

 I don't have all those commands and options in mind, but take care to
 use options that will recover the data in a human readable/usable
 format. IOW you'll get /my_dir/my_file_a /my_dir/my_file_b etc. and
 not no_dir_cryptic_filename_a no_dir_cryptic_filename_b.
 They also have got options to recover data that is from a special time
 etc..

 All those tools for ext3 come with patches, they are usable for ext4,
 theoretically. In practice 99% of your data will be lost.

 I still have 2 unmounted ext4 partitions since December 2011. I nearly
 couldn't recover anything, but sure, I got back some data.



 if that is the case do you mean i should shift from ext4 to ext3.
 since i am using ext4 however there is no specific reason  of using
 ext4.


 I experienced recovering partition tables as working 100% perfect. If
 there are errors on a HDD I experienced fsck -fcyv, fsck -f -y etc. as
 working properly too.

 You should read howtos. Use links e.g. given from an updated Wiki, the
 home page of the current version of your recovery live media you're
 using etc.. You never know if there won't be new tools or important
 changes.

 Hth,
 Ralf


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/1336655317.2307.43.camel@precise



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmm-gk23wkttel5dvpd4a2mpq8kj0lu6kzu4v_ufif1...@mail.gmail.com



mounting local filesystem ..... FAILED

2012-05-11 Thread Muhammad Yousuf Khan
i am running debian 6.0.4

i am getting this error on boot   mounting local filesystem failed.
however things are working fine like squid is working in firewall mode
etc.. even i can see the same directory structure but df-h showing
some thing like this

filesystemSize  Used Avail Use% Mounted on
rootfs 31G  1.3G   28G   5% /
none  118M  124K  118M   1% /dev
/dev/disk/by-uuid/4649883f-cece-4599-b117-e2ceb2dd3ebd
   31G  1.3G   28G   5% /
tmpfs  25M  120K   25M   1% /run
tmpfs 5.0M 0  5.0M   0% /run/lock
tmpfs  50M 0   50M   0% /tmp
tmpfs  50M 0   50M   0% /run/shm


here is FDISK result

   Device Boot  Start End  Blocks   Id  System
/dev/sda1   *   1405432558080   83  Linux
/dev/sda240544178  9932815  Extended
/dev/sda540544178  993280   82  Linux swap / Solaris


blkid
/dev/sda1: UUID=4649883f-cece-4599-b117-e2ceb2dd3ebd TYPE=ext3
/dev/sda5: UUID=617a2ecd-1c86-45b5-905f-ff3c6804a098 TYPE=swap

here is my fstab

# / was on /dev/sda1 during installation
UUID=4649883f-cece-4599-b117-e2ceb2dd3ebd /   ext3
errors=remount-ro 0   1
# swap was on /dev/sda5 during installation
UUID=617a2ecd-1c86-45b5-905f-ff3c6804a098 noneswapsw
   0   0
/dev/scd0   /media/cdrom0   udf,iso9660 user,noauto 0   0


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfMkofky=pfmNYoxcgXOefsmvb=-uz-jcjrmgpdj8t1+...@mail.gmail.com



Re: mounting local filesystem ..... FAILED

2012-05-12 Thread Muhammad Yousuf Khan
is there anyone can help plz?


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfM=pmbzv+vfvi-p1hqa0_0hibqf+kmqqfyn81lmjtgh...@mail.gmail.com



Re: mounting local filesystem ..... FAILED

2012-05-12 Thread Muhammad Yousuf Khan

 What you've posted there looks OK...
 What error message did you receive about mounting local filesystem failed?



shared output is way much different then normally when i give the df
-h command it gives me output like this

/dev/sda3 289G  774M  274G   1% /
tmpfs 500M 0  500M   0% /lib/init/rw
udev  496M  236K  496M   1% /dev
tmpfs 500M 0  500M   0% /dev/shm
/dev/sda1 1.1G   48M  932M   5% /boot
/dev/md1  459G   33G  403G   8% /nas/backup
/dev/md2  459G  198M  435G   1% /nas/projects
/dev/md3  459G  985M  435G   1% /nas/office
/dev/md4  459G  198M  436G   1% /nas/users

this is the whole message that i get at boot mounting local
filesystem failed (in red color)

so i thought that some thing is went wrong. secondly i never saw a
UUID in df -h  command so combining the new output of the df command
and the error at start up i thought some thing more worst is about to
unveil.



 Kind regards

 --
 Iceweasel/Firefox/Chrome/Chromium/Iceape/IE extensions for finding
 answers to questions about Debian:-
 https://addons.mozilla.org/en-US/firefox/collections/Scott_Ferguson/debian/


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/4fae06dd.6050...@gmail.com



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmngjz3tjvymspm-why_o4ppywmmlamr8wxa2nkbc-s...@mail.gmail.com



Re: mounting local filesystem ..... FAILED

2012-05-12 Thread Muhammad Yousuf Khan
On Sat, May 12, 2012 at 3:42 PM, Camaleón noela...@gmail.com wrote:
 On Fri, 11 May 2012 21:18:28 +0500, Muhammad Yousuf Khan wrote:

 i am running debian 6.0.4

 i am getting this error on boot   mounting local filesystem failed.

 And besides the error, are you experiencing another problem/issue? Is the
 system booting as usual or are you facing any unexpected behaviour once
 the system has booted?

 however things are working fine like squid is working in firewall mode
 etc.. even i can see the same directory structure but df-h showing some
 thing like this

 filesystem            Size  Used Avail Use% Mounted on
 rootfs                 31G  1.3G   28G   5% /
 none                  118M  124K  118M   1% /dev
  

 (...)

 What that none means here? :-?
hope this can explain you better. because i also dont know why its
showing none

  Device Boot  Start End  Blocks   Id  System
/dev/sda1   *   1405432558080   83  Linux
/dev/sda240544178  9932815  Extended
/dev/sda540544178  993280   82  Linux swap / Solaris
root@proxy-prod:/var/log# blkid
/dev/sda1: UUID=4649883f-cece-4599-b117-e2ceb2dd3ebd TYPE=ext3
/dev/sda5: UUID=617a2ecd-1c86-45b5-905f-ff3c6804a098 TYPE=swap



 Are you missing something, for example, an external USB disk that should
 be recognized but it's not present?

BTW , i am using Proxmox a KVM base virtual environment. so i am not
sure about it however i think virtually they are mounting CD drive on
USB as
this log shows note the resume from disk failed msg

[1.012097] usb 1-1: new full speed USB device using uhci_hcd and address 2
[1.168454] PM: Starting manual resume from disk
[1.168457] PM: Resume from partition 8:5
[1.168458] PM: Checking hibernation image.
[1.168856] PM: Error -22 checking image file
[1.168858] PM: Resume from disk failed.
[1.205291] usb 1-1: New USB device found, idVendor=0627, idProduct=0001
[1.205295] usb 1-1: New USB device strings: Mfr=1, Product=3, SerialNumber=5
[1.205303] usb 1-1: Product: QEMU USB Tablet
[1.205305] usb 1-1: Manufacturer: QEMU 0.15.0
[1.205306] usb 1-1: SerialNumber: 42
[1.205379] usb 1-1: configuration #1 chosen from 1 choice
[1.213087] kjournald starting.  Commit interval 5 seconds
[1.213098] EXT3-fs: mounted filesystem with ordered data mode.
[1.232655] usbcore: registered new interface driver hiddev




 Greetings,

 --
 Camaleón


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/jolerg$s0$7...@dough.gmane.org



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmkt7u0i5yyokswdyfir7mh71xfya38x7+gbusfjtcr...@mail.gmail.com



Re: mounting local filesystem ..... FAILED

2012-05-13 Thread Muhammad Yousuf Khan
On Sat, May 12, 2012 at 5:11 PM, Camaleón noela...@gmail.com wrote:
 On Sat, 12 May 2012 16:56:04 +0500, Muhammad Yousuf Khan wrote:

 (...)

 What that none means here? :-?

 hope this can explain you better. because i also dont know why its
 showing none

 (...)

 Nope, sorry, I'm afraid the above outputs add no more useful information.

 Are you missing something, for example, an external USB disk that
 should be recognized but it's not present?

 BTW , i am using Proxmox a KVM base virtual environment. so i am not
 sure about it however i think virtually they are mounting CD drive on
 USB as
 this log shows note the resume from disk failed msg

 [    1.012097] usb 1-1: new full speed USB device using uhci_hcd and  
 address 2
 [    1.168454] PM: Starting manual resume from disk
 [    1.168457] PM: Resume from partition 8:5
 [    1.168458] PM: Checking hibernation image.
 [    1.168856] PM: Error -22 checking image file
 [    1.168858] PM: Resume from disk failed.

 (...)

 Wait, wait... was the error coming up after resuming or from a cold
 boot?

it is on boot,


 And do you have any additional storage volume that you usually mount
 under /dev? It seems something pointing to /dev but I can't guess what.


no only one virtual drive 32 gb. thats all.
ok next working day ill delete the CDrom from VM and then ill check.
and let you know the update

 Greetings,

 --
 Camaleón


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/jolk1q$s0$1...@dough.gmane.org



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfMmoafRbY_DZNjSyq8R-q6uyFaxFUovujLwb29L=jd5...@mail.gmail.com



Re: data recovery tools for debian (command line)

2012-05-16 Thread Muhammad Yousuf Khan
Thanks mate, so kind of you,

thats going to be very helpful.




On Wed, May 16, 2012 at 5:58 AM, Kamaraju S Kusumanchi
raju.mailingli...@gmail.com wrote:

 Muhammad Yousuf Khan wrote:

  On Thu, May 10, 2012 at 11:01 AM, J. Bakshi baksh...@gmail.com wrote:
  On Thu, 10 May 2012 10:49:28 +0500
  Muhammad Yousuf Khan sir...@gmail.com wrote:
 
  if i mistakenly delete any partition or OS or HD corrupted. what is
  the best tool that i can use to recover the data in these situations.
 
 
  de-rescue for corrupted HD. But don't know about recovering deleted data.
  I'm also interested in the same topic.
 
  testdisk
 
  http://www.howtoforge.com/data_recovery_with_testdisk
 
  seems good but haven't tested yet.
 

 First of all, make backups regularly. Make the process automated.

 As for the testdisk, I have used it before and it is AWESOME.

 The short story is that I screwed up the partition table of my laptop which
 resulted in an unbootable system. I used testdisk to restore the partition
 table. All the gory details, screenshots and what not are at my blog
 http://malayamaarutham.blogspot.com/2010/08/recover-accidentally-
 overwritten.html

 hope that helps
 --
 Kamaraju S Kusumanchi
 http://malayamaarutham.blogspot.com/


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/jouu3b$861$1...@dough.gmane.org



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmmdjvxevt7yt6jm2lbohzeykaixfpfubqfyk3ewjhn...@mail.gmail.com



how to practice.

2012-05-18 Thread Muhammad Yousuf Khan
Ok I have been working in IT network field since 7 years and just one and
half year back i have started exploring Linux and I believe, someone said
to me lately that if you start loving black and white terminal then you
will never look back to Windows GUI. I literally can experience this thing
at the stage I am standing with Linux. As I consider myself a newbie in
Linux but according to my previous experience if i don’t practice I will
forget things very easy (as there are tons of commands to remember which I
will forget with less or 0 practice). so i am here to ask all the old Pros
that how you guys manage to remember all the commands and practice all the
previous work. Since after the deployment of some Linux services there is
only the log which i have to see for further errors. So how it is possible
to keep in my mind all the old stuff and along with that I can move forward
with the new goals.



Thanks


Re: how to practice.

2012-05-21 Thread Muhammad Yousuf Khan
thanks guys , learned new things and Good tips also.  :)

On Mon, May 21, 2012 at 4:55 AM, Freeman hew...@gmail.com wrote:
 On Fri, 18 May 2012 17:18:20 +0500
 Muhammad Yousuf Khan sir...@gmail.com wrote:

 Ok I have been working in IT network field since 7 years and just one
 and half year back i have started exploring Linux and I believe,
 someone said to me lately that if you start loving black and white
 terminal then you will never look back to Windows GUI. I literally
 can experience this thing at the stage I am standing with Linux. As I
 consider myself a newbie in Linux but according to my previous
 experience if i don’t practice I will forget things very easy (as
 there are tons of commands to remember which I will forget with less
 or 0 practice). so i am here to ask all the old Pros that how you
 guys manage to remember all the commands and practice all the
 previous work. Since after the deployment of some Linux services
 there is only the log which i have to see for further errors. So how
 it is possible to keep in my mind all the old stuff and along with
 that I can move forward with the new goals.


 Some good ideas in this thread. I too have a search-able directory of
 notes. Forgot about the flash cards; so, reading this list helps refresh
 memory.

 I like to use dwww, which does a good job of searching a term in all
 installed docs and manuals, of which I install many.

 --
 Regards,
 Freeman


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/20120520165548.1d44a6f1@Deneb.office



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfMk9LNbjgQyAN4K5up89fz1PNgp+N_Zm=vynzala35a...@mail.gmail.com



UID GID issue mapping issue

2012-05-22 Thread Muhammad Yousuf Khan
My OS boot drive was malfunctioning due to which i need to replace it
with new one. but now i am facing a problem after configuring my whole
NAS box.  here is the old gid for a share.

 10016 = admin-grp  (domain group)

now after installing everything when i list the directory it showed me
10016 instead of admin-grp so i thought i can change it by wbinfo
command

so i remap the 10016 gid to the old sid for admin-grp and set many
other like the same way. but after a day. i can see different names as
a owner and owner groups like instead of admin-grp i can see
developers as an owner of the folder. and i believed that my gid and
uid mapping start conflicting.

so i tried to reset all the GID and UID and in order to do that i
change 1-2 to below

 idmap uid = 2-4
 idmap gid = 2-4

it didnt work. i remove the tdb winbind file. which also didn't
resolve the issue. i remap the gid and even tried to remove the
mapping still with no results.


Thanks,


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmmvowwuv61xxsdecn_66ru2qfwbphbbmex6st31kh2...@mail.gmail.com



Re: UID GID issue mapping issue

2012-05-22 Thread Muhammad Yousuf Khan
ok, i manage to reset the gid uid by reinstalling the samba and winbind

Thanks.

On Tue, May 22, 2012 at 12:27 PM, Muhammad Yousuf Khan sir...@gmail.com wrote:
 My OS boot drive was malfunctioning due to which i need to replace it
 with new one. but now i am facing a problem after configuring my whole
 NAS box.  here is the old gid for a share.

  10016 = admin-grp  (domain group)

 now after installing everything when i list the directory it showed me
 10016 instead of admin-grp so i thought i can change it by wbinfo
 command

 so i remap the 10016 gid to the old sid for admin-grp and set many
 other like the same way. but after a day. i can see different names as
 a owner and owner groups like instead of admin-grp i can see
 developers as an owner of the folder. and i believed that my gid and
 uid mapping start conflicting.

 so i tried to reset all the GID and UID and in order to do that i
 change 1-2 to below

  idmap uid = 2-4
  idmap gid = 2-4

 it didnt work. i remove the tdb winbind file. which also didn't
 resolve the issue. i remap the gid and even tried to remove the
 mapping still with no results.


 Thanks,


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfM=g0nwl8tgqaf_z4kcjc_-tz2ntfgw6q7wirzp1pax...@mail.gmail.com



FS rights error with Samba share

2012-05-23 Thread Muhammad Yousuf Khan
i know this is not  a place to ask samba related questions but i think
File system rights has some thing to do in this problem that is the
reason i am asking this question here. please bear with me. Thanks

OK, my samba server was working fine i have 2TB RAID1 drive as a
storage and had 300gb sata drive for boot the Debian OS 6.0.4.
unfortunately my sata boot drive faild and i had to reinstall the OS
in new drive. now when i plug the old Raid drives the data was still
there. but permissions were a bit messed, it was showing numbers like
100015 or 100016 instead of owning user name or groups.
so i did  chown root:root * -R i thought that i will reassign the FS
rights to every individual folder again. so i did. but now the shares
in smb.conf that were working previously now they are throwing error
in log files and the same share was working perfectly before.


here is the error

smbd/service.c:988(make_connection_snum)
 canonicalize_connect_path failed for service Filesharing, path
/nas/backup/Filesharing

now i created a new folder on new driver which is the new OS drive. i
created a test folder at root
my users and i can access either we can create folders and delete

here is the folder at /test (we can access it with full rights)
drwxrwxrwx   4 admin admin-grp  4096 May 23 19:30 test

this folder is on /nas/backup/Filesharing (this is the problem part
and many other share like this are not working)
drwxrwxrwx  3 admin admin-grp  4096 May 23 19:34 Filesharing



[test]
   comment = test for All
   path = /test
   read only = No
   create mask = 0770
   directory mask = 0770

[Filesharing]

   comment = Filesharing for All
   path = /nas/backup/Filesharing
   read only = No
   create mask = 0770
   directory mask = 0770

you can see both shares have same FS rights and same share rights but
my users can access /test but not /nas/backup/filesharing
and generating this error.

smbd/service.c:988(make_connection_snum)
 canonicalize_connect_path failed for service Filesharing, path
/nas/backup/Filesharing

however i as admin user can access things in filesharing so i
thought that admin is the owner of this folder so i change the
ownership of Filesharing folder to a another user and i tested it with
that user but still no luck. even thought it doesnt make any sense as
777 is already given to the folder.

now i am handicap and nowhere to go. i look for the said error on
google on so many places. which shows that it is a File system rights
related issue. and according to my knowledge there is nothing to do
with FS  rights it is some thing different as 777 is already given to
both of the folders.

here is my

[global]

 workgroup = X
  realm = X.COM
  netbios name = nasbox
  server string = %h server
  security = ADS
  obey pam restrictions = Yes
  pam password change = Yes
  passwd program = /usr/bin/passwd %u
  passwd chat = *Enter\snew\s*\spassword:*
%n\n*Retype\snew\s*\spassword:* %n\n *password\supd$
  unix password sync = Yes
  syslog = 0
  log file = /var/log/samba/log.%m
  max log size = 1000
  dns proxy = No
  panic action = /usr/share/samba/panic-action %d
  idmap uid = 1-4
  idmap gid = 1-4
  winbind enum users = Yes
  winbind enum groups = Yes
  winbind use default domain = Yes



Thanks,
MYK


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfMkbfX0WZJ3MbapkNB+Bw-FdcrkTY=6h__2_vd8t96w...@mail.gmail.com



Re: FS rights error with Samba share

2012-05-23 Thread Muhammad Yousuf Khan
Finally Solved..

!!!  it is sooo relaxing 

 i have been working on this for 2 days. even i knew it too but mind
was not going that way. but now i will remember it till death :) as i
have over-googled this matter.

Thanks a million :),



On Wed, May 23, 2012 at 8:29 PM, Juan Sierra Pons j...@elsotanillo.net wrote:
 2012/5/23 Muhammad Yousuf Khan sir...@gmail.com:
 i know this is not  a place to ask samba related questions but i think
 File system rights has some thing to do in this problem that is the
 reason i am asking this question here. please bear with me. Thanks

 OK, my samba server was working fine i have 2TB RAID1 drive as a
 storage and had 300gb sata drive for boot the Debian OS 6.0.4.
 unfortunately my sata boot drive faild and i had to reinstall the OS
 in new drive. now when i plug the old Raid drives the data was still
 there. but permissions were a bit messed, it was showing numbers like
 100015 or 100016 instead of owning user name or groups.
 so i did  chown root:root * -R i thought that i will reassign the FS
 rights to every individual folder again. so i did. but now the shares
 in smb.conf that were working previously now they are throwing error
 in log files and the same share was working perfectly before.


 here is the error

 smbd/service.c:988(make_connection_snum)
  canonicalize_connect_path failed for service Filesharing, path
 /nas/backup/Filesharing

 now i created a new folder on new driver which is the new OS drive. i
 created a test folder at root
 my users and i can access either we can create folders and delete

 here is the folder at /test (we can access it with full rights)
 drwxrwxrwx   4 admin admin-grp  4096 May 23 19:30 test

 this folder is on /nas/backup/Filesharing (this is the problem part
 and many other share like this are not working)
 drwxrwxrwx  3 admin admin-grp  4096 May 23 19:34 Filesharing



 [test]
       comment = test for All
       path = /test
       read only = No
       create mask = 0770
       directory mask = 0770

 [Filesharing]

       comment = Filesharing for All
       path = /nas/backup/Filesharing
       read only = No
       create mask = 0770
       directory mask = 0770

 you can see both shares have same FS rights and same share rights but
 my users can access /test but not /nas/backup/filesharing
 and generating this error.

 smbd/service.c:988(make_connection_snum)
  canonicalize_connect_path failed for service Filesharing, path
 /nas/backup/Filesharing

 however i as admin user can access things in filesharing so i
 thought that admin is the owner of this folder so i change the
 ownership of Filesharing folder to a another user and i tested it with
 that user but still no luck. even thought it doesnt make any sense as
 777 is already given to the folder.

 now i am handicap and nowhere to go. i look for the said error on
 google on so many places. which shows that it is a File system rights
 related issue. and according to my knowledge there is nothing to do
 with FS  rights it is some thing different as 777 is already given to
 both of the folders.

 here is my

 [global]

     workgroup = X
      realm = X.COM
      netbios name = nasbox
      server string = %h server
      security = ADS
      obey pam restrictions = Yes
      pam password change = Yes
      passwd program = /usr/bin/passwd %u
      passwd chat = *Enter\snew\s*\spassword:*
 %n\n*Retype\snew\s*\spassword:* %n\n *password\supd$
      unix password sync = Yes
      syslog = 0
      log file = /var/log/samba/log.%m
      max log size = 1000
      dns proxy = No
      panic action = /usr/share/samba/panic-action %d
      idmap uid = 1-4
      idmap gid = 1-4
      winbind enum users = Yes
      winbind enum groups = Yes
      winbind use default domain = Yes



 Thanks,
 MYK


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: 
 http://lists.debian.org/CAGWVfMkbfX0WZJ3MbapkNB+Bw-FdcrkTY=6h__2_vd8t96w...@mail.gmail.com


 Hi

 in new drive. now when i plug the old Raid drives the data was still
 there. but permissions were a bit messed, it was showing numbers like
 100015 or 100016 instead of owning user name or groups.

 This ids are normal as you have your Samba server authenticated
 against a ADS. as you can see in your configuration file:
      idmap uid = 1-4
      idmap gid = 1-4

 I think your problem is not with the Filesharing folder permissions
 but with the path to your Filesharing folder. Have a look to your
 config file:

 [test]
       comment = test for All
       path = /test
       read only = No
       create mask = 0770
       directory mask = 0770

 test folder is in the root no so problems with the path can happen

 [Filesharing]

       comment = Filesharing for All
       path = /nas/backup/Filesharing
       read only = No
       create mask = 0770
       directory mask = 0770

Mounting local filesystem failed on boot

2012-05-24 Thread Muhammad Yousuf Khan
i am getting Mounting local filesystem failed on every boot. and the
problem line in fstab is proc/proc   proc
defaults0   0

here is my fstab

# file system mount point   type  options   dump  pass
proc/proc   procdefaults0   0
# / was on /dev/sda3 during installation
UUID=42c02fba-5d23-44d6-b510-5967f61809de /   ext3
errors=remount-ro 0   1
# /boot was on /dev/sda1 during installation
UUID=52f78bea-8afd-4bee-a3b9-2498abceb55f /boot   ext3
defaults0   2
# swap was on /dev/sda5 during installation
UUID=6baabb6e-ab2d-4bfc-a21a-05ee8a0af001 noneswapsw
   0   0
#/dev/scd0   /media/cdrom0   udf,iso9660 user,noauto 0   0


the problem line is proc mounting. when i comment this line error disappear..
i haven’t created proc partition during installation. i just created 3
 partitions boot, swap and root
However the error is gone by commenting the line but i am worried how
it going to impact my system
and what this proc mount is for. as i haven’t created it.

Thanks,


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmkl9invbtdl8+a5en8pmefphygvduqhowax14spst3...@mail.gmail.com



Re: Mounting local filesystem failed on boot

2012-05-24 Thread Muhammad Yousuf Khan
On Thu, May 24, 2012 at 6:02 PM, Ralf Mardorf
ralf.mard...@alice-dsl.net wrote:
 On Thu, 2012-05-24 at 17:40 +0500, Muhammad Yousuf Khan wrote:
 i am getting Mounting local filesystem failed on every boot. and the
 problem line in fstab is

 proc            /proc           proc    defaults        0       0

 This can't be the cause. The line is correct.

 what this proc mount is for. as i haven’t created it.

 The proc file system is a pseudo-file system which is used as an
 interface to kernel data structures. It is commonly mounted at /proc. -
 http://linux.die.net/man/5/proc

 There's an entry in fstab, when /proc is NOT on it's own partition.
 You also can try


 proc            /proc           proc    nodev,noexec,nosuid 0       0

ok, after changing it, still facing the same error. however my system
is running formal. beside from this failed error.



 dev / nodev
    Interpret/do not interpret block special devices on the filesystem.
 exec / noexec
    exec lets you execute binaries that are on that partition, whereas
 noexec does not let you do that. noexec might be useful for a partition
 that contains no binaries, like /var, or contains binaries you do not
 want to execute on your system, or that cannot even be executed on your
 system. Last might be the case of a Windows partition.
 suid / nosuid
    Permit/Block the operation of suid, and sgid bits. -
 http://en.wikipedia.org/wiki/Fstab

 Perhaps this prevents against something fishy.

 Regards,
 Ralf


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/1337864550.2247.44.camel@precise



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfM=_Nhsi43=+kGCybD1S_+CYgu4VRQ=pikoswjjjcsq...@mail.gmail.com



Re: Mounting local filesystem failed on boot

2012-05-24 Thread Muhammad Yousuf Khan
On Thu, May 24, 2012 at 6:28 PM, Muhammad Yousuf Khan sir...@gmail.com wrote:
 On Thu, May 24, 2012 at 6:02 PM, Ralf Mardorf
 ralf.mard...@alice-dsl.net wrote:
 On Thu, 2012-05-24 at 17:40 +0500, Muhammad Yousuf Khan wrote:
 i am getting Mounting local filesystem failed on every boot. and the
 problem line in fstab is

 proc            /proc           proc    defaults        0       0

 This can't be the cause. The line is correct.

 what this proc mount is for. as i haven’t created it.

 The proc file system is a pseudo-file system which is used as an
 interface to kernel data structures. It is commonly mounted at /proc. -
 http://linux.die.net/man/5/proc

 There's an entry in fstab, when /proc is NOT on it's own partition.
 You also can try


 proc            /proc           proc    nodev,noexec,nosuid 0       0

 ok, after changing it, still facing the same error. however my system
 is running formal. beside from this failed error.

sorry for the typo, i mean to say my system is running normal.
instead of this failed error





 dev / nodev
    Interpret/do not interpret block special devices on the filesystem.
 exec / noexec
    exec lets you execute binaries that are on that partition, whereas
 noexec does not let you do that. noexec might be useful for a partition
 that contains no binaries, like /var, or contains binaries you do not
 want to execute on your system, or that cannot even be executed on your
 system. Last might be the case of a Windows partition.
 suid / nosuid
    Permit/Block the operation of suid, and sgid bits. -
 http://en.wikipedia.org/wiki/Fstab

 Perhaps this prevents against something fishy.

 Regards,
 Ralf


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/1337864550.2247.44.camel@precise



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfM=jgL6yziQtq7nV28h4zNpYcPv3+vLiaJrarfUGYƒa...@mail.gmail.com



Re: Mounting local filesystem failed on boot

2012-05-24 Thread Muhammad Yousuf Khan
On Thu, May 24, 2012 at 6:33 PM, Muhammad Yousuf Khan sir...@gmail.com wrote:
 On Thu, May 24, 2012 at 6:28 PM, Muhammad Yousuf Khan sir...@gmail.com 
 wrote:
 On Thu, May 24, 2012 at 6:02 PM, Ralf Mardorf
 ralf.mard...@alice-dsl.net wrote:
 On Thu, 2012-05-24 at 17:40 +0500, Muhammad Yousuf Khan wrote:
 i am getting Mounting local filesystem failed on every boot. and the
 problem line in fstab is

 proc            /proc           proc    defaults        0       0

 This can't be the cause. The line is correct.

 what this proc mount is for. as i haven’t created it.

 The proc file system is a pseudo-file system which is used as an
 interface to kernel data structures. It is commonly mounted at /proc. -
 http://linux.die.net/man/5/proc

 There's an entry in fstab, when /proc is NOT on it's own partition.
 You also can try


 proc            /proc           proc    nodev,noexec,nosuid 0       0

Kindly check this also
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=425199
 there is some thing with proc mount


 ok, after changing it, still facing the same error. however my system
 is running formal. beside from this failed error.

 sorry for the typo, i mean to say my system is running normal.
 instead of this failed error





 dev / nodev
    Interpret/do not interpret block special devices on the filesystem.
 exec / noexec
    exec lets you execute binaries that are on that partition, whereas
 noexec does not let you do that. noexec might be useful for a partition
 that contains no binaries, like /var, or contains binaries you do not
 want to execute on your system, or that cannot even be executed on your
 system. Last might be the case of a Windows partition.
 suid / nosuid
    Permit/Block the operation of suid, and sgid bits. -
 http://en.wikipedia.org/wiki/Fstab

 Perhaps this prevents against something fishy.

 Regards,
 Ralf


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact 
 listmas...@lists.debian.org
 Archive: http://lists.debian.org/1337864550.2247.44.camel@precise



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfM=tadsl88z8nbgdz97qthhlhaicsye6-+mwkod645p...@mail.gmail.com



Re: FS rights error with Samba share

2012-05-24 Thread Muhammad Yousuf Khan
On Thu, May 24, 2012 at 8:11 PM, Camaleón noela...@gmail.com wrote:
 On Thu, 24 May 2012 09:30:52 +0100, keith wrote:

 On Wed, 23 May 2012 22:14:08 +0500
 Muhammad Yousuf Khan sir...@gmail.com wrote:

 Finally Solved..

 !!!  it is sooo relaxing 

  i have been working on this for 2 days. even i knew it too but mind
 was not going that way. but now i will remember it till death :) as i
 have over-googled this matter.

 Thanks a million :),


 Don't forget to write it down so that you can find it in 5(?) years
 time.   :)

 Nah... that never works.

 By that time the samba team will have completely rewrote their smb stack
 which will be radically different from the current implementation so the
 tip you have saved as a treasure will be of no effect and you will be
 forced to ask all over again, an again, and again... that's known as the
 curse of the sysadmin secure-saved-tip loop.

 (just joking ;-P)

 Greetings,

this is more then a treasure to me and specially when you even aware
of the problem but you are thinking in a different direction  then
tips like this are life saving   :P

 being system admin its like   life = 24/7 tension  you may receive
a call from your bosses at night that VPN down or any support call,
specially when your customers lives in different time zones and at the
top of them all you are the only resource who can resolve the issue.
so i am not tense at all even if it is going to happen what you have
said, then i will be saving another precious tip from some one. may
be, it could  b your tip :P






 --
 Camaleón


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/jplj29$a15$1...@dough.gmane.org



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfMmd8LMrXYSM4M=n_wozyesybhz8mof7dfvpqmcn7_4...@mail.gmail.com



Re: Mounting local filesystem failed on boot

2012-05-25 Thread Muhammad Yousuf Khan
On Thu, May 24, 2012 at 11:37 PM, Roger Leigh rle...@codelibre.net wrote:

 On Thu, May 24, 2012 at 07:57:32PM +0500, Muhammad Yousuf Khan wrote:
  On Thu, May 24, 2012 at 6:33 PM, Muhammad Yousuf Khan sir...@gmail.com 
  wrote:
   On Thu, May 24, 2012 at 6:28 PM, Muhammad Yousuf Khan sir...@gmail.com 
   wrote:
   On Thu, May 24, 2012 at 6:02 PM, Ralf Mardorf
   ralf.mard...@alice-dsl.net wrote:
   On Thu, 2012-05-24 at 17:40 +0500, Muhammad Yousuf Khan wrote:
   i am getting Mounting local filesystem failed on every boot. and the
   problem line in fstab is
  
   proc            /proc           proc    defaults        0       0
  
   This can't be the cause. The line is correct.
  
   what this proc mount is for. as i haven’t created it.
  
   The proc file system is a pseudo-file system which is used as an
   interface to kernel data structures. It is commonly mounted at /proc. -
   http://linux.die.net/man/5/proc
  
   There's an entry in fstab, when /proc is NOT on it's own partition.
   You also can try
  
  
   proc            /proc           proc    nodev,noexec,nosuid 0       0
 
  Kindly check this also
  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=425199
   there is some thing with proc mount

 This depends on which distribution you are using?  Are you on
 stable, testing, unstable, or something else?




  If you're on
 testing or unstable, this bug /should/ be fixed.  If it's what
 I'm thinking it is, the mountkernfs script (and now also the
 initramfs) mounts proc with the same parameters as are by
 default in /etc/fstab.  If you're on testing/unstable, you
 could also try initscripts/sysvinit from experimental.

 The proper solution is to get debian-installer to not create
 this (useless) /etc/fstab entry in the first place.

 The only reason the bug is open is because I haven't had
 proper confirmation it's fixed, so knowing which distribution
 you're using will be important to know.

ok here are the details,

root@abc:/etc# cat debian_version
6.0.4
root@abc:/etc# uname -a
Linux abc 2.6.32-5-686 #1 SMP Mon Jan 16 16:04:25 UTC 2012 i686 GNU/Linux



 Regards,
 Roger

 --
  .''`.  Roger Leigh
  : :' :  Debian GNU/Linux    http://people.debian.org/~rleigh/
  `. `'   schroot and sbuild  http://alioth.debian.org/projects/buildd-tools
   `-    GPG Public Key      F33D 281D 470A B443 6756 147C 07B3 C8BC 4083 E800


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cagwvfmmpb3ombcga6dr4hqopnuvp9nm-lg+75dkowcxujzv...@mail.gmail.com



Re: Mounting local filesystem failed on boot

2012-05-25 Thread Muhammad Yousuf Khan
On Fri, May 25, 2012 at 11:07 AM, Ralf Mardorf
ralf.mard...@alice-dsl.net wrote:
 On Thu, 2012-05-24 at 19:57 +0500, Muhammad Yousuf Khan wrote:
 Kindly check this also
 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=425199
  there is some thing with proc mount

 Subject: Re: Bug#425199: Mounting local filesystems... Failed!
 Date: Tue, 10 Jan 2012 15:04:55 +
 Is it an issue with initscripts in current testing/unstable?  I've
 updated the mountall shell functions to merge initscripts defaults
 with matching fstab entries, so both should be supported equally well
 now, and this should have solved this bug.

 So there was a bug in January? It was solved? And appears now again? :(

 You should file a bug report.

i am not sure if it is a bug or my mistake as i am new to linux. i
think i should verify at my end first instead of reporting false bug
:)


 - Ralf

 --
 PS: For me it's ok, if you carbon copy, but it's not wanted for the
 mailing list. You should sent replies to the list only.


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/1337926071.2251.6.camel@precise



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfMmbhGhy8dEXb_TDuHFcNrZRjgen_N=mopjqpfqp4wz...@mail.gmail.com



Re: Mounting local filesystem failed on boot

2012-05-25 Thread Muhammad Yousuf Khan
On Fri, May 25, 2012 at 12:24 PM, Roger Leigh rle...@codelibre.net wrote:
 On Fri, May 25, 2012 at 11:38:08AM +0500, Muhammad Yousuf Khan wrote:
 On Thu, May 24, 2012 at 11:37 PM, Roger Leigh rle...@codelibre.net wrote:
 
  On Thu, May 24, 2012 at 07:57:32PM +0500, Muhammad Yousuf Khan wrote:
   On Thu, May 24, 2012 at 6:33 PM, Muhammad Yousuf Khan sir...@gmail.com 
   wrote:
On Thu, May 24, 2012 at 6:28 PM, Muhammad Yousuf Khan 
sir...@gmail.com wrote:
On Thu, May 24, 2012 at 6:02 PM, Ralf Mardorf
ralf.mard...@alice-dsl.net wrote:
On Thu, 2012-05-24 at 17:40 +0500, Muhammad Yousuf Khan wrote:
i am getting Mounting local filesystem failed on every boot. and the
problem line in fstab is
   
proc            /proc           proc    defaults        0       0
   
This can't be the cause. The line is correct.
   
what this proc mount is for. as i haven’t created it.
   
The proc file system is a pseudo-file system which is used as an
interface to kernel data structures. It is commonly mounted at 
/proc. -
http://linux.die.net/man/5/proc
   
There's an entry in fstab, when /proc is NOT on it's own partition.
You also can try
   
   
proc            /proc           proc    nodev,noexec,nosuid 0       0
  
   Kindly check this also
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=425199
    there is some thing with proc mount
 
  This depends on which distribution you are using?  Are you on
  stable, testing, unstable, or something else?
 ok here are the details,

 root@abc:/etc# cat debian_version
 6.0.4

 OK, so this is stable.  It should be fixed in testing and unstable
 now.  I also filed a bug to remove it from fstab for new installs:
 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=674481
thanks,
so  does it means that, i should comment the proc mount in /etc/fstab,
and it is safe

Thanks,




 Regards,
 Roger

 --
  .''`.  Roger Leigh
  : :' :  Debian GNU/Linux    http://people.debian.org/~rleigh/
  `. `'   schroot and sbuild  http://alioth.debian.org/projects/buildd-tools
   `-    GPG Public Key      F33D 281D 470A B443 6756 147C 07B3 C8BC 4083 E800


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAGWVfM=1qbugbenbwtgun49nbca5eok5x_kf6pmcsqhjio7...@mail.gmail.com



  1   2   3   4   >